MCP Server

Use currencyapi with AI agents (MCP)

currencyapi 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.currencyapi.com/mcp

Connect in seconds

Using Claude Code:

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

Or add it to any MCP client configuration:

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

Every request needs your API key, including the MCP handshake and listing the tools. Sign up for a free API key and send it as the apikey header.

Available tools

ToolEndpointDescription
getLatestGET /v3/latestLatest exchange rates
getHistoricalGET /v3/historicalHistorical exchange rates
getConvertGET /v3/convertConvert a value between currencies
getRateGET /v3/rateExchange rate of one currency pair
getMatrixGET /v3/matrixCross rates between several currencies
getRangeGET /v3/rangeHistorical exchange rates for a time range
getOhlcGET /v3/ohlcHourly or daily OHLC candles
getFluctuationGET /v3/fluctuationHow rates changed between two dates
getAverageGET /v3/averageAverage, low and high rates per month, quarter or year
getOfficialGET /v3/officialOfficial central bank exchange rates
getOfficialRangeGET /v3/official/rangeOfficial central bank exchange rates for a date range
getOfficialCompareGET /v3/official/compareCompare one currency pair across central banks
getOfficialSourcesGET /v3/official/sourcesList central bank sources
getCurrenciesGET /v3/currenciesList supported currencies
getCountriesGET /v3/countriesList countries
getStatusGET /v3/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.

Get your free currency API key

Start with 300 free requests a month