crypto-mcp-server
Verified Safeby NalinKaushik
Overview
A production-ready Python-based MCP server for retrieving real-time and historical cryptocurrency market data from major exchanges using CCXT and CoinMarketCap APIs.
Installation
python -m src.crypto_mcp.serverEnvironment Variables
- CRYPTO_MCP_SERVER_NAME
- CRYPTO_MCP_SERVER_VERSION
- CRYPTO_MCP_DEBUG
- CRYPTO_MCP_LOG_LEVEL
- CRYPTO_MCP_DEFAULT_EXCHANGE
- CRYPTO_MCP_CACHE_ENABLED
- CRYPTO_MCP_CACHE_BACKEND
- CRYPTO_MCP_CACHE_TTL_PRICES
- CRYPTO_MCP_CACHE_TTL_OHLCV
- CRYPTO_MCP_CACHE_TTL_MARKET_DATA
- CRYPTO_MCP_CACHE_TTL_STATIC
- CRYPTO_MCP_RATE_LIMIT_PER_SECOND
- CRYPTO_MCP_RATE_LIMIT_PER_MINUTE
- CRYPTO_MCP_BURST_SIZE
- CRYPTO_MCP_REQUEST_TIMEOUT
- CRYPTO_MCP_EXCHANGE_TIMEOUT
- CRYPTO_MCP_MAX_OHLCV_LIMIT
- CRYPTO_MCP_DEFAULT_OHLCV_LIMIT
- CRYPTO_MCP_DEFAULT_OHLCV_TIMEFRAME
- CRYPTO_MCP_MAX_RETRIES
- CRYPTO_MCP_RETRY_BACKOFF_BASE
Security Notes
The server uses environment variables for configuration, including potential API keys for exchanges (though not passed in the provided `CCXTClient` instantiation example, it supports them). No hardcoded secrets, `eval` usage, or obfuscation were found in the provided code snippets. The async architecture, robust error handling with retries and timeouts, and rate limiting contribute to its resilience against network issues and API abuse. A deeper audit of `config.py` and full credential handling would be needed for a perfect score, but the structure is sound.
Similar Servers
mcp-aktools
This MCP server provides real-time and historical financial data for stocks and cryptocurrencies, offering search, detailed information retrieval, market overviews, news, and analysis capabilities.
alpha_vantage_mcp
Enables LLMs and agentic workflows to seamlessly interact with real-time and historical stock market data through the Model Context Protocol (MCP).
mcp-crypto-price
Provides real-time price data, market analysis, and historical trends for cryptocurrencies using the CoinCap API.
kukapay-mcp-servers
Aggregates real-time cryptocurrency and blockchain data for AI agents and developers, spanning DeFi, trading, market analytics, and Web3 services.