Rate API MCP Server README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the Rate API MCP Server listing page.

Rate-API MCP Server

npm License: MIT

The official Model Context Protocol server for Rate-API.com. It gives Claude and other MCP clients exchange rates for 160+ currencies (updated hourly), currency conversion, historical rates, daily time series and fluctuation, crypto, precious-metal and end-of-day stock prices, usage and quota checks, and rate alerts.

Once connected, you can just ask: "What's 250 EUR in Japanese yen?" or "How has USD/TRY moved over the last 30 days?" and the assistant calls the API for you.

Tools

ToolDescriptionPlan
get_latest_ratesLatest rates for a base currency (optionally filtered)Free
get_pair_rateSingle currency-pair rate with optional precision (converted amount on Pro+)Free
list_currenciesAll supported currency codes and namesFree
get_usageThis key's plan and current-month usage against its quotaFree
get_quotaPlan quota and remaining requests for this keyFree
get_key_statusConfirm the key works (API status and version)Free
get_api_statusService status and data freshnessNo key needed
convert_currencyConvert an amount between two currenciesPro+
get_historical_ratesRates for a specific past datePro+
get_crypto_ratesCryptocurrency prices in USDPro+
get_metal_pricesGold, silver, platinum and palladium per troy ounce in USDPro+
get_stock_pricesEnd-of-day closing prices for tracked equities in USD (indicative, not for trading)Pro+
get_timeseries_ratesDaily rates for every day between two dates (up to 366 days)Business+
get_rate_fluctuationStart rate, end rate, change and % change between two dates (up to 366 days)Business+
list_rate_alertsList the rate alerts on this keyBusiness+
create_rate_alertAlert (email and optional signed webhook) when a pair crosses a thresholdBusiness+
delete_rate_alertDelete a rate alert by idBusiness+

"Pro+" means Pro, Business and Enterprise; "Business+" means Business and Enterprise. Calling a tool your plan doesn't include returns the API's feature_not_available error, so the assistant can tell you which plan it needs. See pricing.

Setup

You need an API key. The free plan (2,500 requests/month, no card) is at https://rate-api.com/register; your keys are listed at https://rate-api.com/api-keys.

Claude Code

Terminal
claude mcp add rate-api -e RATE_API_KEY=YOUR_KEY -- npx -y @rate-api/mcp

Claude Desktop / other MCP clients

Add to your MCP config (e.g. claude_desktop_config.json):

config.json
{
  "mcpServers": {
    "rate-api": {
      "command": "npx",
      "args": ["-y", "@rate-api/mcp"],
      "env": { "RATE_API_KEY": "YOUR_KEY" }
    }
  }
}

Run directly

bash
RATE_API_KEY=YOUR_KEY npx -y @rate-api/mcp

Docker

Terminal
docker build -t rate-api-mcp .
docker run -i --rm -e RATE_API_KEY=YOUR_KEY rate-api-mcp

Configuration

Env varRequiredDefaultDescription
RATE_API_KEYfor keyed tools—Your Rate-API key
RATE_API_BASE_URLnohttps://rate-api.comOverride the API base URL
RATE_API_TIMEOUT_MSno15000Per-request timeout (ms)

The server starts without a key; every tool except get_api_status then asks you to set RATE_API_KEY.

Resources & prompts

Besides the tools, the server exposes:

  • Resource rate-api://currencies: the supported currency list (code, name, symbol, decimals).
  • Prompts convert_amount and currency_movement: ready-made FX workflow templates.

Local development

bash
git clone https://github.com/Vilgar/rate-api-mcp.git
cd rate-api-mcp
npm install
RATE_API_KEY=YOUR_KEY npm start
# or inspect interactively:
RATE_API_KEY=YOUR_KEY npm run inspect

Transport is stdio; requires Node.js 18+. The only dependency is the official @modelcontextprotocol/sdk.

Links

License

MIT, see LICENSE.