Spain’s INE publishes MCP link for AI to consult official statistics
The connection follows five steps and returns data references. Accessing the source does not guarantee that every assistant selects or interprets the correct indicator.
By Wellinton OliveiraCEO of Lyntev
Published
3 min read

Key points
- Code and local setup instructions were announced on 26 November.
- An INE-hosted remote endpoint is not yet listed in the consulted documentation.
- Results identify the operation, table and filters so the source can be checked.
Spain’s National Statistics Institute has published a server that lets artificial intelligence assistants consult its official statistics through a standard connection. The announcement, dated 26 November, covers code and instructions for running the tool locally. An institute-hosted remote server was promised for the following days, without an address or opening date already published.
The distinction matters: the initiative does not automatically connect every assistant to INE. A compatible Model Context Protocol, or MCP, client must be configured. The protocol defines how an AI application discovers and uses external tools. In this case, the connection searches for and retrieves public data rather than changing the statistics.
Spain’s INE announcement (opens in a new tab) presents the initiative as a way to bring answers closer to up-to-date information at its source. The official technical documentation (opens in a new tab) identifies what is available, the query sequence and its limits. This is the Spanish institute, rather than Portugal’s organisation with the same acronym.
What can already run on a local computer
The repository provides the program, installation instructions and configuration examples for compatible clients. The consulted version specifies Python 3.11 or later and describes two transports: a local process’s standard input and output, or an HTTP connection. Neither establishes that an INE-operated remote service is already available.
The documentation still labels that hosted endpoint as forthcoming. INE expects it to remove the need for local execution, but the plan does not show that the endpoint is operational. The announcement also does not introduce a new AI model or an INE conversation application.
The figures come from the institute’s public application programming interface, or API. This is the infrastructure that makes statistics available in a machine-readable format. MCP adds an organised route for an assistant to navigate that information and return the reference it used.
Five steps before returning observations
The tool separates discovery of a statistical operation from extraction of its values. A search for inflation, for example, can find several operations involving prices. The appropriate one must be chosen before identifying a table, its variables, filter values and period.
| Step | What it searches for or returns |
|---|---|
| Operation | The relevant statistical collection, such as prices or employment |
| Table | An available table within the chosen operation |
| Variables | The dimensions organising that table |
| Values | Categories that can be used as filters |
| Observations | Filtered data, with a reference to the source |
The published code and instructions say the server checks the order and identifiers used. A premature step or a filter that does not match previously retrieved values can be blocked. These checks reduce navigation errors, but do not establish that an assistant understood the economic question or selected the intended indicator.
The documented catalogue contains 166 operations, of which 110 have tables available in that inventory. The remainder do not become queryable merely because they appear in the list. Actual coverage depends on the published data and the API’s availability.
References make the answer easier to check
INE says results include the operation, a table with its public link, and the filters applied. This trail allows a reader to check the territory, period and category behind a figure, rather than accept a plausible sentence from an assistant alone.
It remains necessary to distinguish a monthly rate from an annual one, provisional figures from final figures, and seasonally adjusted series from unadjusted series. Access to the source does not remove those distinctions or replace statistical interpretation. The institute’s own legal notice acknowledges that published content can contain errors and subsequent corrections.
In Marketing4eCommerce (opens in a new tab), María Bastero’s report of 27 November highlights potential uses in online commerce and explains the configuration still required. Those are possible analytical applications; the report does not present a trial measuring time savings or improvements in business decisions.
The remote endpoint and further coverage remain to be confirmed
In a local Lyntev check, the official program exposed all five tools and answered a catalogue search using price-related terms. The record confirms that discovery operation, rather than testing every table or the accuracy of answers generated by AI models. The screenshot shows the server inside a technical client, MCP Inspector, rather than a new official conversation interface.
The next verifiable developments are publication of the promised remote endpoint, its instructions and coverage changes announced by INE. For now, the available code and API support a local connection with traceable data and identified limits, without themselves guaranteeing that every final answer is correct.
Sources
Documents, reporting and references gathered for this story. Access limits are stated in the text or the reference itself.
A primary source is the origin of a document or statement; it may be the interested party itself. This label does not mean independent confirmation. The list also includes context and image references where relevant.
- El INE publica un servidor MCP para mejorar la respuesta de la IA en la búsqueda de sus datos oficiales (opens in a new tab)Instituto Nacional de Estadística de España, . Primary source. Accessed 27 November 2026
- INE MCP — documentação e código oficiais (opens in a new tab)Instituto Nacional de Estadística de España. Primary source. Accessed 27 November 2026
- API JSON del INE — documentación (opens in a new tab)Instituto Nacional de Estadística de España. Primary source. Accessed 27 November 2026
- El INE presenta su MCP para facilitar el acceso de asistentes de IA a información oficial y actualizada (opens in a new tab)María Bastero / Marketing4eCommerce, . Accessed 27 November 2026
- Aviso legal — reutilización y calidad (opens in a new tab)Instituto Nacional de Estadística de España. Primary source. Accessed 27 November 2026
- Captura própria — consulta local INE MCP em MCP Inspector (opens in a new tab)Lyntev, . Primary source. Accessed 27 November 2026
- Licenças e origem do software na captura (opens in a new tab)Lyntev / INE / Model Context Protocol contributors. Primary source. Accessed 27 November 2026




