denue-mcp
This server gives AI agents access to INEGI's Mexican business and socioeconomic data through four DENUE search tools and one indicator tool.
denue_buscar_cercania — Find businesses by keyword near a latitude/longitude, with configurable radius up to 5 km.
denue_buscar_por_estado — Search businesses by keyword in a specific Mexican state or nationwide, with pagination controls.
denue_buscar_por_nombre — Search businesses by commercial or legal name, optionally filtered by state.
denue_detalle — Get the complete DENUE record for a specific establishment using its ID.
inegi_indicador — Query official INEGI socioeconomic indicators (population, inflation, consumer confidence, industrial activity, etc.) nationally or by state, with latest value or full history.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@denue-mcp find pharmacies in Jalisco"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
denue-mcp
MCP server for INEGI's DENUE (5M+ Mexican businesses) and Banco de Indicadores (population, inflation, consumer confidence, industrial activity) — query both in plain language from Claude or any MCP-compatible agent.
I built this because a client project needed to look up real Mexican business data from an agent, and INEGI only ships DENUE and Indicadores as two separate REST APIs — each with its own undocumented quirks. The one that actually bit me: Indicadores silently splits every code across two data banks, BISE and BIE-BISE, and asking the wrong one doesn't 404 — it returns ErrorCode:100 with no hint which bank you should've used. obtenerIndicador() in src/indicadores.ts just tries one bank, and on ErrorCode:100 retries with the other before giving up — so the agent never has to know banks exist.

(Real query and response, replayed from the README example below. Source in docs/demo-src, rendered with HyperFrames — cd docs/demo-src && npm run render.)
Existing MCP integrations with DENUE (e.g. cdmx-mcp) bundle it as one of several Mexico City-only datasets. No MCP server previously existed for INEGI's Indicadores API — this one covers both, at national level, across any of the 32 states or the whole country at once.
Tools
Tool | What it does |
| Search businesses by keyword near a lat/long coordinate (radius up to 5km) |
| Search businesses by keyword within a specific state, or nationwide |
| Search businesses by commercial or legal name |
| Get the full record for a specific establishment by its DENUE id |
| Get a socioeconomic indicator (population, inflation, consumer confidence, industrial activity, or any raw INEGI indicator code) nationally or by state, latest value or full history |
State names are accepted in plain Spanish ("Jalisco", "Ciudad de Mexico") — no need to know INEGI's numeric codes.
Related MCP server: mcp-denue
Example
Asking Claude "find pharmacies in Jalisco" calls denue_buscar_por_estado and returns real DENUE records:
- PV ARCOS LUROLA (id: 1963523)
Actividad: Farmacias sin minisúper
Direccion: CALLE MORELOS 291 CENTRO 48300 PUERTO VALLARTA, Puerto Vallarta, JALISCO
Telefono: N/D
Coordenadas: 20.60831764, -105.23612503
- PV INSUERGENTES LUROLA (id: 1963298)
Actividad: Farmacias sin minisúper
Direccion: CALLE BASILIO BADILLO 344 EMILIANO ZAPATA 48380 PUERTO VALLARTA, Puerto Vallarta, JALISCO
Telefono: N/D
Coordenadas: 20.60264623, -105.23377801Asking "population of Jalisco" calls inegi_indicador and returns the real INEGI figure:
Poblacion total (codigo 1002000001) — Jalisco:
- 2020: 8,348,151Setup
Get a free DENUE API token — register at inegi.org.mx/servicios/api_denue.html.
Clone and build:
git clone https://github.com/mxnueel/denue-mcp.git cd denue-mcp npm install npm run buildRegister it with your MCP client.
Claude Code (CLI):
claude mcp add denue -s user -e INEGI_DENUE_TOKEN=your-token-here -- node /absolute/path/to/denue-mcp/build/index.jsClaude Desktop (or any client using a
mcpServersJSON config, e.g.claude_desktop_config.json):{ "mcpServers": { "denue": { "command": "node", "args": ["/absolute/path/to/denue-mcp/build/index.js"], "env": { "INEGI_DENUE_TOKEN": "your-token-here" } } } }Ask your agent something like "find pharmacies in Jalisco" or "what businesses are near 20.6597, -103.3496?"
Testing
npm testRuns the full build and the test suite (node --test) — covers state-name resolution (estados.ts) and the missing-token error path for every DENUE call. CI runs this on every push against Node 18, 20, and 22.
Contributing
Issues and PRs welcome — especially reports of DENUE response shapes this hasn't been tested against yet (different methods return slightly different field sets). Fork, branch, npm test, and open a PR.
License
MIT — see LICENSE.
Available Tools
5 toolsdenue_buscar_cercaniaBuscar negocios cerca de una coordenadaA
Busca establecimientos economicos de todo Mexico en el Directorio Estadistico Nacional de Unidades Economicas (DENUE) de INEGI, cerca de una coordenada dada. Util para encontrar negocios, competidores o proveedores en una zona especifica.
Inputs: latitud (required), longitud (required), condicion (required), distanciaMetros.
denue_buscar_por_estadoBuscar negocios en un estado de MexicoA
Busca establecimientos economicos por palabra clave dentro de un estado especifico de Mexico (o a nivel nacional). Util cuando no se tiene una coordenada exacta, solo una region.
Inputs: estado (required), condicion (required), fin, inicio.
denue_buscar_por_nombreBuscar un negocio por nombre o razon socialB
Busca establecimientos economicos por su nombre comercial o razon social en todo Mexico o en un estado especifico.
Inputs: nombre (required), fin, estado, inicio.
denue_detalleObtener el detalle completo de un establecimientoA
Obtiene la ficha completa de un establecimiento economico dado su ID de DENUE (obtenido de otra busqueda).
Inputs: id (required).
inegi_indicadorConsultar un indicador socioeconomico de INEGIA
Consulta indicadores socioeconomicos oficiales de INEGI (Banco de Indicadores): poblacion, inflacion, confianza del consumidor, actividad industrial, y mas, a nivel nacional o por estado. Indicadores conocidos por nombre: poblacion, inflacion, inpc, confianza del consumidor, actividad industrial. Tambien acepta directamente un codigo numerico de indicador de INEGI para consultar cualquiera de su catalogo.
Inputs: indicador (required), estado, historico.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The three search tools are differentiated by search mode (coordinates, state, name), and the detail tool clearly targets a specific record by ID. However, buscar_por_estado and buscar_por_nombre can overlap when searching by keyword within a state, so a slight ambiguity remains.
Most tools follow a denue_ verb_noun or denue_buscar_* pattern, with inegi_indicador as a minor deviation. The naming is readable and mostly predictable, but detalle is a noun rather than a verb and the inegi_ prefix breaks the denue convention.
With 5 tools, the server is well-scoped for its purpose: querying DENUE establishments and INEGI indicators. Each tool addresses a distinct workflow step without redundancy or bloat.
The DENUE search-and-detail lifecycle is covered for discoverability, including coordinate, state, and name lookups. Missing search by economic activity or category is a minor gap, and the INEGI side is thin with a single indicator query tool, but core read-only workflows are complete.
Maintenance
Related MCP Connectors
INEGI DENUE MCP — Mexico's directory of economic units (~6M businesses).
Official Mexican data for AI agents: CURP, RFC, CFDI, postal codes, phone, SPEI/CEP, DOF, geocoding.
Live Google Maps business search, review, and photo data for AI agents over MCP.
Free web search, 130M+ business records, local search, weather and travel data for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables agents to search, retrieve, and contribute business data from a directory of 11M+ businesses across 195 countries, returning markdown prose by default.22115 npm3MIT
- AlicenseNot gradedqualityBmaintenanceINEGI DENUE MCP — Mexico's directory of economic units (~6M businesses).54 npmMIT
- AlicenseAqualityDmaintenanceProvides AI agents with access to real, verifiable businesses with provenance and source URLs, enabling natural-language business search and profile retrieval.2MIT

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