Skip to content
ListingrailGet an API key

Fotocasa MCP server

Connect live Fotocasa sale and rent listings (Spain) to Claude, Cursor, Windsurf, VS Code, ChatGPT, Gemini CLI and 5 more MCP clients through https://listingrail.com/mcp. Source key: fotocasa. 1 credit per listing returned; list_sources is free; failed reads cost nothing.

Tools and credits for Fotocasa

Every Fotocasa call uses the same key and credit balance as the REST API. Free keys get 250 listings a month with no card.

Fotocasa MCP specification (Spain)
SettingValue
Remote endpointhttps://listingrail.com/mcp (streamable HTTP)
Source keyfotocasa (sale, rent)
Location inputSpanish city, e.g. 'madrid', or a Fotocasa search link (for price filters)
FiltersNone (use a portal search link where supported)
list_sources0 credits — returns live Fotocasa location format and filter support
search_listings1 credit per listing returned (max 50 per call, page with next_offset up to 500)
get_listingNot enabled for Fotocasa (all 20 fields return in search_listings)
Failed or empty reads0 credits charged
Fields populated20 of 23 normalized fields

Setup for 11 MCP clients

Get a key first: 250 free listings, an email and no card. Pick your client below and replace re_your_key.

Settings → Connectors → Add custom connector
https://listingrail.com/mcp?key=re_your_key

Custom connectors take only a URL, so pass your key in the link and keep it private. If you prefer claude_desktop_config.json with a header, use the mcp-remote bridge below.

Or in claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
  "mcpServers": {
    "listingrail": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://listingrail.com/mcp",
        "--header",
        "Authorization:Bearer re_your_key"
      ]
    }
  }
}

Example Fotocasa prompts

Paste either prompt into your client once connected. Below each is the exact MCP tool call your agent makes.

Search Fotocasa (sale)

Search Fotocasa for 5 properties for sale in barcelona. Show price, bedrooms, area and link.
{
  "name": "search_listings",
  "arguments": {
    "source": "fotocasa",
    "location": "barcelona",
    "type": "sale",
    "limit": 5
  }
}

Compare Fotocasa rent listings

Pull 10 rental listings from Fotocasa in barcelona and rank them by price.
{
  "name": "search_listings",
  "arguments": {
    "source": "fotocasa",
    "location": "barcelona",
    "type": "rent",
    "limit": 10
  }
}

Real Fotocasa MCP answer from today

Called live on 2026-11-23 against https://listingrail.com/mcp for two Fotocasa listings in barcelona. Tool call:

{
  "name": "search_listings",
  "arguments": {
    "source": "fotocasa",
    "location": "barcelona",
    "type": "sale",
    "limit": 2
  }
}

The response returned on 2026-11-23 (coordinates, photo links and personal agent details omitted here). Cost: 2 credits.

{
  "source": "fotocasa",
  "location": "barcelona",
  "type": "sale",
  "count": 2,
  "credits_used": 2,
  "listings": [
    {
      "id": "189430241",
      "url": "https://www.fotocasa.es/es/comprar/vivienda/barcelona-capital/aire-acondicionado-calefaccion-terraza-trastero-patio-amueblado/189430241/d",
      "source": "fotocasa",
      "title": "Carrer de la Tramuntana, Sant Andreu de Palomar",
      "address": "Sant Andreu de Palomar",
      "city": "Barcelona",
      "region": "Barcelona",
      "postal_code": "08030",
      "country": "ES",
      "price": 729000,
      "currency": "EUR",
      "price_period": null,
      "beds": 3,
      "rooms": null,
      "baths": 4,
      "area": 175,
      "area_unit": "sqm",
      "property_type": "Flat",
      "listed_at": "2026-04-20T17:50:54.780000+00:00",
      "agent": {
        "name": null,
        "phone": null,
        "company": "NUEVACASA"
      }
    },
    {
      "id": "191392908",
      "url": "https://www.fotocasa.es/es/comprar/vivienda/barcelona-capital/aire-acondicionado-calefaccion-terraza-ascensor-no-amueblado/191392908/d",
      "source": "fotocasa",
      "title": "Carrer d'Aragó, Sagrada Família",
      "address": "Sagrada Família",
      "city": "Barcelona",
      "region": "Barcelona",
      "postal_code": "08013",
      "country": "ES",
      "price": 455000,
      "currency": "EUR",
      "price_period": null,
      "beds": 3,
      "rooms": null,
      "baths": 1,
      "area": 74,
      "area_unit": "sqm",
      "property_type": "Flat",
      "listed_at": "2026-11-13T18:13:08.943000+00:00",
      "agent": {
        "name": null,
        "phone": null,
        "company": "AgenciaBCN Real Estate"
      }
    }
  ],
  "next_offset": 2
}

Fields returned for Fotocasa

20 of 23 normalized fields are populated for Fotocasa; 3 come back as null.

  • id
  • url
  • title
  • address
  • city
  • region
  • postal_code
  • country
  • lat
  • lng
  • price
  • currency
  • beds
  • baths
  • area
  • property_type
  • listed_at
  • photos
  • agent.phone
  • agent.company

Returned as null for Fotocasa: price_period, rooms, agent.name.

Questions about the Fotocasa MCP server

How do I connect Fotocasa to Claude, Cursor or Windsurf over MCP?

Point your MCP client at https://listingrail.com/mcp with your Listingrail API key in the Authorization header (or ?key= for Claude Desktop and ChatGPT connectors). Ask your client to search Fotocasa and it calls search_listings with source "fotocasa".

How many credits does a Fotocasa MCP call use?

1 credit per listing returned by search_listings. list_sources is free, and a failed or empty portal read costs 0 credits. A free key includes 250 listings a month with no card; after that a $9 one-time pack adds 2,500 listings, Lite is $10/mo for 2,500, and Starter is $49/mo for 25,000.

What location format and filters work for Fotocasa?

fotocasa: Spanish city, e.g. 'madrid', or a Fotocasa search link (for price filters) No structured filter parameters; pass a Fotocasa search link as location where supported, or filter the returned rows in your agent.

Does Fotocasa support full listing details via get_listing?

No. Fotocasa returns 20 normalized fields directly in search_listings (id, url, title, address, city, region, postal_code, country, and more), so get_listing is not enabled for Fotocasa.

Does Fotocasa have an official MCP server?

Fotocasa's official integration lets agencies publish their own listings to Fotocasa, Habitaclia and Milanuncios (Fotocasa Pro) using an API key, usually through a property CRM. No official API for searching or reading listings was found. Market data is sold separately as Fotocasa Pro Data / DataVenues through the sales team. Listingrail exposes Fotocasa and 21 other property portals through one remote MCP server in a single JSON schema.

Get 250 free listingsFotocasa REST APIAll 22 MCP portalsPricingMCP docsFotocasa Python guide

Fotocasa is a trademark of its owner. Listingrail is not affiliated with, endorsed by or sponsored by Fotocasa.