Back to Home
NalinKaushik icon

crypto-mcp-server

Verified Safe

by 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

Run Command
python -m src.crypto_mcp.server

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens2
Stars0
Forks0
Last Update2025-11-23

Tags

CryptocurrencyMarket DataReal-timeHistoricalTrading