crypto-data-mcp

crypto-data-mcp

Free MCP server for real-time cryptocurrency data. Get token prices, market overview, top movers, historical charts, and detailed token info directly in Claude Code, Cursor, or any MCP-compatible AI tool. Powered by CoinGecko with 70+ token mappings and built-in caching.

Category
访问服务器

README

crypto-data-mcp

Real-time cryptocurrency data for AI coding tools. An MCP server that gives Claude Code, Cursor, and other MCP-compatible tools access to live prices, market data, token info, and historical charts -- powered by CoinGecko.

Built by Whoff Agents.

Installation

Quick Start (recommended)

# Clone the repo
git clone https://github.com/whoff-agents/crypto-data-mcp.git
cd crypto-data-mcp

# Install with uv (recommended)
uv sync

# Or install with pip
pip install -e .

From PyPI (coming soon)

pip install crypto-data-mcp

Usage with Claude Code

Add to your Claude Code MCP config at ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "crypto-data": {
      "command": "uv",
      "args": [
        "--directory", "/path/to/crypto-data-mcp",
        "run", "crypto-data-mcp"
      ]
    }
  }
}

Or if installed globally via pip:

{
  "mcpServers": {
    "crypto-data": {
      "command": "crypto-data-mcp"
    }
  }
}

Then in Claude Code, you can ask things like:

  • "What's the current price of Bitcoin?"
  • "Compare ETH, SOL, and AVAX prices"
  • "Show me the crypto market overview"
  • "Get me 30 days of BTC price history"
  • "What's Ethereum's all-time high?"

Available Tools

get_price

Get the current price for a single token.

Parameters:

Param Type Default Description
symbol string required Token symbol (BTC, ETH, SOL) or CoinGecko ID
currency string "usd" Quote currency (usd, eur, gbp, etc.)

Example response:

{
  "symbol": "BTC",
  "coingecko_id": "bitcoin",
  "currency": "usd",
  "price": 67250.00,
  "price_change_24h_pct": -1.82,
  "market_cap": 1325000000000,
  "volume_24h": 28500000000,
  "last_updated_at": 1712000000
}

get_prices

Get prices for multiple tokens in one call. More efficient than calling get_price repeatedly.

Parameters:

Param Type Default Description
symbols list[string] required List of symbols (max 50)
currency string "usd" Quote currency

Example response:

[
  { "symbol": "BTC", "price": 67250.00, "price_change_24h_pct": -1.82 },
  { "symbol": "ETH", "price": 2064.00, "price_change_24h_pct": -2.15 },
  { "symbol": "SOL", "price": 79.00, "price_change_24h_pct": -3.10 }
]

get_market_overview

Get a crypto market overview with top movers, market cap, and sentiment.

Parameters: None required.

Example response:

{
  "total_market_cap_usd": 2390000000000,
  "total_volume_24h_usd": 85000000000,
  "btc_dominance_pct": 55.95,
  "eth_dominance_pct": 11.20,
  "active_cryptocurrencies": 17887,
  "fear_greed_index": { "value": 35, "classification": "Fear" },
  "top_gainers_24h": [ "..." ],
  "top_losers_24h": [ "..." ]
}

get_token_info

Get detailed information about a token including description, supply, ATH/ATL, and multi-timeframe price changes.

Parameters:

Param Type Default Description
symbol string required Token symbol or CoinGecko ID

Example response:

{
  "symbol": "ETH",
  "name": "Ethereum",
  "description": "Ethereum is a decentralized...",
  "market_cap_rank": 2,
  "website": "https://www.ethereum.org/",
  "current_price_usd": 2064.00,
  "ath_usd": 4946.05,
  "ath_date": "2021-11-10T14:24:19.604Z",
  "atl_usd": 0.432979,
  "circulating_supply": 120500000,
  "total_supply": 120500000,
  "max_supply": null,
  "price_change_24h_pct": -2.15,
  "price_change_7d_pct": -5.30,
  "price_change_30d_pct": -12.40
}

get_historical_prices

Get historical price data as timestamp/price pairs for charting and analysis.

Parameters:

Param Type Default Description
symbol string required Token symbol or CoinGecko ID
days int 7 Days of history (1-365)
currency string "usd" Quote currency

Granularity: 5-minute for 1 day, hourly for 1-90 days, daily for 90+ days.

Example response:

{
  "symbol": "BTC",
  "currency": "usd",
  "days": 7,
  "data_points": 168,
  "prices": [
    [1711900000000, 67100.00],
    [1711903600000, 67250.00]
  ]
}

Supported Tokens

The server includes a built-in mapping for 70+ popular tokens (BTC, ETH, SOL, USDT, USDC, BNB, XRP, ADA, DOGE, AVAX, and many more). For tokens not in the built-in map, it automatically searches CoinGecko to resolve the symbol.

Data Source

All data comes from the CoinGecko API (free tier). The server includes:

  • 60-second caching to reduce API calls
  • Automatic retry with backoff on rate limits
  • Graceful error handling for network issues and invalid inputs

The free CoinGecko tier allows approximately 10-30 requests per minute.

Development

# Install dependencies
uv sync

# Run tests (uses live CoinGecko API -- may hit rate limits)
uv run pytest tests/ -v

# Run the server directly
uv run crypto-data-mcp

Pricing

Free tier -- This open-source MCP server with CoinGecko data is free.

Pro tier -- Coming soon at $19/mo with:

  • Real-time WebSocket price feeds
  • DEX data (Uniswap, Raydium, Jupiter)
  • On-chain analytics
  • Wallet and portfolio tracking
  • Higher rate limits
  • Priority support

Visit whoffagents.com for updates.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选