cryptodata-mcp
Delivers real-time crypto market microstructure, derivatives, order flow CVD/OI regime classification, fear & greed sentiment, and whale tracking context, enabling traders to assess market regimes and complement charting tools.
README
cryptodata-mcp
Production-ready Model Context Protocol (MCP) server delivering specialized crypto market microstructure, derivatives, order flow CVD/OI regime classification, fear & greed sentiment, and whale tracking context.
Designed specifically to complement charting tools (like TradingView) with real-time data that traditional charts cannot offer.
Features & Tools
| Tool | Parameters | Description |
|---|---|---|
get_orderflow_and_cvd_context |
ticker (required, e.g. "BTC"), period ("15m" | "1h" | "4h" | "1d", default "4h") |
Evaluates market conditions against the 9-State Order Flow Matrix using live Price, OI, Spot CVD, and Futures CVD deltas. All four legs span the same 10-candle lookback of the requested period. |
get_basis |
pair (default "BTCUSDT"), contract_type ("PERPETUAL" | "CURRENT_QUARTER" | "NEXT_QUARTER", default "PERPETUAL") |
Returns Futures vs. Spot Basis value, Basis %, and Contango / Backwardation / Parity classification. Annualized basis is reported for dated contracts only (scaled by 365/days-to-expiry); it is undefined for perpetuals. |
get_funding_rate |
ticker (default "BTC") |
Returns the current funding rate %, annualized rate %, next settlement time, and trend direction. The settlement interval is read from the venue (8h, 4h, …) rather than assumed. |
get_buy_sell_volume_ratio |
ticker (default "BTC"), period ("15m" | "1h" | "4h" | "1d", default "4h"), market_type ("spot" | "futures" | "both", default "both") |
Taker Buy/Sell volume in USD, Buy/Sell Ratio (> 1.05 = aggressive buyers, < 0.95 = aggressive sellers), Aggressor Delta, and Bias classification. |
get_fear_and_greed_index |
limit (1-365, default 7) |
Global Crypto Fear & Greed Index score (0-100), classification, and multi-day historical trend. |
get_whale_and_exchange_flows |
ticker (default "BTC"), timeframe ("1h" | "4h" | "12h" | "24h" | "7d" | "1w" | "30d" | "all", default "24h"), min_usd_value (default 1,000,000), max_pages (1-20, default 5), wait_for_login_seconds (0-120, default 3) |
Always opens Arkham Explorer — reusing an already-open Arkham window when one is on the debug port, launching one only if not — and scrapes both the Transfers and Trades tabs filtered to the timeframe and USD threshold. Also returns the exchange tape (spot/futures volume over the full timeframe, plus large trades from the recent tape). |
open_arkham_whale_tracker |
token (required — "BTC", "ETH", "solana"), tab ("transfers" | "trades" | "both", default "both"), timeframe (default "24h"), min_usd_value (default 100,000), max_pages (1-20, default 3), wait_for_login_seconds (0-120, default 3) |
Launches Chrome via CDP against https://arkm.com/explorer/token/<token> and scrapes live whale transfers & trades. |
Data-availability contract
No tool substitutes placeholder values. When an upstream venue cannot be reached, the tool returns an explicit UNAVAILABLE / INSUFFICIENT DATA result naming the failure, rather than a zero or a default that would be indistinguishable from a real reading. Likewise, a failed Arkham scrape is reported as a scrape failure — never as an absence of whale activity.
📊 Order Flow & CVD Cheatsheet Matrix (9 Market Regimes)
The internal matrix evaluator (src/utils/matrixEvaluator.js) classifies live market conditions into one of 9 strategic regimes. CVD is classified as an imbalance ratio against total taker volume (±2% standard, ±8% sharp), so the thresholds carry the same meaning for BTC and for a small cap. A component pointing the opposite way to a regime's specification counts against that regime, and when several regimes score equally the result is reported as AMBIGUOUS rather than silently resolved.
| Kondisi Pasar (Market State) | Price | Open Interest (OI) | CVD Spot | CVD Futures | Makna Strategis (Strategic Interpretation) |
|---|---|---|---|---|---|
| Healthy Uptrend | Up | Slow Up | Up | Up | Sinyal Beli Terbaik. Uang asli masuk (Spot) dan posisi Long baru dibuka perlahan. |
| Short Squeeze | Up | Down | Flat | Sharp Up | Kenaikan Semu. Harga meroket karena trader Short dipaksa beli (Buy to Cover) untuk tutup posisi. |
| Blow-off Top | Up | Sharp Up | Down | Sharp Up | Hati-hati Pucuk. FOMO level akut. Ritel nge-Long agresif, Whale di Spot mulai jualan. |
| Whale Accumulation | Flat | Slow Up | Up | Flat/Down | Sinyal Emas. Bandar sedang cicil beli (Spot) tanpa membuat harga heboh. Persiapan pump. |
| Spot Distribution | Flat | Up | Down | Up | Jebakan Bullish. Ritel FOMO nge-Long di pucuk, tapi Whale diam-diam buang barang di Spot. |
| Market Exhaustion | Flat | Down | Flat | Flat | Konsolidasi / Ragu. Pelaku pasar menutup posisi dan wait and see. Bersiap untuk volatilitas arah baru. |
| Healthy Downtrend | Down | Slow Up | Down | Down | Trend Turun Valid. Tekanan jual asli dari Spot, diiringi posisi Short baru yang dibangun bertahap. |
| Long Liquidation | Down | Down | Flat | Down | Pembersihan. Trader Long kena likuidasi berantai. Biasanya akan ada rebound cepat setelah bersih. |
| Panic Selling / Aggressive Shorting | Down | Up | Down | Sharp Down | Trend Turun Kuat. Investor Spot buang barang dan banyak posisi Short baru dibuka secara agresif. |
🌐 Arkham Intelligence Whale Tracker Launcher
The server includes an automated browser launcher that opens a dedicated new window of Google Chrome navigating directly to Arkham Token Explorer:
- URL Format:
https://arkm.com/explorer/token/<token_name> - Token slugs are resolved dynamically (
BTC->bitcoin,ETH->ethereum,SOL->solana). - Provides direct tab focus for Transfers and Trades.
Both get_whale_and_exchange_flows and open_arkham_whale_tracker drive this browser. They reuse an already-open arkm.com tab on the debug port when one exists — which is the fast path, and the one that carries your logged-in Arkham session. A browser is launched only when no usable tab is found.
⚠️ A launch opens a visible window using an isolated profile in your temp directory (not your everyday Chrome profile), so you will need to log into Arkham inside it — raise
wait_for_login_secondson that first run. Only a browser this server itself spawned is ever terminated; your own Chrome is left alone.
Coverage caveat: scraping walks max_pages pages per tab from the most recent, and Arkham's own value filter is not driven programmatically. A high min_usd_value on a busy token may therefore return few or no rows simply because the large ones sit deeper than the scanned depth — raise max_pages. The output always states how many pages were scanned, and a failed scrape is reported as a failure rather than as an absence of activity.
The CDP port defaults to 9224 and can be overridden with the ARKHAM_CDP_PORT environment variable.
🛠️ Installation & Setup
1. Install
This is plain CommonJS JavaScript — there is no build step.
npm install
2. Register in Cursor (.cursor/mcp.json or .vscode/mcp.json)
Add to your mcp.json:
{
"mcpServers": {
"cryptodata-mcp": {
"command": "node",
"args": [
"D:/coding/trading/cryptodata-mcp/src/index.js"
]
}
}
}
3. Register in Claude Desktop (claude_desktop_config.json)
On Windows, locate %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"cryptodata-mcp": {
"command": "node",
"args": [
"D:/coding/trading/cryptodata-mcp/src/index.js"
]
}
}
}
🧪 Testing Locally
You can run the server directly via node:
npm start
Or connect using the official @modelcontextprotocol/inspector:
npx @modelcontextprotocol/inspector node src/index.js
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。