Fri 2026.11.27
INE MCP: Spain’s official statistics and their original tables
Today's pick: INE MCP
INE MCP is a product that lets an AI assistant look up Spain’s official statistics directly. Each figure the assistant gets comes with a link to the official table it is in.
It is today’s pick because you can see which official table an AI’s figure came from.
In four panels
1The problem
- Your questionUnemployment for men in Murcia
- Web searchFinds figures on several pages
- An answer with citationsWhich value in the official table?
- You check againOpen the source and compare
So you have to open the source and find the figure in the official table yourself.
2How it works
- Your questionTools called in orderI called them
- Survey and tableSteps 1 and 2
- Variables and valuesSteps 3 and 4
- Figures and sourceThe table’s public URL and the filters
Ran today
INE MCP is an MCP server that lets an AI assistant fetch statistics from INE’s public API.
3What is different
BeforeINE MCP
Where the figures come from
Pages in search results (Claude web search)Only INE’s public API
Trade-offOnly statistics published as tables
Picking tables and values
Model picks from pages (Claude web search)Only IDs in INE’s lists
Trade-offFive calls to get one figure
4Running it
Unemployment for men in Murcia, last 4 quarters, from INE MCP and the INE API
Terminal, step 5 and a direct INE API request [(2026, 'T3', 9.58), (2026, 'T2', 9.49), (2026, 'T1', 8.1), (2025, 'T4', 9.53)] Tasa de paro de la población. Hombres. Murcia, Región de. Total. [(2026, 21, 9.58), (2026, 20, 9.49), (2026, 19, 8.1), (2025, 22, 9.53)]They matched the values from a direct request to the INE API with the same filters.
- Found on
- GitHub
- Built with
- Python, uv, MCP
The problem
When you ask an AI assistant about unemployment in Spain, it is hard to check where the figure came from. Anthropic’s docs say that Claude’s web search tool finds information newer than Claude’s knowledge cutoff. It cites sources from the search results. The search results decide whether a cited source is the statistics office’s table or an article that copied the figure. So you have to open the source and find the figure in the official table yourself.
How it solves it
The methodology and sample design unit of Statistics Spain (INE) published INE MCP on GitHub on November 26, 2026.
INE MCP is an MCPModel Context Protocol. It is a standard for how AI models connect to outside tools and data. server that lets an AI assistant fetch statistics from INE’s public API. It has five tools, and they can only be called in a fixed order. First the assistant finds a statistical survey and picks a table. Then it picks the table’s variables and values. Finally, it gets the figures. If a step is skipped, the server returns an error that starts with BLOCKED and names the missing step. According to the README, it also rejects identifiers that the earlier steps did not return. It returns the figures with the survey, the table, the table’s public URL and the filters applied.
What is different
First, INE MCP differs in where the figures come from. With Claude’s web search tool, the figures in an answer come from several pages in the search results. INE MCP takes figures only from INE’s public API. The server attaches usage rules to its first response. They tell the assistant not to fill in figures from web search or from what the model learned in training. The trade-off is that it cannot look up statistics that INE does not publish as tables, even from INE’s own surveys. According to the README, 110 of INE’s 166 surveys have tables.
Second, INE MCP differs in how tables and values are picked. With web search, the model reads the pages and decides which value to copy. In INE MCP, each step needs the results of the earlier steps for the same table. The server checks each identifier against the lists it got from INE. So it rejects a made-up identifier that does not exist. The trade-off is that getting one figure takes five calls.
How it was built
- The repository has one commit. Its author name is INE’s methodology and sample design unit. The README says to clone the code from INE’s GitLab repository.
- The Python code under
srcis 2,182 lines. The license is EUPL 1.2. - In the README’s disclaimer, INE says it provides the code as is, without warranty. It also says the project is still under development.
Running it
I cloned the repository and installed it with uv in a shell with an empty environment. The install took 3 seconds. I did not connect an AI assistant. Instead, I called the tools with a small MCP client that I wrote with the Python standard library.
- The normal flow. As in the README’s example, I asked for the unemployment rate for men in Murcia over the last four quarters. Step 1 found the Labour Force Survey (EPA). Step 2 picked table 65334, and steps 3 and 4 picked the values for sex, region and age.
- Figures and source. Step 5 returned 9.58 for the third quarter of 2026 and 9.49 for the second. It returned 8.1 for the first quarter of 2026 and 9.53 for the fourth quarter of 2025. They matched the values from a direct request to the INE API with the same filters. The direct request’s output gives the quarters as codes (21 for the third, 20 for the second, 19 for the first and 22 for the fourth). INE MCP returned the same values with quarter names. The result came with the survey, the table, the table’s public URL and the filters applied.
- Skipping a step. In a new session, I called steps 3 and 5 without step 2. Both returned a
BLOCKEDerror and told me to call step 2 first. - An identifier that does not exist. Step 5 rejected 99999, which is not a region value. Step 3 also rejected two tables that are not in EPA’s table list.
- An identifier that was never shown. In step 4, I searched for "Murcia" and got only Murcia back. Then I passed Galicia’s identifier 9008 to step 5. The server accepted it and returned the unemployment rate for Galicia. Step 3 also accepted EPA table 65061, which was not in the top 10 results that step 2 showed. The code shows that the server checks identifiers against the full list it got from INE (20 regions, 1,093 tables), not against the list it showed.
- Time. Step 2 searches EPA’s 1,093 tables. It took 14.6, 16.3 and 17.7 seconds in three runs. Each of the other steps finished within 2 seconds.
- Tests. When I ran pytest, all 70 tests passed.
[(2026, 'T3', 9.58), (2026, 'T2', 9.49), (2026, 'T1', 8.1), (2025, 'T4', 9.53)]
Tasa de paro de la población. Hombres. Murcia, Región de. Total. [(2026, 21, 9.58), (2026, 20, 9.49), (2026, 19, 8.1), (2025, 22, 9.53)] "applied_filters": [
"18:452",
"70:9008",
"356:15668"
],
"Nombre": "Tasa de paro de la población. Hombres. Galicia. Total. ",Not checked
- A conversation in which an AI assistant takes the five steps itself. Register the server in Claude Code with
claude mcp addand ask the same question. - An HTTP connection. Today I connected over standard input and output (stdio). According to the README, there is no public HTTP endpoint yet. Run it with Streamable HTTP locally and check the same flow.
Verdict
It works. The unemployment rate for men in Murcia from INE MCP matched the INE API. But step 5 also accepted the identifier of a region that step 4 never showed. This is because the server checks against the full list it got from INE. So if a model fills in another region’s identifier from what it learned in training, the server cannot reject it. It is worth trying if you often look up Spanish statistics through an AI assistant.
What to take away
- In tools that agents call, accept only identifiers that the earlier steps returned. INE MCP checks identifiers against INE’s full list. As a result, step 5 accepted Galicia’s identifier even though step 4 had shown only Murcia.
- Tools that look up official data should return the address of the original table and the filters with each figure. INE MCP returned the table’s address and the filters with the figures. When I requested the same table with the same filters from the INE API, I got the same values.
Getting started
git clone https://github.com/es-ine/mcp ine-mcpcd ine-mcp && uv syncclaude mcp add ine -- uv run --directory /path/to/ine-mcp ine-mcp
- You need
- Python 3.11 or later and uv.
- An MCP client such as Claude Code or Codex. No account or API key is needed.
- Cost
- Free under the EUPL 1.2 license.
Steps select 1 ran.
Progress
- Day 3Some commits
- Day 7Upcoming
- Day 15Upcoming
- Day 30Upcoming
- Day 90Upcoming
- Day 180Upcoming
- Day 365Upcoming
Latest check Day 3, Sun 2026.11.29
- Commits since launch
- 1 → 2
- Stars
- 130 → 208
- Last commit
- 2026.11.27
- The first release is out (v1.0.0).