🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@exchangerateapi/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exchangerateapi/mcp-server

MCP server for Exchange Rate API — let AI coding tools (Claude Code, Cursor, Claude Desktop, Windsurf) fetch real-time and historical currency exchange rates.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
46
-34.29%
Maintainers
1
Weekly downloads
 
Created
Source

@exchangerateapi/mcp-server

Powered by Exchange-RateAPI

npm 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.

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 — free tier, no credit card.

2. Add to Your MCP Client

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

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

Cursor (.cursor/mcp.json):

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

Claude Desktop (claude_desktop_config.json):

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

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

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

Tools

ToolDescription
get_exchange_rateGet the current mid-market rate between two currencies
get_historical_ratesGet historical data for a pair over 1d, 7d, 30d, or 1y
get_ratesMulti-target rates with date ranges and grouping (day/week/month)
list_currenciesList 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

VariableRequiredDescription
EXCHANGE_RATE_API_KEYYesYour API key from exchange-rateapi.com
EXCHANGE_RATE_BASE_URLNoOverride API base URL (default: https://exchange-rateapi.com/api)

License

MIT

Keywords

mcp

FAQs

Package last updated on 20 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts