Skip to main content
Glama

Banxico MCP Server

gemini-cli.md1.79 kB
# Example Configuration: Gemini CLI This configuration works with the official Gemini CLI tool. ## Method 1: Auto-Updates (Recommended) Update your Gemini CLI settings file (`~/.gemini/settings.json`): ```json { "mcpServers": { "banxico": { "command": "uvx", "args": [ "--from", "git+https://github.com/cfocoder/banxico_mcp", "banxico-mcp-server" ], "env": { "BANXICO_API_TOKEN": "your_token_here" } } } } ``` **Benefits:** Automatically gets latest updates when you restart Gemini CLI. ## Method 2: Local File ```json { "mcpServers": { "banxico": { "command": "uvx", "args": [ "--python", "3.12", "--from", "fastmcp", "--with", "httpx", "--", "python", "/absolute/path/to/banxico_mcp_server.py" ], "env": { "BANXICO_API_TOKEN": "your_token_here" } } } } ``` ## Setup Instructions (Method 2 only) 1. **Download the server file**: ```bash curl -O https://raw.githubusercontent.com/cfocoder/banxico_mcp/main/banxico_mcp_server.py ``` 2. **Update your Gemini CLI settings file** (`~/.gemini/settings.json`) with the absolute path to the downloaded file. ## Environment Setup Set your API token as an environment variable: ```bash # Linux/macOS export BANXICO_API_TOKEN="your_actual_token_here" # Windows set BANXICO_API_TOKEN=your_actual_token_here ``` ## Test the Setup ```bash # Test that Gemini CLI can connect to the server gemini --help # Ask about exchange rates gemini "What's the current USD to MXN exchange rate?" ``` ## Troubleshooting - Make sure `uvx` is installed: `pip install uv` - Verify your Banxico API token is valid - Check that the settings.json file has valid JSON syntax

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cfocoder/banxico_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server