Agents and developers

Connect an AI agent to Landed in Spain: a remote MCP server, a static JSON API with OpenAPI, a bulk dataset, and a markdown version of every page. No key needed.

Landed in Spain is built to be easy for AI agents to read. Everything here is public and read-only, and needs no key: 12,294 listings in 25 cities, official visa requirements by nationality, visa health insurance policies and guides. Every fact keeps the URL it came from, so an agent can cite it.

MCP server

The fastest way in. A remote MCP server (Streamable HTTP, stateless, no sign-in) at:

https://landedinspain.com/mcp

It speaks MCP 2026-07-28 (the current revision: per-request metadata, no initialize) and answers older clients on 2025-11-25, 2025-06-18, 2025-03-26. Its server card is at https://landedinspain.com/mcp/server-card.

ToolWhat it does
search_listingsFind firms and schools by category, city, English spoken, visa handled, register match, remote service, Google rating or keywords
get_listingEverything a profile shows, with the source of each fact
list_categoriesCategory keys, plus the visa and nationality keys other tools accept
list_citiesCity slugs, with counts per category
get_visa_requirementsOfficial requirements for a visa, optionally for one nationality, each fact quoting a government page
list_health_insurancePolicies whose insurers say they meet visa rules. Alphabetical, editorial: no ranking, no quotes, no advice
get_guideThe full text of a guide, visa, insurance or city page, as markdown with sources
search_siteKeyword search over every page title and description and every listing name
search_apiCode Mode: the TypeScript types of the sis data API, only the part your question needs
executeCode Mode: run JavaScript or TypeScript against sis in a sandbox and get back only what it returns
askNLWeb: a question in plain English, answered with schema.org-typed results

Guides and visa pages are also exposed as MCP resources (resources/list), and there are two prompts: find_professional and visa_checklist.

Code Mode

For a question that needs several lookups, filters or comparisons, an agent does better writing a short program than calling tools one at a time (the approach Cloudflare calls Code Mode, and Anthropic describes as code execution with MCP). Call search_api with what you want to do, for example "published fees by city". It returns the TypeScript declaration of the part of the sis API you need. Then send code to execute. It runs in a sandbox with sis in scope and returns what the code returns and logs, so thousands of listings can be filtered without passing through the model. On this deployment execute is switched off (it needs more CPU than the hosting plan gives a request): search_api still returns the types, and the tools above return the same shapes.

The sandbox has no network (fetch is disabled), no environment or secrets, and read-only data. It stops after 5 seconds, 300 sis calls or 5,000,000 loop steps, and the result is cut at 50 KB with a note. On Cloudflare each run gets its own V8 isolate (Dynamic Workers); elsewhere it runs in QuickJS (WebAssembly). Methods: sis.listings(q), sis.listing(id), sis.directory(category, city), sis.categories(), sis.cities(category?), sis.visa(visa, nationality?), sis.insurance(visa?), sis.guide(slug), sis.searchSite(query).

Example (English-speaking NLV lawyers with published fees, Valencia vs Málaga, most-reviewed first):

const out = {};
for (const city of ['valencia', 'malaga']) {
  const firms = await sis.directory('immigration_lawyer', city);
  const nlv = firms.filter((l) => l.english_speaking === true && l.visas_handled.includes('nlv'));
  out[city] = {
    english_speaking_nlv: nlv.length,
    with_published_fee: nlv
      .filter((l) => l.fixed_fee_from_eur !== null)
      .sort((a, b) => (b.google_reviews ?? 0) - (a.google_reviews ?? 0))
      .map((l) => ({ name: l.name, fee_from_eur: l.fixed_fee_from_eur, fee_source: l.evidence.fixed_fee_from_eur, google_rating: l.google_rating, google_reviews: l.google_reviews, profile_url: l.profile_url })),
  };
}
return out;

Interactive results (MCP Apps)

In hosts that support MCP Apps (Claude, ChatGPT, VS Code, Goose and others), search_listings, get_listing and get_visa_requirements show their results as cards: name, Google rating, address, English spoken, visas, register match, and buttons to call, open the website or open the profile. The view is the resource ui://landed-in-spain/results.html (text/html;profile=mcp-app), linked from each tool's _meta.ui.resourceUri. It is one self-contained HTML file with no network access. Hosts without MCP Apps get the same text and structured results.

Claude

In Claude (web or desktop), open Settings, then Connectors, choose "Add custom connector", and paste the URL above. In Claude Code:

claude mcp add --transport http landed-in-spain https://landedinspain.com/mcp

ChatGPT

Turn on developer mode (Settings, Apps, Advanced settings), then create an app with the URL above and no authentication.

Cursor

Add this to .cursor/mcp.json (or ~/.cursor/mcp.json for every project):

{
  "mcpServers": {
    "landed-in-spain": { "url": "https://landedinspain.com/mcp" }
  }
}

VS Code and other clients

{
  "servers": {
    "landed-in-spain": { "type": "http", "url": "https://landedinspain.com/mcp" }
  }
}

Try it from a terminal

npx @modelcontextprotocol/inspector --cli https://landedinspain.com/mcp --method tools/list

curl -s https://landedinspain.com/mcp \
  -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' -H 'Mcp-Method: tools/call' -H 'Mcp-Name: search_listings' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_listings","arguments":{"category":"immigration_lawyer","city":"valencia","english_speaking":true,"limit":3},"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}'

JSON API and OpenAPI

Static JSON files, rebuilt with the site. The OpenAPI 3.1 description is at https://landedinspain.com/api/v1/openapi.json and the index of endpoints, with counts, at https://landedinspain.com/api/v1/index.json.

Bulk data

The whole directory, one listing per line, with sources: https://landedinspain.com/api/v1/listings.jsonl (gzipped, much smaller: https://landedinspain.com/api/v1/listings.jsonl.gz). Please use it rather than crawling 12,294 profiles.

Ask in plain English (NLWeb)

https://landedinspain.com/ask follows the NLWeb protocol (v0.55). Send query as a URL parameter, or POST {"query": {"text": "…"}}. It answers with schema.org-typed results (LegalService, AccountingService, InsuranceAgency, MovingCompany, School, Article), each with the URL to cite. mode=summarize adds a one-paragraph summary, written from the results by rules, not by a language model. Add streaming=true or send Accept: text/event-stream for server-sent events. The same answer is the MCP tool ask.

curl 'https://landedinspain.com/ask?query=english+speaking+lawyer+valencia+non+lucrative'

Markdown

Every page has a markdown twin at its path plus index.md (for example https://landedinspain.com/immigration-lawyers/valencia/index.md), also reachable as /path.md. https://landedinspain.com/llms.txt lists the main pages and https://landedinspain.com/llms-full.txt has the full text of every guide, visa, insurance and city page in one file.

Discovery

Usage

  • No key and no sign-up. The JSON and markdown are static files served from a CDN.
  • Be gentle with the MCP server: a few requests a second is plenty. For anything bigger, download the bulk file.
  • Send a User-Agent that names your agent, so we can tell agents apart in our logs.
  • Data is rebuilt when listings are re-checked. Each listing has last_checked, each visa fact has retrieved_at.

Attribution and what the data means

  • Please cite the page you used: profile_url for a listing, page_url for anything else, and say the facts are from Landed in Spain.
  • Business details are public information we compiled from each business's own website, Google Maps and official registers. Google ratings and review counts are Google's data: label them "Google rating" and never present them as our reviews or yours.
  • null means not stated, never "no". "English spoken" needs evidence: the business's own website, or an embassy or FCDO list.
  • No listing pays to appear or to rank higher. Being listed is not a recommendation.
  • Health insurance information is editorial: what each insurer publishes, alphabetical, with no ranking, no quotes and no advice.
  • Visa facts quote official Spanish government pages. Nothing here is legal, tax or insurance advice. The golden visa is closed to new applicants.

Corrections, or questions about using the data: hello@landedinspain.com.