# Exchange Rate API

> Real-time & historical exchange rates for 160+ currencies, mid-market (Reuters/Refinitiv).

- **Type:** MCP server
- **Install:** `agentstack add mcp-exchange-rateapi-mcp-server`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Exchange-RateAPI](https://agentstack.voostack.com/s/exchange-rateapi)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 1.0.2
- **License:** MIT
- **Upstream author:** [Exchange-RateAPI](https://github.com/Exchange-RateAPI)
- **Source:** https://github.com/Exchange-RateAPI/mcp-server
- **Website:** https://exchange-rateapi.com/

## Install

```sh
agentstack add mcp-exchange-rateapi-mcp-server
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# @exchangerateapi/mcp-server

[](https://exchange-rateapi.com)

[](https://www.npmjs.com/package/@exchangerateapi/mcp-server)
[](https://github.com/Exchange-RateAPI/mcp-server/blob/main/LICENSE)

MCP server that gives AI coding tools (Claude Code, Cursor, Claude Desktop, Windsurf) access to real-time and historical currency exchange rates from [Exchange Rate API](https://exchange-rateapi.com).

160+ currencies. Mid-market rates updated every 60 seconds. Sourced from Reuters/Refinitiv.

## Quick Setup

### 1. Get a Free API Key

Sign up at [exchange-rateapi.com/register](https://exchange-rateapi.com/register/) — free tier, no credit card.

### 2. Add to Your MCP Client

**Claude Code** (`~/.claude/settings.json`):

```json
{
  "mcpServers": {
    "exchange-rateapi": {
      "command": "npx",
      "args": ["-y", "@exchangerateapi/mcp-server"],
      "env": { "EXCHANGE_RATE_API_KEY": "era_live_..." }
    }
  }
}
```

**Cursor** (`.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "exchange-rateapi": {
      "command": "npx",
      "args": ["-y", "@exchangerateapi/mcp-server"],
      "env": { "EXCHANGE_RATE_API_KEY": "era_live_..." }
    }
  }
}
```

**Claude Desktop** (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "exchange-rateapi": {
      "command": "npx",
      "args": ["-y", "@exchangerateapi/mcp-server"],
      "env": { "EXCHANGE_RATE_API_KEY": "era_live_..." }
    }
  }
}
```

**Windsurf** (`~/.windsurf/mcp.json`):

```json
{
  "mcpServers": {
    "exchange-rateapi": {
      "command": "npx",
      "args": ["-y", "@exchangerateapi/mcp-server"],
      "env": { "EXCHANGE_RATE_API_KEY": "era_live_..." }
    }
  }
}
```

## Tools

| Tool | Description |
|------|-------------|
| `get_exchange_rate` | Get the current mid-market rate between two currencies |
| `get_historical_rates` | Get historical data for a pair over 1d, 7d, 30d, or 1y |
| `get_rates` | Multi-target rates with date ranges and grouping (day/week/month) |
| `list_currencies` | List all 160+ supported currencies |

## Example Prompts

Once configured, ask your AI assistant:

- "What's the current USD to EUR exchange rate?"
- "Show me GBP/JPY rates for the last 30 days"
- "Convert 5000 USD to EUR, GBP, and JPY"
- "List all supported currencies"
- "What's the monthly average EUR/USD rate for 2026?"

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `EXCHANGE_RATE_API_KEY` | Yes | Your API key from [exchange-rateapi.com](https://exchange-rateapi.com/register/) |
| `EXCHANGE_RATE_BASE_URL` | No | Override API base URL (default: `https://exchange-rateapi.com/api`) |

## Links

- [API Documentation](https://exchange-rateapi.com/docs/)
- [Get Free API Key](https://exchange-rateapi.com/register/)
- [Dashboard](https://exchange-rateapi.com/dashboard/)
- [GitHub](https://github.com/Exchange-RateAPI/mcp-server)

## License

MIT

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Exchange-RateAPI](https://github.com/Exchange-RateAPI)
- **Source:** [Exchange-RateAPI/mcp-server](https://github.com/Exchange-RateAPI/mcp-server)
- **License:** MIT
- **Homepage:** https://exchange-rateapi.com/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v1.0.2 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **1.0.2** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-exchange-rateapi-mcp-server
- Seller: https://agentstack.voostack.com/s/exchange-rateapi
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
