Banxico (Banco de México)

v0.2.0
io.github.nanisadw3/banxico Checked 5 days ago Published 2 months ago

Mexico's official economic data from Banxico: USD/MXN, inflation, UDIS, TIIE and reserves.

Values you need

VariableWhat it is
BANXICO_TOKENrequired secret Free API token for Banxico's SIE (Sistema de Informacion Economica)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add banxico -e 'BANXICO_TOKEN=<BANXICO_TOKEN>' -- uvx mcp-banxico==0.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "banxico": {
      "args": [
        "mcp-banxico==0.2.0"
      ],
      "command": "uvx",
      "env": {
        "BANXICO_TOKEN": "<BANXICO_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "banxico": {
      "args": [
        "mcp-banxico==0.2.0"
      ],
      "command": "uvx",
      "env": {
        "BANXICO_TOKEN": "<BANXICO_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "BANXICO_TOKEN",
      "id": "banxico-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "banxico": {
      "args": [
        "mcp-banxico==0.2.0"
      ],
      "command": "uvx",
      "env": {
        "BANXICO_TOKEN": "${input:banxico-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.banxico]
command = "uvx"
args = ["mcp-banxico==0.2.0"]
env = { "BANXICO_TOKEN" = "<BANXICO_TOKEN>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http banxico https://banxico-mcp.duckdns.org/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "banxico": {
      "args": [
        "-y",
        "mcp-remote",
        "https://banxico-mcp.duckdns.org/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "banxico": {
      "url": "https://banxico-mcp.duckdns.org/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "banxico": {
      "type": "http",
      "url": "https://banxico-mcp.duckdns.org/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.banxico]
command = "npx"
args = ["-y", "mcp-remote", "https://banxico-mcp.duckdns.org/mcp"]

For AI agents

  1. Ask the user for: BANXICO_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: tipo_cambio_usd, inflacion_mexico, valor_udis, tasa_interes_banxico, reservas_internacionales, consultar_serie_sie.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json