es-ine/mcp
DataMCP server that lets AI assistants search and query Spain's official INE statistics through natural language.
What it does
INE MCP is a Model Context Protocol server that exposes the public JSON API of Spain's National Statistics Institute (INE) to MCP-capable assistants such as Claude, Codex, Cursor, VS Code, Windsurf, Gemini CLI and Zed. Users ask a question in plain language, and the assistant resolves it into an INE statistical operation, a table, the right variables, filters and period, then returns the figures with a link to the official table.
The server exposes five read-only tools designed to be called in sequence: ine_select_operation, ine_select_multiple_tables, ine_select_multiple_table_groups, ine_select_multiple_values and ine_select_multiple_table_data. Each tool accepts a batch of requests and resolves them in parallel. The ordering is enforced in code and cannot be disabled; a call that arrives too early returns an error starting with BLOCKED that names the missing step enforced order.
The catalogue contains 166 INE operations, of which 110 currently have tables and work end to end; the remaining 56 are listed and will work once INE publishes their tables operations catalogue. Data labels appear in Spanish and English as INE publishes them.
Quick start
Requirements: Python 3.11 or later and uv. The hosted endpoint is not yet available, so run the server locally.
-
Clone the repository from the INE GitLab source and enter it:
git clone https://gitlab.ine.es/prod-estadistica/metodologia/ia-ready/mcp.git ine-mcp cd ine-mcp uv sync -
Start the server to confirm it runs (it stays silent until a client connects, on the
stdiotransport):uv run ine-mcp -
Register it in a client. For Claude Code:
claude mcp add ine -- uv run --directory /path/to/ine-mcp ine-mcpFor Codex:
codex mcp add ine -- uv run --directory /path/to/ine-mcp ine-mcp. Clients that read a JSON config (Claude Desktop, Cursor, Windsurf, Gemini CLI, Cline, LM Studio and others) use the samemcpServersblock:{ "mcpServers": { "ine": { "command": "uv", "args": ["run", "--directory", "/path/to/ine-mcp", "ine-mcp"] } } }Replace
/path/to/ine-mcpwith the absolute path of your clone, then restart the client completely. -
Ask a question such as "Give me the last four quarterly unemployment rates for men in Murcia." The assistant should select the operation, table, variables and values before pulling the observations and returning a table URL as the source.
Usage constraints
- Data availability and response times depend on the INE public API; temporary outages show up as empty or failing responses.
- Only operations with published tables can return data; the 56 listed operations are not yet usable.
- The tools are read-only: the server never writes or modifies anything, and no authentication or personal data is needed.
- The hosted endpoint is marked available soon; until then, local setup is the only option.
- Figures should be cited to INE with a link to the returned table URL.
- The project is under active development, and the code is released under EUPL-1.2 licensing.
HotRepo's take
INE MCP was recorded on HotRepo's new-project board on 2026-11-26, gaining 109 stars in a window of roughly 12 hours from 08:25 to 20:15 UTC. That single early snapshot is the only record available, so it supports the fact of a fast initial rise but not a trend claim. For data-focused MCP users, the distinguishing detail is the enforced five-step flow and per-result source URL, which keeps assistant answers tied to specific INE tables instead of free-form figures.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.