# spain-legal

spain-legal — an MCP server from Legal Fournier for screening Spanish visa routes, residency paths, NIE/TIE processes, and tax regimes. Gives agents tools to analyze immigration options and escalate complex cases to lawyers.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 1424 installs
- Author: legalfournier
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/legalfournier/spain-legal
- Updated: 2026-03-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/spain-legal

## What it does

spain-legal brings Spanish immigration and tax law into your IDE. An agent can screen available visa routes with decision logic, check Beckham regime eligibility, trace the path to permanent residency or citizenship accounting for time in country, work through NIE and TIE procedures, and compare tax treatment for residents.

Six tools inside: `get_visa_options` ranks routes and explains the logic; `check_beckham_eligibility` screens the regime's conditions; `get_residency_path` shows the next milestone with caution flags for time-counting issues; `explain_nie_process` walks through NIE and TIE workflows; `compare_tax_regimes` compares standard versus Beckham taxation; `route_to_legal_fournier_help` decides whether to escalate and prepares a checklist and handoff message.

The server connects as an HTTP endpoint in one command to any supported platform. Responses include decision traces and source references for verification. For matters beyond screening scope, the agent can suggest a consultation with Legal Fournier attorneys.

## Requirements
- Remote server: `https://legalfournier.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http spain-legal https://legalfournier.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add spain-legal --url https://legalfournier.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "spain-legal": {
            "url": "https://legalfournier.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "spain-legal": {
            "type": "http",
            "url": "https://legalfournier.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http spain-legal https://legalfournier.run.tools
```

## When to use it
- Screen which Spanish visa routes are available based on a person's profile
- Check whether someone qualifies for the Beckham tax regime and its benefits
- Understand NIE and TIE processes and what distinguishes them
- Track the path to permanent residency or Spanish citizenship
- Compare tax burden for residents under Beckham versus standard Spanish taxation

## Example prompts
- What visa routes are available for a US freelancer planning to live in Spain for a year?
- Check whether I qualify for Beckham: I'm an engineer with 15 years in tech, now relocating to Barcelona.
- Walk me through the NIE application process if I've already filed for a D visa through an agent.

## Similar
- [Transita MCP](https://affpapa.org/en/nevibecode/mcp/transita-mcp.md) — MCP server · 3913 installs
- [germany-legal](https://affpapa.org/en/nevibecode/plugins/germany-legal.md) — plugin · ★ 6 repo stars
- [mcp](https://affpapa.org/en/nevibecode/mcp/mirabello-consultancy-mcp.md) — MCP server
- [Departi – Travel Compliance & Curated Booking](https://affpapa.org/en/nevibecode/mcp/departi-travel-compliance-curated-booking.md) — MCP server
- [Factuarea](https://affpapa.org/en/nevibecode/mcp/factuarea.md) — MCP server
- [KnowJudges](https://affpapa.org/en/nevibecode/mcp/knowjudges.md) — MCP server

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
