Spain Open Data
Server Details
Market sizing, prices, rents, crime and locations in Spain from INE and other public data
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- digvijaysingh-ai/spain-open-data-mcp
- GitHub Stars
- 0
- Server Listing
- Spain Open Data MCP
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 13 tools
Most tools target distinct resources (crime, income, rents, demographics, resolve_place), but businesses, catchment, market_size, and compare_areas all revolve around business counts and market/opportunity sizing, creating a subtle boundary between a single-place profile, a radius profile, a market sizing, and an area ranking. The descriptions do a good job distinguishing these (radius vs single place vs ranking), so misselection is unlikely but not impossible.
All names are lowercase snake_case with no camelCase mixing, which is consistent. However the set blends bare domain nouns (income, rents, crime, businesses) with verb_noun forms (find_datasets, read_dataset, resolve_place, compare_areas), so there is no single predictable pattern, though it remains readable.
Thirteen tools is well within a sensible range for a multi-domain open-data server covering demographics, income, crime, rents, business markets, and catalogue access. It is slightly heavy because a few market/area tools overlap, but each still earns a place.
The surface covers place resolution, core socio-economic indicators (population, income, rents, crime), business/market analysis, and a broad fallback to the national open-data catalogue, plus visualization. Minor gaps exist (e.g. no explicit transport/health datasets held directly) but the find_datasets/read_dataset pair lets agents work around these.
Available Tools
13 toolsbusinessesBusinesses and competitorsARead-onlyIdempotentInspect
Count businesses of a kind in a place in Spain, per 10,000 residents and per km², from OpenStreetMap.
Use it to size competition and supply: how many gyms, cafés or dentists an area has,
how that compares with the province, region and Spain, which brands dominate, and
which districts or tracts are over- or under-served (rank sub-areas by
per_10k_residents). Counts are lower bounds because OpenStreetMap is mapped by
volunteers; where INE's company directory covers the same activity, the result says
how complete the map looks in that region. Returns counts and brands only, never
lists of individual premises.
Inputs: place (required), rank_by, category, sub_areas. Returns: data, checks, sources, confidence
catchmentCatchment around an addressARead-onlyIdempotentInspect
Profile the area within a radius (or a walking time) of an address: residents, households, income, age, and the businesses mapped there. With a category, also the yearly market in euros, competing businesses and an opportunity score against the region. Use for "who lives within 800 m of this shop" or "is there room for a bakery near Calle X". Addresses are checked against the municipality they name; ambiguous ones are refused with suggestions.
Inputs: near (required), category, radius_m, walk_minutes. Returns: data, checks, sources, confidence
chartChartARead-onlyIdempotentInspect
Draw a chart (PNG) of a tool result: an opportunity ranking with ranges, income by district, an age pyramid or a population trend. Returns the image, the same text and sources as the underlying tool, and a source line on the image. If drawing fails the text still comes back.
Inputs: kind (required), place (required), category, sub_areas. Returns: data, checks, sources, confidence
compare_areasCompare areas for a businessARead-onlyIdempotentInspect
Rank areas by market per competing business for a category (the opportunity score).
Each area gets a yearly market in euros, estimated competing businesses and an opportunity score against its region, all with ranges. Areas are ranked by the cautious (low) end of the score; areas too small for the category are left out and counted. Use for "where in Valladolid should I open a gym" or "which towns in Málaga province lack pharmacies".
Inputs: within (required), category (required), level, limit. Returns: data, checks, sources, confidence
crimeCrimeARead-onlyIdempotentInspect
Recorded crime in a place from the Interior ministry: offences by type (theft, burglary, robbery, assault, drugs, cybercrime and more) for the latest full year, per 1,000 residents, the change on the year before, the latest year-to-date figures, and province, region and Spain for comparison.
Published for municipalities over 20,000 residents, provinces and regions; smaller places
get the province's figures, and the result says so.
Inputs: place (required). Returns: data, checks, sources, confidence
demographicsPopulation and householdsARead-onlyIdempotentInspect
Population, sex, five-year age bands, 5-year trend, and household profile for a place in Spain.
Municipality, province and CCAA: census population by age band (latest 1 January),
cross-checked against the official Padrón figure. District and tract: census age bands
and sex from INE's file by census tract. Municipality, district and tract:
household size, single-person households, mean age, share under 18 and 65+ from INE's
income atlas. Use sub_areas to compare a city's districts or tracts, e.g. to find
where young families or older residents concentrate.
Inputs: place (required), sub_areas. Returns: data, checks, sources, confidence
find_datasetsFind open datasetsARead-onlyIdempotentInspect
Search Spain's national open-data catalogue (datos.gob.es) for datasets on a topic.
Returns each dataset's title, publisher, licence, file formats, update frequency and last
change, and an id to pass to read_dataset. Use when a question needs data this server does
not hold directly (parking, licences, local events, tourist offices, transport).
Inputs: query (required), limit, place. Returns: data, checks, sources, confidence
incomeHousehold incomeARead-onlyIdempotentInspect
Household income for a place in Spain from INE's income atlas, down to census tract.
Returns net and gross income per person and per household, mean and median per consumption unit, inequality (Gini, P80/P20), income sources (wages, pensions, benefits), a trend, and benchmarks against the province, region and Spain. Use it for purchasing power, price positioning and choosing between districts. Figures are euros of the data year; the atlas runs about two years behind.
Inputs: place (required), years, rank_by, sub_areas. Returns: data, checks, sources, confidence
market_sizeMarket size in eurosARead-onlyIdempotentInspect
Size the yearly market for a business category in a place in Spain, in euros, with a range.
Market = households × INE household spending on the category × an income adjustment.
Supply = competing businesses, calibrated against INE's company directory. Returns market
per business and an opportunity score: market per business against the region (1.0 = same as
the region), not a forecast of openings. Every assumption is listed. Assumptions can be overridden to test scenarios. Use for "how big
is the market for X in Y" and "is Y under-served for X".
Inputs: place (required), category (required), competitors, capture_share, +1 more. Returns: data, checks, sources, confidence
price_bandPrice range for a placeARead-onlyIdempotentInspect
Suggest a price range for a place from local purchasing power and inflation.
Public data has no competitor prices, so this adjusts a price you know (from elsewhere or
an earlier date) to this place today: CPI for the category's group since that month, then
local median income per consumption unit against the reference place. Returns a range
from no local adjustment to full adjustment, labelled as an estimate.
Inputs: place (required), reference_price (required), category, price_month, +1 more. Returns: data, checks, sources, confidence
read_datasetRead an open datasetARead-onlyIdempotentInspect
Read a datos.gob.es dataset: its columns and up to 20 sample rows, with its licence.
Reads CSV and JSON files listed in the catalogue (the first 5 MB). Columns that look like
personal data (names, ID numbers, emails, phones) are withheld. Values are shown as the
publisher published them.
Inputs: dataset_id (required), file_index. Returns: data, checks, sources, confidence
rentsRentsARead-onlyIdempotentInspect
How housing rents have changed in a place: INE's rent index (IPVA, 2015 = 100) with the change over the last year, five years and since 2015, against province, region and Spain.
Covers municipalities over 10,000 residents, districts of provincial capitals, provinces and
regions (not the Basque Country or Navarra). Gives changes, not rents in euros.
Inputs: place (required). Returns: data, checks, sources, confidence
resolve_placeResolve a Spanish placeARead-onlyIdempotentInspect
Find the INE code and level (CCAA, province, municipality, district, tract) for a place in Spain.
Use this first when a question names a place. Returns the best match first, with alternatives (e.g. 'Valencia' is both a city and a province). Handles accents, Basque, Catalan and Galician names, and common English names (Seville, Catalonia). Districts and tracts are shown with the OpenStreetMap neighbourhood names inside them ('Valladolid distrito 10 (Parquesol, Girón, La Victoria)'), and a neighbourhood name ('Parquesol, Valladolid', 'Gràcia, Barcelona') returns the INE district that contains it.
Inputs: query (required). Returns: data, checks, sources, confidence
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Spanish real estate data and property valuation: homes, buildings, plots, streets and areas.
Data by town near Barcelona, in Madrid and on the Costa Blanca: €/m², IBI, rent, minutes. Sourced
Spanish & EU official data: company registry, public tenders, grants, cadastre, CPI, VAT/IBAN checks
Official Barcelona rent and sale prices by neighbourhood, from registered contracts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAnalyzes French real-estate market using open data sources like DVF transactions, DPE certificates, and risk data.MIT
- AlicenseBqualityAmaintenanceEnables AI agents and developers to search and inspect Spanish public data sources, learn their endpoints and pitfalls, and retrieve ready-made data such as municipal profiles, economic indicators, company records, procurement, subsidies, and location reports.13131Creative Commons Zero v1.0 Universal
- AlicenseAqualityBmaintenanceEnables AI assistants and agents to query Spanish public statistics from INE, official BOE publications, and Catastro property data via typed, read-only tools with structured, source-citable results.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables answering natural-language questions about Spanish official public data—such as unemployment, population, inflation, and fuel prices—through read-only, verifiable SQL over local DuckDB tables, returning the figure, query, and source.MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.