crypto
🪙 Model Context Protocol (MCP) server for cryptocurrency data. Uses Binance public API (no auth required) with CoinMarketCap fallback. Token-optimized responses for LLM applications.
claude mcp add --transport stdio pand40x-crypto-mcp node /absolute/path/to/crypto-mcp/build/index.js \ --env COINMARKETCAP_API_KEYS="your_cmc_api_key_1,your_cmc_api_key_2"
How to use
This MCP server provides cryptocurrency data by querying Binance public endpoints and automatically falling back to CoinMarketCap (CMC) if Binance is unavailable or rate-limited. It exposes tools to fetch real-time prices, batch multiple prices in parallel, and retrieve historical candlestick data with pagination support. The data is returned in compact, token-efficient formats to minimize LLM usage. To interact with the server, use the available tools get_price, batch_prices, and get_history. The server is designed to be drop-in compatible with MCP clients, streaming results over stdio or your MCP client connection as defined by the MCP protocol.
How to install
Prerequisites:
- Node.js (v14+)
- npm (v6+)
Installation steps:
- Clone the repository or obtain the MCP server package.
- Navigate to the project directory.
- Install dependencies:
npm install
- Build the project if a build step exists:
npm run build
- Configure environment variables (see Configuration section) and run the server:
npm start
- If developing locally, you can run in development mode (hot reloading, etc.) if supported:
npm run dev
Configuration notes:
- Ensure COINMARKETCAP_API_KEYS is set if you plan to use the CMC fallback.
- Binance API keys are not required for public endpoints used by this server.
- Ensure the MCP client references the correct path to the built server entry (see MCP Client Configuration in README).
Additional notes
Tips and common issues:
- If CMC API keys expire or rate limits are hit, rotate keys by updating COINMARKETCAP_API_KEYS with a comma-separated list.
- The get_history endpoint supports startTime and endTime; if endTime is omitted, the current time is used.
- The batch_prices tool returns a count and an array of quotes; ensure your client handles missing data gracefully in edge cases.
- For production deployments, consider setting a reasonable rate limit and caching strategy to minimize external API calls.
- The server uses Binance public endpoints by default; no API keys are required for price data, but you may want to configure CMC keys for fallback scenarios.
Related MCP Servers
tradememory-protocol
MCP server for AI trading memory — 3-layer memory system with LLM-powered reflection engine.
gtm
An MCP server for Google Tag Manager. Connect it to your LLM, authenticate once, and start managing GTM through natural language.
hive-crypto
Hive Intelligence Crypto MCP | The Ultimate Cryptocurrency MCP for AI Assistants - Unified access to crypto, DeFi, and Web3 analytics
x402-deploy
Turn any API or MCP server into a paid service with x402
mcp-claude-hackernews
An integration that allows Claude Desktop to interact with Hacker News using the Model Context Protocol (MCP).
django-admin
Expose Django admin models to MCP (Model Context Protocol) clients. Add a mixin to your ModelAdmin classes and let AI assistants like Claude perform CRUD operations, execute admin actions, and explore relationships—all respecting Django's permission system.