# Denue [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/pipeworx-io/mcp-denue  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1089  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/denue

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

## Tools
Capabilities this server exposes over MCP:

- **denue_search_nearby** — Find businesses near a coordinate. Returns establishments matching the keyword within the given radius (max 5000m).
- **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.
- **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.
- **denue_establishment** — Get full details for a single establishment by DENUE ID (the "Id" field from search results).
- **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".

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "denue": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-denue"]
  }
}
```

## Documentation

## What Denue does

Denue exposes selected data from INEGI’s Directorio Estadístico Nacional de Unidades Económicas (DENUE) to MCP-compatible clients. The directory covers approximately six million businesses and other economic units in Mexico. Search tools can find establishments by name, brand, activity, address, state, or geographic proximity, while a separate detail tool retrieves the full record for a known DENUE identifier.

The server also supports aggregate queries. `denue_count` returns the number of establishments matching an economic activity, geographic scope, and size stratum, without returning individual business records. That makes it suitable for questions such as estimating how many pharmacies operate in a particular Mexican state.

This is an independent, unofficial integration and is not affiliated with, endorsed by, or published by the upstream provider.

## How it works

The hosted MCP connection is available at `https://gateway.pipeworx.io/denue/mcp`. Add that URL to an MCP client to connect over HTTP. The same gateway also exposes the full Pipeworx catalog at `https://gateway.pipeworx.io/mcp`; the Denue endpoint lists Denue tools directly while also exposing shared Pipeworx meta-tools.

For clients or scripts that do not use MCP, individual tools can be called through the gateway’s HTTP API. For example, a nearby search is sent as a POST request to `/v1/tools/denue_search_nearby` with a keyword, latitude, longitude, and radius.

The npm package `@pipeworx/mcp-denue` provides a local stdio bridge. It forwards requests to the hosted gateway rather than maintaining a local DENUE database, so it needs network access and has no offline mode. The gateway can also route natural-language questions through `ask_pipeworx`.

## Setup and configuration

A hosted connection can use this MCP configuration:

```json
{
  "mcpServers": {
    "denue": {
      "url": "https://gateway.pipeworx.io/denue/mcp"
    }
  }
}
```

For a local stdio connection, configure the client to run:

```json
{
  "mcpServers": {
    "denue": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-denue"]
    }
  }
}
```

Anonymous use is limited to 50 calls per day. A free Pipeworx account increases the allowance to 200 calls per day; supply its key as the `PIPEWORX_API_KEY` environment variable. Requests use the key as a Bearer token and are metered and billed in the same way as hosted connections.

Set `PIPEWORX_META_TOOLS=1` when the local bridge should also list shared gateway tools such as `ask_pipeworx`, discovery, search, and memory tools. Behind an HTTPS proxy, newer Node.js releases can use proxy environment settings when `NODE_USE_ENV_PROXY=1` is enabled.

## Tools and capabilities

- `denue_search_nearby` finds establishments matching a keyword around coordinates. The radius can be up to 5,000 meters.
- `denue_search_by_name` searches by business name or brand across Mexico or within one state. Results are paginated with `page_size` and `page_start`.
- `denue_search_in_state` searches one Mexican state by keyword across business name, economic activity, or address. It is intended for broader state-scoped searches and returns paginated results.
- `denue_establishment` retrieves full information for one establishment using the `Id` value returned by a search.
- `denue_count` returns totals by activity, geography, and size stratum without detail records.

## Limitations and notes

The nearby-search radius is capped at 5,000 meters. Search results may require pagination for larger result sets. The local npm bridge forwards calls to the remote gateway, so it cannot operate without an internet connection. Pack endpoints also list shared Pipeworx meta-tools; the connection’s initialization response defines the exact tool scope for that connection.

_Full upstream README: https://allmcps.com/mcp/denue/readme_

