# Rate-API MCP Server [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/Vilgar/rate-api-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 474  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rate-api-mcp

## Description
Model Context Protocol (MCP) server for the Rate-API.com exchange-rate API: gives Claude and other AI assistants currency rates, conversion, historical data, time series and crypto prices.

## Tools
Capabilities this server exposes over MCP:

- **get_latest_rates** — Get the latest exchange rates for a base currency. Returns rates for all currencies (or a filtered subset).
- **convert_currency** — Convert an amount from one currency to another at the latest rate. Requires Pro plan or higher.
- **get_pair_rate** — Get the exchange rate for a single currency pair, with optional precision. Available on all plans; the converted amount (amount/result) is included on Pro plan or higher.
- **get_historical_rates** — Get exchange rates for a specific past date (YYYY-MM-DD). Requires Pro plan or higher.
- **get_timeseries_rates** — Get daily exchange rates for every day between two dates (YYYY-MM-DD, range of at most 366 days), keyed by date. Days without published data are omitted. Pass symbols to keep the response small. Requires Business plan or higher.
- **get_rate_fluctuation** — Get how exchange rates moved between two dates (YYYY-MM-DD, range of at most 366 days): start rate, end rate, absolute change and percent change per currency. Requires Business plan or higher.
- **get_crypto_rates** — Get cryptocurrency prices in USD (top coins). Requires Pro plan or higher.
- **get_stock_prices** — Get the latest closing prices for tracked equities, in USD. End-of-day and indicative, not exchange-licensed and not for trading. Requires Pro plan or higher.
- **get_metal_prices** — Get precious-metal prices per troy ounce in USD: gold (XAU), silver (XAG), platinum (XPT), palladium (XPD). Requires Pro plan or higher.
- **get_key_status** — Confirm the API key works and report the API status and version. Use get_usage to see the key's plan.
- **list_currencies** — List all supported currencies (codes and names).
- **get_usage** — Get this API key's plan and current-month usage against its quota (used, limit, remaining, reset date).
- **get_quota** — Get a lean view of the plan quota and remaining requests for this API key.
- **list_rate_alerts** — List the rate alerts configured on this API key. Requires Business plan or higher.
- **create_rate_alert** — Create a rate alert that fires (by email and optional webhook) when a pair crosses a threshold. Requires Business plan or higher.
- **delete_rate_alert** — Delete a rate alert by its id. Requires Business plan or higher.
- **get_api_status** — Get Rate-API service status and rate-data freshness (currency count, last update, age). No API key required.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "rate-api-mcp-server": {
    "command": "npx",
    "args": ["-y","@rate-api/mcp"],
    "env": {
      "RATE_API_KEY": "",
      "RATE_API_BASE_URL": "",
      "RATE_API_TIMEOUT_MS": ""
    }
  }
}
```

**Requires environment variables:** `RATE_API_KEY`, `RATE_API_BASE_URL`, `RATE_API_TIMEOUT_MS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What @rate-api/mcp does

@rate-api/mcp exposes the Rate-API.com exchange-rate API through the Model Context Protocol. It covers more than currency conversion: agents can retrieve current and historical FX data, inspect movement over a date range, query cryptocurrency prices, check precious-metal prices, and read end-of-day prices for supported equities.

The server also includes account and service operations. Agents can inspect plan usage, quota, key validity, API availability, and data freshness. Business and Enterprise users can manage rate alerts that notify by email and can optionally call a signed webhook when a currency pair crosses a threshold.

Alongside tools, it publishes a `rate-api://currencies` resource containing currency codes, names, symbols, and decimal information. The `convert_amount` and `currency_movement` prompts provide prepared workflows for conversion and FX trend questions.

## How it works

The package uses stdio as its MCP transport. An MCP client starts the package, and the server forwards tool requests to Rate-API.com. It can be launched with `npx -y @rate-api/mcp`, run from a local checkout, or started in a Docker container.

Node.js 18 or newer is required. The server can start without an API key, but only `get_api_status` is usable in that state. Keyed operations require `RATE_API_KEY`, which identifies the Rate-API.com account and its plan. Tools restricted by plan return the API's `feature_not_available` error, allowing the client to report that a higher plan is needed.

## Setup and configuration

Create a Rate-API.com account and obtain an API key, then pass it through the environment when starting the server. A Claude Code installation can use:

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

For Claude Desktop or another MCP client, configure the command as `npx`, use `-y` and `@rate-api/mcp` as its arguments, and set `RATE_API_KEY` in the server environment. Direct execution is also supported:

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

`RATE_API_BASE_URL` can replace the default `https://rate-api.com` endpoint. `RATE_API_TIMEOUT_MS` sets the per-request timeout; its default is 15,000 milliseconds.

## Tools and capabilities

- Retrieve latest rates for a base currency, optionally narrowed to selected currencies.
- Query an individual currency pair, with optional precision and plan-dependent amount conversion.
- Convert amounts, list supported currencies, and retrieve rates for a specific historical date.
- Request daily time series or calculate start rate, end rate, absolute change, and percentage change for periods up to 366 days.
- Read cryptocurrency prices in USD, precious metals per troy ounce in USD, and indicative end-of-day equity prices in USD.
- Check API status, key status, account usage, and remaining quota.
- List, create, and delete threshold alerts for supported currency pairs.

## Limitations and notes

Feature access follows the Rate-API.com plan. Basic rate lookup, currency listing, account checks, and key status are available on the Free plan, while conversion, historical data, crypto, metals, and stock tools require Pro or higher. Time series, fluctuation, and alert operations require Business or Enterprise. Time-series and fluctuation requests cover a maximum of 366 days. Stock results are indicative end-of-day prices and are not intended for trading decisions. The free plan includes 2,500 requests per month.

_Full upstream README: https://allmcps.com/mcp/rate-api-mcp/readme_

