加密货币价格
STDIOHTTP-SSE加密货币实时价格与市场分析服务
加密货币实时价格与市场分析服务
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Supports both STDIO and Streamable HTTP transports.
Add this configuration to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json{ "mcpServers": { "mcp-crypto-price": { "command": "npx", "args": ["-y", "mcp-crypto-price"] } } }
You can run the server over HTTP for environments that support MCP over HTTP streaming.
npm run dev
# Build the HTTP bundle (outputs to .smithery/) npm run build # Start the HTTP server npm run start:http
# Build the STDIO bundle (outputs to dist/) npm run build:stdio # Start the STDIO server npm run start:stdio
The dev/build commands will print the server address to the console. Use that URL in clients that support MCP over HTTP (for example, Smithery). You can optionally provide an API key via COINCAP_API_KEY for higher rate limits.
For higher rate limits, add an API key to your configuration:
{ "mcpServers": { "mcp-crypto-price": { "command": "npx", "args": ["-y", "mcp-crypto-price"], "env": { "COINCAP_API_KEY": "YOUR_API_KEY_HERE" } } } }
Important Note: CoinCap is sunsetting their v2 API. This MCP supports both v2 and v3 APIs:
- If you provide a
 COINCAP_API_KEY, it will attempt to use the v3 API first, falling back to v2 if necessary- Without an API key, it will use the v2 API (which will eventually be discontinued)
 - It's recommended to obtain an API key from pro.coincap.io/dashboard as the v2 API will be completely deactivated in the future
 
Launch Claude Desktop to start using the crypto analysis tools.
This repository requires Verified (cryptographically signed) commits. CI also includes a job (Verify commit signatures) that fails PRs with unsigned commits.
# Generate a new ed25519 SSH key (no passphrase makes CI easier) ssh-keygen -t ed25519 -C "CI signing key for mcp-crypto-price" -f ~/.ssh/id_ed25519 -N '' # Your keys will be at: # Private: ~/.ssh/id_ed25519 # Public : ~/.ssh/id_ed25519.pub
git config --global gpg.format ssh git config --global user.signingkey ~/.ssh/id_ed25519.pub git config --global commit.gpgsign true # Example signed commit git commit -S -m 'feat: add something'
~/.ssh/id_ed25519.pubGets current price and 24h stats for any cryptocurrency, including:
Provides detailed market analysis including:
Analyzes historical price data with:
This project was inspired by Alex Andru's coincap-mcp project.
This project is licensed under the MIT License