MCP server
Connect an AI assistant to Barcelona's registered rents. Four tools, no key, no account.
The server speaks the Model Context Protocol over streamable HTTP. Point any MCP client at this URL — there is nothing to sign up for, because a key handshake is the fastest way to make a server nobody adopts.
https://www.barcelona-rent.fyi/api/mcpIn Claude Code
claude mcp add --transport http barcelona-rent https://www.barcelona-rent.fyi/api/mcpIn a client config
{
"mcpServers": {
"barcelona-rent": {
"type": "http",
"url": "https://www.barcelona-rent.fyi/api/mcp"
}
}
}The four tools
get_rent — current rent and sale price for one neighbourhood or district, with an estimated monthly rent, gross yield and how it compares to the city.
compare_areas — two to ten areas side by side, cheapest first.
rent_trend — the quarterly series for one area and how much it moved.
find_areas — which neighbourhoods a monthly budget actually reaches.
What a result looks like
Asking an assistant “what is rent in Pedralbes?” returns:
{
"area": "Pedralbes",
"type": "neighbourhood",
"district": "Les Corts",
"rentEurPerSqmMonth": 20.92,
"estimatedMonthlyRent": 1569,
"referenceSqm": 75,
"salePriceEurPerSqm": 7685.32,
"grossYieldPct": null,
"rentPeriod": "2026-Q1",
"salePeriod": "2026-Q2",
"cityAverageEurPerSqmMonth": 16.89,
"vsCityPct": 23.9,
"url": "https://www.barcelona-rent.fyi/neighborhood/pedralbes",
"source": "INCASÒL registered rental contracts; ..."
}Note grossYieldPct is null here. Rent and sale prices are published separately and in this case sit a quarter apart, so dividing one by the other would produce a number that looks fine and is wrong. Yield appears only when both figures describe the same quarter.
What it will not do
There is no bulk export. These tools answer questions; they do not hand over the compiled series, which is what the REST endpoints are for, and the full history stays behind a free key under the terms.
It also cannot tell you what a landlord may legally charge. That depends on the address, the floor, the build year and the energy rating — none of which this data holds. Every figure is a registered average, never an asking price, and always stamped with the quarter it describes.