UniRate MCP
OfficialUniRate MCP 서버
UniRate API를 위한 Model Context Protocol 서버입니다. Claude, Cursor, Continue 및 모든 MCP 호환 AI 어시스턴트에게 통화 변환 및 환율에 대한 일류 수준의 액세스 권한을 제공합니다.
🔄 170개 이상의 통화(법정 화폐 + 주요 암호화폐) 간 실시간 변환
📈 1999년부터의 과거 환율(Pro 플랜)
🆓 무료 티어 제공, 신용카드 불필요 — unirateapi.com에서 키 발급 가능
🧩 4가지 도구, 완벽하게 타입이 지정된 입력(Zod 스키마), 구조화된 출력
🌐 Stdio + Streamable HTTP/SSE 전송 — 로컬에서 실행하거나 원격 MCP 엔드포인트로 호스팅 가능
⚡ 순수 Node 18+ 환경,
@modelcontextprotocol/sdk에 대한 단일 의존성
이 서버가 필요한 이유
오늘날 대부분의 "AI용 통화" 워크플로우는 사용자 지정 도구에서 직접 만든 fetch 래퍼를 사용하거나, 모델에 원시 JSON을 전달하는 일반적인 HTTP MCP 서버를 사용합니다. 이 서버는 모델에 간결하고 타입이 지정된, 통화 인식 도구 인터페이스를 제공합니다. 모델이 "2020년 3월 15일 기준 100 USD는 몇 EUR인가요?"라고 물으면, 형식화된 답변과 다른 도구 호출에 연결할 수 있는 구조화된 페이로드를 반환합니다.
Related MCP server: Currency Exchange MCP Server
빠른 시작
1. 설치
npm install -g @unirate/mcp또는 npx @unirate/mcp를 사용하여 설치 없이 즉시 실행할 수 있습니다.
2. UniRate API 키 발급
무료 티어는 convert, latest_rate, list_currencies를 지원합니다. unirateapi.com에서 가입하세요(신용카드 불필요).
3. MCP 클라이언트에 연결
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) 또는 %APPDATA%\Claude\claude_desktop_config.json(Windows)을 편집하세요:
{
"mcpServers": {
"unirate": {
"command": "npx",
"args": ["-y", "@unirate/mcp"],
"env": {
"UNIRATE_API_KEY": "your-api-key-here"
}
}
}
}Claude Desktop을 재시작하세요. 도구 선택기에 4개의 UniRate 도구가 나타납니다.
Cursor / Continue / Cline
MCP 설정(.cursor/mcp.json, ~/.continue/config.json 등)에 추가하세요:
{
"mcpServers": {
"unirate": {
"command": "npx",
"args": ["-y", "@unirate/mcp"],
"env": { "UNIRATE_API_KEY": "your-api-key-here" }
}
}
}소스에서 실행
git clone https://github.com/UniRate-API/unirate-mcp.git
cd unirate-mcp
npm install && npm run build
UNIRATE_API_KEY=your-key node dist/index.js4. 원격 엔드포인트로 실행 (Streamable HTTP / SSE)
기본적으로 서버는 Claude Desktop 및 대부분의 MCP 클라이언트가 요구하는 stdio를 사용합니다. 공유 사용, 다중 사용자 배포 또는 브라우저 기반 클라이언트를 위해 원격 엔드포인트로 호스팅하려면 HTTP 모드로 시작하세요:
UNIRATE_API_KEY=your-key unirate-mcp --http 3001
# or via env:
UNIRATE_API_KEY=your-key UNIRATE_MCP_HTTP_PORT=3001 unirate-mcp다음이 노출됩니다:
POST /mcp— Streamable HTTP 엔드포인트(SSE 지원). 상태 비저장: 요청마다 새로운 서버가 생성되므로 동일한 프로세스로 많은 동시 클라이언트를 처리할 수 있습니다.GET /healthz— JSON 라이브니스 프로브({ "status": "ok", "server": "unirate-mcp", "version": "..." }).
Streamable-HTTP 지원 MCP 클라이언트(원격 서버 지원 Claude Desktop, Cursor 원격 MCP 등)를 http://your-host:3001/mcp로 지정하세요. 프로덕션 환경에서는 리버스 프록시 + TLS 뒤에 배치하세요.
프로그래밍 방식 / 엣지 런타임 (Cloudflare Workers, Deno, Bun)
패키지는 buildServer(client)를 내보내므로 런타임이 선호하는 전송 방식에 연결할 수 있습니다. Workers / Deno / Bun의 경우, 내보낸 buildServer 인스턴스와 함께 SDK의 webStandardStreamableHttp 전송을 사용하세요.
import { UnirateClient } from "@unirate/mcp/dist/client.js";
import { buildServer } from "@unirate/mcp";
// → connect to your runtime's preferred transport도구
convert
최신 환율을 사용하여 한 통화에서 다른 통화로 금액을 변환합니다.
매개변수 | 타입 | 필수 | 참고 |
| string | 예 | ISO 4217 코드 (예: |
| string | 예 | ISO 4217 코드 (예: |
| number | 예 |
|
호출 예시:
{ "name": "convert", "arguments": { "from": "USD", "to": "EUR", "amount": 100 } }응답: 사람이 읽을 수 있는 텍스트와 구조화된 { from, to, amount, result }.
latest_rate
현재 환율을 가져옵니다.
매개변수 | 타입 | 필수 | 참고 |
| string | 예 | 기준 통화 |
| string | 아니오 | 대상 통화. 생략 시 모든 통화의 환율을 가져옴 |
historical_rate (Pro 플랜)
특정 날짜에 적용되었던 환율을 가져옵니다. 주요 법정 화폐 쌍에 대해 1999년 1월 4일까지의 데이터를 지원합니다.
매개변수 | 타입 | 필수 | 참고 |
| string | 예 |
|
| string | 예 | 기준 통화 |
| string | 예 | 대상 통화 |
| number | 아니오 | 기본값 1 |
무료 티어 키 사용 시 unirateapi.com 업그레이드를 안내하는 명확한 오류가 발생합니다.
list_currencies
지원되는 통화 코드 배열(170개 이상)을 매개변수 없이 반환합니다. 자동 완성이나 사용자 제공 코드 검증에 유용합니다.
오류
모든 UniRate API 실패는 이해하기 쉬운 도구 오류로 매핑됩니다:
HTTP | 오류 클래스 | 모델이 보는 메시지 |
400 |
| "잘못된 요청 매개변수" |
401 |
| "API 키가 없거나 잘못됨" |
403 |
| "…Pro 플랜 필요… https://unirateapi.com에서 업그레이드" |
404 |
| "통화를 찾을 수 없거나 데이터 없음" |
429 |
| "요청 제한 초과" |
503 |
| "서비스 이용 불가" |
네트워크/타임아웃 오류는 UnirateError로 래핑됩니다. 도구 호출은 프로토콜 수준의 오류를 발생시키는 대신 항상 isError: true를 포함한 응답 객체를 반환하므로 모델이 정상적으로 복구할 수 있습니다.
개발
npm install
npm run build # compile TypeScript to dist/
npm test # 24 mock tests
UNIRATE_LIVE=1 UNIRATE_API_KEY=... npm run test:live # +4 live free-tier tests관련 프로젝트
UniRate는 9개 언어로 공식 클라이언트 라이브러리를 제공합니다:
또한 n8n 커뮤니티 노드도 있습니다.
라이선스
MIT — LICENSE를 참조하세요.
Available Tools
4 toolsconvertConvert currencyARead-only
Convert an amount from one currency to another using the latest exchange rate. Codes are ISO 4217 (e.g. USD, EUR, GBP). Supports 170+ fiat currencies and major cryptocurrencies.
Inputs: from (required), to (required), amount (required).
historical_rateGet historical exchange rate (Pro plan required)ARead-only
Fetch the exchange rate that was in effect on a specific date. Date format YYYY-MM-DD. Coverage goes back to 1999-01-04 for major fiat pairs. Requires UniRate Pro — free-tier keys will receive a clear upgrade-required error.
Inputs: date (required), from (required), to (required), amount.
latest_rateGet latest exchange rate(s)ARead-only
Fetch the latest exchange rate for a base currency. If 'to' is provided, returns a single rate; otherwise returns rates for all supported currencies relative to the base.
Inputs: from (required), to.
list_currenciesList supported currenciesARead-only
Return the list of currency codes supported by the UniRate API (170+ fiat plus major crypto).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool serves a distinct purpose: converting amounts, fetching historical rates, getting latest rates, and listing supported currencies. No overlaps.
All tool names use consistent snake_case and follow a verb_noun or adjective_noun pattern, making them predictable.
4 tools is well-scoped for a currency conversion API, covering essential operations without unnecessary complexity.
The tool set covers conversion, latest rates, historical rates, and currency listing—no obvious gaps for the domain.
Maintenance
Related MCP Connectors
Live & historical FX rates and currency conversion for AI agents. No API keys.
Live & historical FX rates and currency conversion for AI agents. No API keys.
Currency rates, history from 1949, IMF PPP, and FX analytics for AI agents.
Free, keyless real-time currency conversion and exchange rates for any currency pair.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides real-time foreign-exchange rates, historical data, and multi-currency lookups to MCP-compatible AI coding assistants like Claude Code and Cursor.4MIT
- FlicenseNot gradedqualityDmaintenanceEnables real-time currency exchange rate retrieval and conversion for over 200 currencies. Supports operations like getting rates, converting amounts, and comparing currencies through natural language.-
- AlicenseAqualityCmaintenanceEnables AI coding tools to access real-time and historical currency exchange rates for 160+ currencies, sourced from Reuters/Refinitiv.451 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to retrieve live buy and sell exchange rates from 1,219 commercial banks across 124 countries, compare banks, check spreads against central bank official rates, and look up past daily rates.7179 npmMIT