cryptocurrency_data_mcp

ghiemer/cryptocurrency_data_mcp

3.1

If you are the rightful owner of cryptocurrency_data_mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

Crypto Data MCP Server is a modern Model Context Protocol server designed for crypto data analysis, offering multi-exchange coverage and actionable insights.

Tools
4
Resources
0
Prompts
0

📊 Crypto Data MCP Server

FastMCP Docker Python CCXT

A modern MCP server for crypto data analysis. Built for speed, multi-exchange coverage, and actionable insights.


✨ Why Use It?

  • 🔄 Multi-Exchange Ready – Binance, Bybit, OKX (spot, futures, swap)
  • 📊 Technical Indicators – SMA, EMA, RSI, MACD, Bollinger Bands & more
  • 📡 Live Market Data – OHLCV candles, orderbooks, depth
  • 📰 News & Sentiment – CryptoPanic, NewsAPI, Fear & Greed Index
  • 🛠 Production-Ready – Docker, FastMCP v2, logging, retry logic, rate-limiting

🚀 Quick Start

Docker (recommended)

git clone https://github.com/ghiemer/cryptocurrency_data_mcp
cd cryptocurrency_data_mcp

docker compose build
docker compose up -d
# Server is live at http://localhost:8000

Local

pip install -r app/requirements.txt
python -m app.main

📡 API Tools

All endpoints follow the Model Context Protocol.

  • Candlesfetch_candles (with optional indicators)
  • Orderbookfetch_orderbook
  • Newsfetch_news
  • Sentimentfetch_feargreed, fetch_cryptopanic

Example:

{
  "name": "fetch_candles",
  "arguments": {
    "symbol": "XRP/USDT",
    "timeframe": "1h",
    "limit": 100,
    "exchange": "binance",
    "market_type": "spot",
    "indicators": { "sma": 20, "rsi": 14 }
  }
}

⚙️ Configuration

Create a .env file:

LOG_LEVEL=INFO
PORT=8000
NEWSAPI_KEY=your_newsapi_key
CRYPTOPANIC_KEY=your_cryptopanic_key

Symbols auto-map across markets:

InputSpotFutures/Swap
XRP/USDTXRP/USDTXRP/USDT:USDT
XRPUSDTXRP/USDTXRP/USDT:USDT

📊 Supported Exchanges

ExchangeSpotFuturesSwapStatus
BinanceActive
BybitActive
OKXActive

🛠 Project Structure

cryptocurrency_data_mcp/
├── app/
│   ├── main.py              # FastMCP server & tools
│   ├── data_fetch.py        # Exchange data fetcher
│   ├── indicator_engine.py  # Technical indicators
│   ├── utils.py             # Helpers & error handling
│   └── requirements.txt
├── .env                     # Environment variables
├── docker-compose.yml
└── Dockerfile

📈 Performance

  • 🚦 Rate-limit aware (CCXT)
  • Stream-based data for memory efficiency
  • 🔄 Retries & recovery on failure
  • 🗂 Caching for smart reuse

🔐 Security

  • 🔑 Secure API keys via .env
  • 🛡 Input validation + error isolation
  • 📉 Built-in rate limiting

🤝 Contributing

  1. Fork the repo
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Commit (git commit -m "Add new feature")
  4. Push (git push origin feature/my-feature)
  5. Open a Pull Request

📜 License

MIT License – see .


🆘 Support


🎯 Roadmap

  • Real-time WebSocket streams
  • Portfolio tracking
  • ML-powered price predictions

Built with ❤️ on FastMCP | Powered by CCXT | Docker Ready 🐳