Denue

v0.2.1
io.github.pipeworx-io/denue Checked 22 hours ago Published 1 month ago

INEGI DENUE MCP — Mexico's directory of economic units (~6M businesses).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

denue_search_nearby

Find businesses near a coordinate. Returns establishments matching the keyword within the given radius (max 5000m).

ParameterTypeDescription
condition *stringSearch keyword — business name, brand, or activity (e.g., "oxxo", "cafe", "farmacia"). Use "todos" for all establishments in radius.
lat *numberLatitude (decimal degrees)
lng *numberLongitude (decimal degrees)
radius_mnumberSearch radius in meters (1-5000, default 500)

denue_search_by_name

Search businesses by name or brand across Mexico or a single state. Paginated — set page_size and page_start to walk results.

ParameterTypeDescription
name *stringBusiness name or brand (e.g., "walmart", "cemex")
page_endnumberLast record (default page_start + 24, max ~1000 per request)
page_startnumberFirst record (1-based, default 1)
state_codestringTwo-digit state code "01"-"32", or "00" for all Mexico. Default "00".

denue_search_in_state

Search businesses in a single Mexican state by keyword — matches against name, activity, or address. Use this for state-scoped queries that need more than just business name (e.g., "panaderia", "ferreteria"). Returns paginated results.

ParameterTypeDescription
keyword *stringSearch term — matches name, economic activity description, or address text.
state_code *stringTwo-digit state code "01"-"32" (required — use denue_search_by_name with "00" for nationwide).
page_endnumberLast record (default page_start + 24)
page_startnumberFirst record (1-based, default 1)

denue_establishment

Get full details for a single establishment by DENUE ID (the "Id" field from search results).

ParameterTypeDescription
id *stringEstablishment Id (numeric string, e.g., "9988845")

denue_count

Count establishments by economic activity + geography + size stratum. Returns totals — no detail records. Use for market-sizing questions like "how many pharmacies are in Jalisco".

ParameterTypeDescription
activity_code *stringSCIAN economic activity code(s), comma-separated. 2-6 digits (sector → branch → class). Use "0" for any activity. Examples: "46" (retail), "722" (food services), "464111" (pharmacies).
area_code *stringGeography code(s), comma-separated. "00" = all Mexico; 2 digits = state; 5 digits = municipality (state+mun). Examples: "09" (CDMX), "14039" (Guadalajara).
stratumstringEmployee-size stratum: 0=any, 1=0-5, 2=6-10, 3=11-30, 4=31-50, 5=51-100, 6=101-250, 7=251+. Default "0".