The Specialty News
AI

Spain's Statistics Office Opens 110 Data Sets to Any AI Assistant

The INE's official MCP server answers in plain language with live figures and a link to the exact table they came from.

By The Specialty News DeskEditor: 4 min read
Spain's Statistics Office Opens 110 Data Sets to Any AI Assistant
Photo: Metro Centric / Wikimedia Commons (CC BY 2.0)
Today in stories14 latest stories

Ask an AI assistant for the unemployment rate among men in Murcia over the last four quarters, and until this week it would answer from memory or from whatever the web said. Since 26 November, it can ask Spain's Instituto Nacional de Estadística (INE) directly. The agency has published an official Model Context Protocol (MCP) server that pulls every figure from its public API at the moment you ask, and names the table it came from.

Five Steps Between a Question and a Number

MCP is the plug that lets an AI model talk to an outside tool in a standard way. The INE's version exposes five read-only tools, and the server makes the assistant use them in order: find the statistical operation, list its tables, read the variables (sex, province, period), pick the values, then fetch the data. A call that tries to skip a step gets an error that starts with "BLOCKED".

That strictness is the point. Official statistics are organised in a way that trips up people and machines alike, with series that share names and tables that split the same figure by different filters. Forcing the assistant to walk the catalogue the way an analyst would means the number at the end comes from the right table, with the filters spelled out.

The answer arrives with its receipts: the operation, a link to the source table and the filters applied. A reader can click through and check the figure in seconds, which is more than most chatbot answers offer today.

So how far does it reach, and who can use it?

Any Assistant, No Key, and a Hosted Version Next

The catalogue lists 166 statistical operations. 110 already have their tables wired up and work end to end, from inflation and unemployment to population by province, and the other 56 are marked as coming soon. The server works with any MCP client, including Claude, Codex, Cursor, VS Code, Windsurf, Gemini CLI and Zed.

For now it runs on your own machine: clone the repository, install it with Python and the uv tool, and add it to your assistant with one command. There is no API key and nothing to write back, since every tool only reads. The INE says a hosted server will follow in the coming days, so people who never open a terminal can use it too. The code is open under the European Union Public Licence (EUPL-1.2).

The project's own tagline sums up the ambition in one line.

“Official statistics of Spain, straight from the source, for any AI assistant.”— INE, MCP server README

Community-built MCP servers for INE data already existed. This one carries the institute's own name, and its own promise to keep improving it.

Why a Statistics Office Wants to Be AI-Ready

The INE frames the release as part of making its data "AI-ready": well described, readable by machines and always cited. More people now meet official numbers through a chatbot than through a statistics portal, and a model answering from training data can be months out of date or simply wrong.

Developers noticed. Spanish engineer David Fernández called it an example for the rest of Spain's public administrations, and developer Cristian Córdova wrote that he was surprised it actually worked well.

The people who gain most are the ones who need a correct figure fast and rarely have an analyst at hand: a reporter checking a claim on deadline, a teacher preparing a class on regional unemployment, a small business sizing a market by province. They can now ask in plain language and get the official number, with the table to prove it.

If the hosted version lands as promised, checking a statistic in Spain becomes as easy as asking for it.

Five Steps to an Official Figure

A visual summary of this story

The Brief

Stay curious

AI and technology: what changes and why it matters.
Your daily selection, in English or Spanish.

Free forever. Unsubscribe anytime.

Conversation

Start the conversation

No account needed. Comments are checked automatically — keep it civil.

More stories

Keep reading