Spain's INE launches an official MCP server so AI agents can query its public data
IA en un minuto newsroom · Editor: Jon Elgezabal

In 30 seconds
INE has given AI assistants direct access to its official statistics through an MCP server. Each figure is fetched live from its public API and arrives together with the operation, the table and the filters behind it. It still needs a local installation, although the agency promises a server of its own within days.
Spain's National Statistics Institute (INE) released its own MCP server on November 26, the piece that lets an artificial intelligence assistant query its official data. MCP (Model Context Protocol) is an open standard for linking AI with external information sources.
According to the agency, the figures the assistant gives do not come from what the model remembers or from an internet search: they are requested on the spot from INE's public API. Each answer also states the statistical operation the figure comes from, the table with its link and the filters used, so that it can be checked. INE stresses that questions are asked in natural language, without knowing how the tables are organised, and that it works with any model or application compatible with MCP.
The code, the installation guide and instructions for several assistants are in INE's GitHub repository. According to that page, the catalogue covers 166 operations, 110 of them with tables already on offer; it needs no authentication because the data is public, and it requires Python 3.11 or later. For now it has to be deployed locally, on the user's own computer, and INE says it will launch its own server in the coming days so that this is no longer needed.
Xataka, a Spanish tech outlet, tested it: it asked an agent to install the server and, with a query that combined the evolution of unemployment and the CPI since 2019, got a chart in about eight minutes. The outlet points out two limits: for now users need to be comfortable with Python and the terminal, or have an agent that does it for them, and it recommends opening the linked table to check that the figure matches.
Why it matters · analysis and opinion
Until now, asking a chatbot for the unemployment rate or inflation was a gamble: it might return a provisional or outdated figure, or one taken from any website. Having the statistics body itself offer the official route shifts responsibility, because the figure arrives with its origin and can be audited. For consultancies, journalists, accounting firms or analysis departments already working with assistants, it is a way to cut errors using public data. What would make it useful for most people is still missing: the hosted server, which would turn a technical installation into a simple connector. Until it arrives, the sensible thing is to keep opening the linked table before accepting a figure.
Official source: INE · Written with the help of AI: how we make the news
What does it mean for your business? · analysis and opinion
This mainly affects freelancers, small consultancies, accounting firms, and small businesses that already rely on official statistics for market studies, business plans, client reports, or financing applications. With this server, an AI agent can locate the series it needs in the INE database and arrange them in a chart without having to navigate the website menus by hand. It is a tool designed for data on Spain; in Latin America it mainly serves as a reference for what other statistics institutes could offer. Anyone who does not work with these figures on a daily basis does not need to do anything.
Today the installation is local and requires familiarity with Python and the terminal, or an agent capable of setting it up. The prudent approach is to have someone with a technical profile test it first, with simple queries, before using it in documents that will leave the company. If no one on the team has that profile, it is better to wait for the remote server that INE plans to deploy in the coming days, which will not require any installation.
The main risk is accepting a figure as correct without checking it. Our advice is to always open the table that comes with each answer and verify that the data matches before citing it in a report, a proposal, or a presentation to a client. An error in an official statistic undermines credibility exactly where it is needed most.


