fxcrypto-mcp
Provides live crypto market-data fallback and OHLC price history for major trading pairs.
Provides a mirror endpoint for the fawazahmed0 currency-api, used as an additional fallback source for fiat, metals, and crypto rates and history.
Provides live crypto and fiat exchange rates plus dated spot prices as a fallback data source.
Serves the fawazahmed0 currency-api via CDN/mirror, supplying fiat, precious-metal, and crypto fallback rates plus historical data.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
fxcrypto-mcp
Currency + crypto data for AI assistants. No API keys. Works everywhere.
An MCP server that converts money between 160+ fiat currencies, precious metals and 15,000+ coins, with historical rates, charts, market data and portfolio valuation. It pulls from several free sources, falls back automatically when one is down or rate limited, and tells you where every number came from.
You: How much is 100 USD in Bangladeshi taka, and how did it move this month?
Claude: $100.00 = BDT 12,488.22 (fawazahmed0 currency-api, 2026-11-22).
Over 30 days USD/BDT rose 0.97%, from 123.68 to 124.88.Why this one
Most finance MCP servers wrap one unofficial endpoint and break when it rate limits. This one is built for reliability:
No keys, no sign-up. Every source is free and public.
Multi-source with fallback. ECB (Frankfurter), currency-api, ExchangeRate-API, CoinGecko, Coinbase, Binance and Kraken. If one fails, the next answers. Pairs no single source has are computed through USD.
Every currency in the world. BDT, NGN, PKR, VND, KES, ARS and the rest, not only the ~30 ECB currencies.
Source and timestamp in every answer, plus a
compare_sourcestool to cross-check a rate.Fast and polite. In-memory TTL cache, request de-duplication, retries with backoff and
Retry-Aftersupport. Repeat questions are served from cache in under 1 ms.Natural input.
USD,usd,$,dollar,Japan,taka,btc,bitcoinandpepeall work. Typos get "did you mean" suggestions.Small. Two runtime dependencies (the MCP SDK and zod), about 110 KB of bundled code.
stdio and Streamable HTTP, Docker image, and a one-command
initfor popular clients.
Related MCP server: Ratevert
Quickstart (1 minute)
You need Node.js 18.17 or newer.
npx -y fxcrypto-mcp init claude # or: cursor, vscode, windsurf, claude-code, allRestart the app and ask: "Convert 250 euros to Nigerian naira" or "What are the top crypto losers today?"
Try it in a terminal first:
npx -y fxcrypto-mcp convert 100 USD BDT
npx -y fxcrypto-mcp price btc eth sol --vs usd,eurNot yet on npm? Run from source:
git clone https://github.com/cryptodeta/fxcrypto-mcp && cd fxcrypto-mcp && npm install && npm run build, then usenode /path/to/fxcrypto-mcp/packages/server/dist/cli.jswherever the configs below saynpx -y fxcrypto-mcp.
Client configuration
All clients use the same command: npx -y fxcrypto-mcp. On Windows, use "command": "cmd" with
"args": ["/c", "npx", "-y", "fxcrypto-mcp"] (the init command does this for you).
claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):
{
"mcpServers": {
"fxcrypto": { "command": "npx", "args": ["-y", "fxcrypto-mcp"] }
}
}claude mcp add fxcrypto -- npx -y fxcrypto-mcp~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"fxcrypto": { "command": "npx", "args": ["-y", "fxcrypto-mcp"] }
}
}.vscode/mcp.json:
{
"servers": {
"fxcrypto": { "type": "stdio", "command": "npx", "args": ["-y", "fxcrypto-mcp"] }
}
}Or: code --add-mcp '{"name":"fxcrypto","command":"npx","args":["-y","fxcrypto-mcp"]}'
~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"fxcrypto": { "command": "npx", "args": ["-y", "fxcrypto-mcp"] }
}
}npx -y fxcrypto-mcp --http --port 3000 # http://127.0.0.1:3000/mcp
# or
docker build -t fxcrypto-mcp . && docker run -p 3000:3000 fxcrypto-mcp{
"mcpServers": {
"fxcrypto": { "url": "http://localhost:3000/mcp" }
}
}Set FXCRYPTO_HTTP_TOKEN=secret to require Authorization: Bearer secret. GET /health returns
status and cache stats. The HTTP server is stateless, so it scales horizontally.
Tools
Tool | What it answers |
| "100 USD in BDT", "0.5 BTC in EUR", "1 ETH in SOL", many targets at once, optional historical date |
| All ~160 fiat rates for a base, or just the symbols you name (fiat or crypto) |
| Time series for any pair with min, max, average, change % and volatility |
| How a currency moved against a list of others over N days, strongest to weakest |
| The same rate from every source, with median and spread (spot stale data) |
| Search by code, name, symbol or country; crypto search covers CoinGecko's full list |
| Live prices in any currency with 24h change, market cap and volume |
| Top coins by market cap or volume, or the biggest 24h gainers and losers; category filter |
| Coins and categories trending in the last 24h |
| Description, links, supply, FDV, ATH/ATL with dates, 1h to 1y performance |
| Line (price + volume) or OHLC candles for 1 to 365 days, with stats |
| Total market cap, volume, BTC/ETH dominance, Fear & Greed Index |
| Value a mix of crypto, cash and gold in one currency, with allocation % |
| Version, sources, cache hit rate and request counters |
All tools are read-only. Each answer starts with a one-line human summary, followed by JSON with the
full data, source, sourceUrl, asOf (when the upstream says the value is valid) and fetchedAt.
Resources: fxcrypto://currencies, fxcrypto://coins, fxcrypto://sources,
fxcrypto://rate/{from}/{to} (for example fxcrypto://rate/USD/BDT).
Prompts: convert_money, market_brief, currency_report, portfolio_review.
Example prompts
"Convert 5,000 Bangladeshi taka to Japanese yen at the 15 January 2025 rate."
"How did the US dollar do against EUR, GBP, INR, BDT and BTC over the last 90 days?"
"Show me EUR/USD for the past year: high, low and volatility."
"Top 10 coins in euros, then the five biggest losers today."
"I hold 0.25 BTC, 2 ETH, 1,000 USDT and 1 ounce of gold. What is that in BDT?"
"Is CoinGecko's BTC price in line with Binance and Kraken right now?"
Data sources
Source | Used for | Coverage | Updates |
Frankfurter (European Central Bank) | Major fiat pairs, history since 1999 | ~30 currencies | Working days ~16:00 CET |
fawazahmed0 currency-api via jsDelivr + Cloudflare mirror | All other fiat, metals, crypto fallback, history since 2024-03-02 | ~300 codes | Daily |
Fiat fallback | ~160 currencies | Daily | |
CoinGecko public API | Crypto prices, markets, details, charts, trending, global | 15,000+ coins | ~1 min |
Live crypto and fiat fallback, dated spot prices | 600+ codes | Live | |
Live crypto fallback, OHLC fallback | Major pairs | Live | |
Market list, coin details, Fear & Greed | |||
Unicode CLDR (bundled) | Currency names, symbols, decimals, countries | 255 regions | Build time |
Fallback order: fiat pairs try ECB, then currency-api, ExchangeRate-API and Coinbase. Crypto pairs try
CoinGecko, then Coinbase, Binance, Kraken and currency-api. If nothing has the direct pair, the rate is
computed through USD and the answer says so (via: "USD").
Please respect each provider's terms. ExchangeRate-API asks for attribution, which this server includes in every answer that uses it.
Configuration
Variable | Default | Purpose |
|
| Number formatting locale ( |
| none | Optional free CoinGecko demo key for higher rate limits |
|
| Upstream request timeout |
| none | Require a bearer token on |
|
| HTTP mode listen address (Docker uses |
CLI
fxcrypto-mcp start the MCP server on stdio
fxcrypto-mcp --http [--port N] [--host H] start the Streamable HTTP server
fxcrypto-mcp init <client|all> [--dry-run]
fxcrypto-mcp convert 100 USD BDT [--date 2025-01-15]
fxcrypto-mcp price btc eth --vs usd,eur
fxcrypto-mcp tools | --version | --helpinit merges into existing config files, keeps your other servers and writes a .bak copy first.
Use as a library
import { createClient } from "fxcrypto-mcp";
const fx = createClient();
const r = await fx.convert({ amount: 100, from: "USD", to: "BDT" });
console.log(r.formatted, r.source, r.asOf);
const h = await fx.history({ from: "BTC", to: "EUR", days: 90 });
console.log(h.stats);Development
npm install
npm run check # biome lint + tsc + vitest + build
npm run test:live # optional real-API smoke tests
npx @modelcontextprotocol/inspector node packages/server/dist/cli.jsThe repo is an npm workspaces monorepo: packages/core (rate engine, no MCP dependency) and
packages/server (MCP server, CLI). See CONTRIBUTING.md.
Limitations
Rates are for information only, not for trading or accounting. Fiat sources publish daily reference rates, not live interbank quotes.
Free CoinGecko access is rate limited (roughly 5 to 30 calls per minute, shared per IP). The cache and fallbacks soften this; a free demo key in
COINGECKO_API_KEYraises the limit.CoinGecko public history covers about the last 365 days. Non-ECB fiat history starts on 2024-03-02.
Historical series for non-ECB pairs are sampled (up to 45 daily snapshots) to stay fast.
Price alerts and background jobs are out of scope.
License
MIT. Data belongs to the respective providers.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
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.
Loan & mortgage calculator, compound interest, ROI, crypto prices, FX conversion for AI agents.
Convert currencies and fetch blended FX rates from 50+ institutional sources.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides access to real-time currency exchange rates, live stock market data via Alpha Vantage, and local transaction analysis from CSV databases. It enables AI assistants to perform currency conversions, stock comparisons, and budget tracking through natural language.MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching and converting currencies, stocks, crypto, ETFs, and funds with current rates and source freshness for AI agents.3MIT
- 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.-
- AlicenseAqualityBmaintenanceEnables AI agents to fetch live crypto prices and market data, convert between crypto and fiat, track EVM gas fees, value portfolios, calculate profit/loss, and view historical charts and trending metrics with zero configuration required.1055 npmMIT