CoinGlass MCP Server
MCP server for CoinGlass cryptocurrency derivatives analytics. Provides AI agents access to 80+ API endpoints through 22 unified tools.
Features
22 MCP Tools — Unified interface to 80+ CoinGlass API endpoints
Plan-Aware Gating — Automatic feature restrictions based on subscription tier
Response Caching — Built-in caching via FastMCP middleware (60s TTL)
Retry Logic — Automatic retries for transient failures (5xx, timeouts)
Type-Safe — Full type hints with Literal-typed actions for LLM clarity
Async-First — Built on httpx + FastMCP for high performance
Quick Start
Installation
Or with uv:
Configuration
Get your API key at coinglass.com/pricing
Run
Claude Desktop Integration
Add to your claude_desktop_config.json:
Available Tools
Category | Tool | Description |
Market |
| Supported coins, pairs, exchanges |
| Real-time market summaries | |
| OHLC price candles | |
Open Interest |
| OI OHLC (pair/aggregated/stablecoin/coin-margin) |
| OI breakdown by exchange | |
Funding |
| Funding rate OHLC |
| Current rates, accumulated, arbitrage | |
Long/Short |
| Global ratio, top accounts, top positions |
Liquidation |
| Liquidation OHLC history |
| Real-time liquidation stream ⚡ | |
| Liquidation heatmaps 🔥 | |
Order Book |
| Bid/ask depth history |
| Whale walls detection | |
Whale |
| Hyperliquid whale positions ⚡ |
| Whale activity index | |
Taker |
| Taker buy/sell volume and ratio |
Spot |
| Spot market data and prices |
Options |
| Max pain, OI, volume (BTC/ETH) |
On-Chain |
| Exchange balances, flows, transfers |
ETF |
| Bitcoin/Ethereum ETF flows |
| Grayscale holdings and premium | |
Indicators |
| RSI, Fear & Greed, Rainbow, Pi Cycle, etc. |
Meta |
| Discover tools by keyword |
| View exchanges, intervals, features |
⚡ Requires Startup+ plan | 🔥 Requires Professional+ plan
Plan Features
Feature | Hobbyist | Startup | Standard | Professional |
Basic intervals (h4, h8, d1) | ✅ | ✅ | ✅ | ✅ |
Extended intervals (m1-h1) | ❌ | ✅ | ✅ | ✅ |
Whale alerts & positions | ❌ | ✅ | ✅ | ✅ |
Liquidation orders stream | ❌ | ❌ | ✅ | ✅ |
Liquidation heatmaps | ❌ | ❌ | ❌ | ✅ |
Usage Examples
Market Overview
Open Interest Analysis
Funding Rate Arbitrage
Whale Tracking
Market Sentiment
Tool Discovery
Architecture
Design Principles:
3-file architecture — Optimized for AI agent comprehension
Domain facade pattern — 22 tools → 80+ endpoints
Literal-typed actions — Helps LLMs select correct operations
Lifespan pattern — Shared httpx.AsyncClient for efficiency
Development
Setup
Testing
Run Locally
FastMCP Cloud Deployment
Entry point: coinglass_mcp.server:mcp
Environment variables:
COINGLASS_API_KEY— Your CoinGlass API keyCOINGLASS_PLAN— Subscription tier (default:standard)
API Reference
Full CoinGlass API documentation: open-api.coinglass.com
License
MIT
Links
CoinGlass — Cryptocurrency derivatives analytics
FastMCP — Fast, Pythonic MCP server framework
MCP Protocol — Model Context Protocol specification