inegi-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
inegi-mcp
Zero-token-first hybrid Model Context Protocol (MCP) server for INEGI (Instituto Nacional de Estadística y Geografía de México).
Instead of wrapping a single rate-limited REST endpoint, inegi-mcp combines:
Semantic Resolution: Accent-insensitive search for states, municipalities, and localities (
wscatgeo/v2), SCIAN economic activity codes, and Banco de Indicadores metrics.Descarga Masiva Crawler: Queries INEGI's internal JSON catalog (
/app/api/descarga/descarga/descargamasiva/lista/...) to discover open-data and microdata archives across DENUE, Microdatos, Tabulados, and Indicadores.Local DuckDB Lakehouse: Streams
.ziparchives on demand into~/.local/share/inegi-mcp/, parses.csv(UTF-8 & CP1252) and.dbftables, indexesdiccionario_de_datos, and executes safe read-only SQL withnorm_txt()andhaversine_m().Progressive Live API Fusion: Works immediately with zero tokens, and automatically unlocks live Banco de Indicadores v2.0, DENUE REST v1, and SAKBÉ v3.1 routing/tolls when tokens are configured.
Quickstart
cd /home/stinkyyy/dev/inegi-mcp
uv sync
uv run inegi-mcpStreamable HTTP mode
uv run inegi-mcp --transport streamable-http --host 127.0.0.1 --port 8000Related MCP server: Tlaloc MCP Server
Optional Environment Variables
Variable | Purpose | Default |
| Shared token for Indicadores v2 & DENUE REST v1 | Unset (zero-token bulk/geo mode) |
| Override token for Banco de Indicadores v2 |
|
| Override token for DENUE REST v1 |
|
| Token for SAKBÉ v3.1 road routing & tolls | Unset (Haversine distance estimate) |
| Local cache & DuckDB database directory |
|
| Safety cap per downloaded archive (MB) |
|
| Default max rows returned by |
|
MCP Client Configuration
{
"mcpServers": {
"inegi-mcp": {
"command": "/home/stinkyyy/dev/inegi-mcp/.venv/bin/inegi-mcp",
"args": []
}
}
}Bundled Agent Skills (skills/)
This repository ships 4 cross-host agent skills designed specifically to pair with inegi-mcp:
Skill | Purpose |
| Score Mexican municipalities & micro-radii using Censo 2020 ITER purchasing-power proxies, DENUE competitor saturation, and SAKBÉ corridors |
| Enforce expansion weights ( |
| Two-hop |
| Export DuckDB geospatial queries to RFC 7946 GeoJSON and zero-key standalone dark-mode MapLibre HTML maps |
Install all 4 skills locally across ~/.agents/skills/, ~/.claude/skills/, and ~/.gemini/config/skills/:
./scripts/install-skills.shOr install from GitHub via the skills CLI:
npx skills add stinkyyyyy/inegi-mcpTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Official Mexican data for AI agents: CURP, RFC, CFDI, postal codes, phone, SPEI/CEP, DOF, geocoding.
Discover, resolve, and query official Brazilian economic data with semantic search and provenance.
SQL over 52.8B public records: USAspending, OpenAlex, patents, LEHD jobs, SEC, EPA, FERC, Medicare.
INEGI DENUE MCP — Mexico's directory of economic units (~6M businesses).
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides access to Mexico's INEGI (national statistics office) indicators API, enabling AI agents to query statistical data through natural language or direct tool calls.63 npmMIT

Tlaloc MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceProvides AI assistants with live, authenticated access to official Mexican data sources including CURP, RFC, postal codes, phone numbers, SPEI payments, CFDI status, DOF semantic search, and geocoding via INEGI/INE.MIT- AlicenseNot gradedqualityCmaintenanceEnables agents to query official Brazilian public data on water, sanitation, energy, and territory through a single unified query interface, with spatial filters, a sector ontology, and source/date provenance attached to every number. Ships discoverable tools and resources for listing domains, describing datasets, searching, and running queries over local DuckDB data.MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Mexican public government data in a single consistent shape through natural-language tool calls: searching and inspecting datasets.gob.mx, tracking catalog changes, verifying RFCs against SAT's 69-B list, normalizing state names, and pulling Banxico series, DENUE nearby businesses, and INEGI indicators. Every response carries its official source and data date, with all figures produced by deterministic reads of official files and APIs.MIT