Skip to Content
MCPHosted MCP setup

Hosted MCP setup

This milestone ships a local development-only MCP server — there is no public mcp.getratesapi.com origin yet. Run it yourself:

# from service/ make compose-up make migrate-up go run ./cmd/mcp

Binding

cmd/mcp binds 127.0.0.1:MCP_PORT only (MCP_PORT env var, default 8082). It is not exposed publicly in this milestone.

Auth

Every MCP request requires the same Authorization: ApiKey <key> header as REST — there is no separate MCP-only credential. See Authentication / API keys to obtain a key.

Client configuration

A generic MCP client needs only:

  • Endpoint: http://127.0.0.1:8082/mcp (local dev default)
  • Header: Authorization: ApiKey <your-api-key>
{ "mcpServers": { "getratesapi": { "url": "http://127.0.0.1:8082/mcp", "headers": { "Authorization": "ApiKey gra_live_0000000000000000000000000000000000000000000000000000000000000000" } } } }

This is the generic shape — no specific third-party MCP client integration is verified or endorsed by this repository; adapt it to whatever MCP client you use.

Tools

Once connected, see the MCP overview for the full tool list, or go directly to a tool page: get_rate, convert_currency, list_fiat_currencies, list_crypto_assets, get_usage.