Banxico — Claude Code MCP server: what it does, how to install
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.
claude mcp add --transport http banxico https://banxico-mcp.duckdns.org/mcpWhat Banxico (Banco de México) 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.
What it helps with
- 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 for the agent
- 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
SF43718between September 1 and September 28
How to install Banxico (Banco de México)
1Platform CLI: remote server
claude mcp add --transport http banxico https://banxico-mcp.duckdns.org/mcp2Platform CLI
claude mcp add --env BANXICO_TOKEN=<BANXICO_TOKEN> --transport stdio banxico-banco-de-mexico -- uvx mcp-banxicoReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-banxico <command>
1Platform CLI: remote server
codex mcp add banxico-banco-de-mexico --url https://banxico-mcp.duckdns.org/mcp2Platform CLI
codex mcp add banxico-banco-de-mexico --env BANXICO_TOKEN=<BANXICO_TOKEN> -- uvx mcp-banxicoReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-banxico <command>
Config file
{
"mcpServers": {
"banxico-banco-de-mexico": {
"url": "https://banxico-mcp.duckdns.org/mcp"
}
}
}{
"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>
Config file
{
"servers": {
"banxico-banco-de-mexico": {
"type": "http",
"url": "https://banxico-mcp.duckdns.org/mcp"
}
}
}{
"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>
1Platform CLI: remote server
gemini mcp add -t http banxico-banco-de-mexico https://banxico-mcp.duckdns.org/mcp2Platform CLI
gemini mcp add -e BANXICO_TOKEN=<BANXICO_TOKEN> banxico-banco-de-mexico uvx mcp-banxicoReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-banxico <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Banxico (Banco de México)
How do I install Banxico in Claude Code?
Connect to the hosted HTTP endpoint by running claude mcp add --transport http banxico https://banxico-mcp.duckdns.org/mcp. For local execution with your key, run claude mcp add --env BANXICO_TOKEN=<BANXICO_TOKEN> --transport stdio banxico-banco-de-mexico -- uvx mcp-banxico.
What does the Banxico MCP server do?
It provides real-time access to official Mexican financial and economic statistics from Banco de México. Your assistant can read exchange rates, inflation, and interest figures without manual browsing.
Is an API token mandatory to use Banxico?
It is not required if you point your client to the public endpoint at https://banxico-mcp.duckdns.org/mcp. You only need a free BANXICO_TOKEN when running the package locally with uvx or pip.