# Banxico (Banco de México)

Pulls official Mexican economic indicators directly from Banco de México. Useful for tracking real-time USD/MXN exchange rates and central bank interest figures.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6
- Author: nanisadw3
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/nanisadw3/mcp-banxico
- Updated: 2026-10-08
- HTML: https://affpapa.org/en/nevibecode/mcp/banxico-banco-de-mexico

## What it does

This server connects AI assistants to the Banco de México SIE economic database. It registers dedicated tools to fetch dollar-to-peso exchange rates, INPC inflation statistics, UDIS values, and central bank reserves. You can also query custom indicator series with `consultar_serie_sie` across specific date ranges using official series identifiers.

You have two setup paths. The remote hosted endpoint at `https://banxico-mcp.duckdns.org/mcp` needs zero configuration and no API key, though it throttles traffic per IP address. Running the tool locally via `uvx mcp-banxico` bypasses shared rate limits. Local execution demands Python 3.10 and a personal token in the `BANXICO_TOKEN` environment variable, without which SIE requests fail.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Remote server: `https://banxico-mcp.duckdns.org/mcp`
- Environment variables: `BANXICO_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http banxico https://banxico-mcp.duckdns.org/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env BANXICO_TOKEN=<BANXICO_TOKEN> --transport stdio banxico-banco-de-mexico -- uvx mcp-banxico
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-banxico <command>

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add banxico-banco-de-mexico --url https://banxico-mcp.duckdns.org/mcp
```

2. **Platform CLI**
```bash
codex mcp add banxico-banco-de-mexico --env BANXICO_TOKEN=<BANXICO_TOKEN> -- uvx mcp-banxico
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-banxico <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "banxico-banco-de-mexico": {
            "url": "https://banxico-mcp.duckdns.org/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "banxico-banco-de-mexico": {
            "command": "uvx",
            "args": [
                "mcp-banxico"
            ],
            "env": {
                "BANXICO_TOKEN": "<BANXICO_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-banxico <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "banxico-banco-de-mexico": {
            "type": "http",
            "url": "https://banxico-mcp.duckdns.org/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "banxico-banco-de-mexico": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "mcp-banxico"
            ],
            "env": {
                "BANXICO_TOKEN": "<BANXICO_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-banxico <command>

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http banxico-banco-de-mexico https://banxico-mcp.duckdns.org/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e BANXICO_TOKEN=<BANXICO_TOKEN> banxico-banco-de-mexico uvx mcp-banxico
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-banxico <command>

## When to use it
- retrieve official USD/MXN exchange rates
- inspect current Mexican inflation metrics and UDIS values
- look up TIIE interbank interest benchmarks
- extract historical time series from Banxico SIE by series code

## Example prompts
- Fetch the latest official USD/MXN exchange rate with `tipo_cambio_usd`
- What is the current 28-day TIIE interest rate in Mexico?
- Pull data for series `SF43718` between September 1 and September 28

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89609
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44591
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5469
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2817
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2197
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
