Skip to content

Use fxapi with AI agents (MCP)

fxapi ships a hosted Model Context Protocol (MCP) server. AI agents and assistants — Claude, Cursor, VS Code and any other MCP-capable client — can call the API as native tools, no SDK or glue code required.

https://api.fxapi.com/mcp

Connect in seconds

Using Claude Code:

claude mcp add --transport http fxapi https://api.fxapi.com/mcp --header "apikey: YOUR_API_KEY"

Or add it to any MCP client configuration:

{
  "mcpServers": {
    "fxapi": {
      "url": "https://api.fxapi.com/mcp",
      "headers": { "apikey": "YOUR_API_KEY" }
    }
  }
}

Listing the available tools works without authentication. To execute tools, sign up for a free API key and send it as the apikey header.

Available tools

ToolEndpointDescription
getLatestGET /v1/latestLatest exchange rates
getHistoricalGET /v1/historicalHistorical exchange rates
getConvertGET /v1/convertConvert a value between currencies
getRangeGET /v1/rangeHistorical exchange rates for a time range
getCurrenciesGET /v1/currenciesList supported currencies
getStatusGET /v1/statusAccount quota status

Tool calls are metered like regular API requests and return the same machine-readable errors, so your agent always knows how to proceed. Full details in the MCP documentation.