Exchange Rate API

io.github.Exchange-RateAPI由 GitHub 账号 Exchange-RateAPI 发布v1.0.2更新于 Oct 24, 2026

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

发布方自己的服务:Exchange.news — Crypto offers, campaigns and news

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

一个本地 MCP 服务器,让助手通过 Exchange Rate API 获取 160 多种货币的实时与历史中间价汇率。

可以做什么
查询两种货币之间的当前中间价汇率,并可将金额一次性换算为多个目标货币,支持日期范围以及按日、周、月分组以计算平均值和趋势。获取货币对在 1 天、7 天、30 天或 1 年区间内的历史汇率序列。列出支持的货币,让助手知道可用的货币代码。
适用场景
适合在聊天或编码会话中让助手回答汇率换算问题、比较汇率或总结一段时间内的汇率走势,无需离开客户端去查汇率网站。
运行要求
通过 npx 在本地运行,需要 Node.js。需要 exchange-rateapi.com 的免费 API 密钥,通过环境变量 EXCHANGE_RATE_API_KEY 提供;可选环境变量 EXCHANGE_RATE_BASE_URL 可覆盖 API 基础地址。需要能访问服务商 API 的网络。
安装前请注意
API 密钥是机密信息,会以明文形式写入客户端配置,请妥善保管配置文件。README 说明该包已不再更新,并建议新项目改用后续包和托管端点,请确认是否要选择仍在维护的方案。汇率数据来自第三方服务商,仅供参考,不构成财务建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Exchange Rate API,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@exchangerateapi/mcp-server

Exchange Rate API is now AllRatesToday. This package keeps working against exchange-rateapi.com, but it is no longer updated. For new projects use @allratestoday/mcp-server (or the hosted endpoint https://allratestoday.com/api/mcp) — the same real-time API plus official rates from 121 central banks. Docs: allratestoday.com/docs.

[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, no retail spread.

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):

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

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)

Links

License

MIT

来源:README.md,提交 3311a1a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Exchange 集成