
UniRate API
io.github.UniRate-API由 GitHub 帳號 UniRate-API 發布v0.2.2更新於 Nov 3, 2026
Currency conversion and exchange rates for AI. 170+ currencies, historical data back to 1999.
概覽
UniRate API MCP 伺服器讓助理進行 170 多種貨幣的匯率換算與查詢,並可取得最早回溯至 1999 年的歷史匯率。
- 可以做什麼
- 依最新匯率在兩種貨幣之間換算金額
- 查詢單一貨幣對或全部貨幣的目前匯率
- 取得指定日期生效的歷史匯率(需 Pro 方案)
- 列出支援的貨幣代碼,用於驗證或自動完成
- 適用情境
- 適合助理需要回答金額問題、換算價格或發票,或查詢某個歷史日期匯率的情境,不必自行撰寫 HTTP 封裝。回傳結果包含可讀文字與結構化資料,方便再接續其他工具呼叫。
- 執行需求
- 以 Node.js 18+ 本機程序執行,可透過 npx 或全域 npm 安裝,也可使用 Docker 映像,或架設為 HTTP/SSE 模式。需在 UNIRATE_API_KEY 環境變數中提供 UniRate API 金鑰,免費方案金鑰即可涵蓋換算、最新匯率與貨幣清單。需要連線至 UniRate API 的網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 UniRate API,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
UniRate MCP Server
A Model Context Protocol server for the UniRate API — give Claude, Cursor, Continue, and any MCP-compatible AI assistant first-class access to currency conversion and exchange rates.
- 🔄 Real-time conversion between 170+ currencies (fiat + major crypto)
- 📈 Historical rates back to 1999 (Pro plan)
- 🆓 Free tier, no credit card required — get a key at unirateapi.com
- 🧩 Four tools, fully-typed inputs (Zod schemas), structured outputs
- 🌐 Stdio + Streamable HTTP/SSE transports — run locally or host as a remote MCP endpoint
- ⚡ Pure Node 18+, single dependency on
@modelcontextprotocol/sdk
Why this exists
Most "currency for AI" workflows today involve hand-rolled fetch wrappers in custom tools, or generic HTTP MCP servers that hand the model raw JSON. This server gives models a tight, typed, currency-aware tool surface — they ask "what was 100 USD in EUR on 2020-03-15?" and get back a formatted answer plus a structured payload they can chain into other tool calls.
Quick start
1. Install
Or run on demand with npx @unirate/mcp (no install).
2. Get a UniRate API key
Free tier covers convert, latest_rate, and list_currencies. Sign up at unirateapi.com — no credit card required.
3. Wire it into your MCP client
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop. The four UniRate tools will appear in the tool picker.
Cursor / Continue / Cline
Add to your MCP config (.cursor/mcp.json, ~/.continue/config.json, etc.):
From source
4. Run as a remote endpoint (Streamable HTTP / SSE)
By default the server uses stdio, which is what Claude Desktop and most MCP clients want. To host it as a remote endpoint instead — for shared use, multi-user deployments, or browser-based clients — start it in HTTP mode:
That exposes:
POST /mcp— Streamable HTTP endpoint (SSE-capable). Stateless: a fresh server is built per request, so the same process can serve many concurrent clients.GET /healthz— JSON liveness probe ({ "status": "ok", "server": "unirate-mcp", "version": "..." }).
Point any Streamable-HTTP-capable MCP client (Claude Desktop with remote server support, Cursor remote MCP, etc.) at http://your-host:3001/mcp. Drop it behind a reverse proxy + TLS for production.
Docker
Multi-arch images (linux/amd64, linux/arm64) are published to both the
GitHub Container Registry
(ghcr.io/unirate-api/unirate-mcp) and Docker Hub
(unirate/unirate-mcp) — use whichever you prefer:
Point an MCP client at http://your-host:3001/mcp for the Streamable HTTP transport.
Programmatic / edge runtimes (Cloudflare Workers, Deno, Bun)
The package exports buildServer(client) so you can wire it to whatever transport your runtime prefers. For Workers / Deno / Bun, use the SDK's webStandardStreamableHttp transport with an exported buildServer instance.
Tools
convert
Convert an amount from one currency to another at the latest rate.
Example call:
Response: human-readable text plus structured { from, to, amount, result }.
latest_rate
Get current exchange rate(s).
historical_rate (Pro plan)
Get the exchange rate that was in effect on a specific date. Coverage back to 1999-01-04 for major fiat pairs.
Free-tier keys receive a clear error pointing to unirateapi.com for upgrade.
list_currencies
Returns the array of supported currency codes (170+) with no parameters. Useful for autocomplete or validating user-supplied codes.
Errors
All UniRate API failures are mapped to friendly tool errors:
Network/timeout errors are wrapped in UnirateError. Tool calls always return a response object with isError: true rather than throwing protocol-level errors, so the model can recover gracefully.
Development
UniRate ecosystem
UniRate ships official integrations for 40+ ecosystems, all maintained under the UniRate-API org.
Core clients (9 languages) Python · Node.js / TypeScript · Go · Rust · Java · Ruby · PHP · .NET · Swift
JavaScript / TypeScript React · Next.js · Remix · SvelteKit · Vue · Angular · Nuxt · NestJS · tRPC
Static-site generators Astro · Eleventy · Hugo · Jekyll
CMS & e-commerce Wagtail · WordPress · WooCommerce · Drupal · Strapi · Medusa · Symfony · Laravel · Directus
Data, AI & backend LangChain (Python) · LangChain.js · FastAPI · Flask · Django REST Framework · Apache Airflow · dbt
Platform & tools MCP server · CLI · Cloudflare Workers · Home Assistant · n8n · Google Sheets · VS Code · Obsidian
Money library bridges money gem (Ruby) · NodaMoney (.NET)
Get a free API key at unirateapi.com.
License
MIT — see LICENSE.
來源:README.md,提交 59d3972
工具
0版本歷史
1- v0.2.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分