What is MCP (Model Context Protocol)?

MCP (Model Context Protocol) is an open standard created by Anthropic that lets AI models natively interact with external tools and data sources. Instead of writing custom function-calling code, you configure an MCP server and your AI client (Claude Desktop, Claude Code, Cursor, etc.) automatically discovers and uses the available tools.

Think of it as a USB-C port for AI: a standard interface that any tool can plug into and any AI client can use. The MCP server handles the protocol details; your AI just calls tools by name.

Key benefits of MCP over custom tool implementations:

Why Crypto Agents Need MCP

Crypto market data is uniquely well-suited for MCP because:

  1. Multi-source aggregation: crypto data comes from exchanges, on-chain providers, aggregators, and macro feeds. MCP lets an agent access all of these through one server.
  2. Interpretive context matters: raw funding rates or MVRV Z-Scores mean nothing to an LLM without context. MCP tool descriptions explain what each metric means and how to interpret it.
  3. Broad-to-deep exploration: agents naturally start with a broad market overview then drill into specifics. MCP tools mirror this pattern perfectly.
  4. Real-time data: market conditions change by the minute. MCP tools fetch live data on every call, so the agent always reasons over current state.

Without MCP, building a crypto research agent requires writing HTTP client code, defining tool schemas, handling errors, and managing authentication — for every single endpoint. With MCP, it’s a one-line config change.

Installing cryptodataapi-mcp

The CryptoDataAPI MCP server is published as an npm package. You need Node.js 18+ and a CryptoDataAPI key.

Claude Desktop

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "cryptodataapi": {
      "command": "npx",
      "args": ["-y", "cryptodataapi-mcp"],
      "env": {
        "CRYPTODATA_API_KEY": "cdk_live_yourkey"
      }
    }
  }
}

Claude Code

# Add the MCP server
claude mcp add cryptodataapi -- npx -y cryptodataapi-mcp

# Set the API key in your shell profile
export CRYPTODATA_API_KEY="cdk_live_yourkey"

Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "cryptodataapi": {
      "command": "npx",
      "args": ["-y", "cryptodataapi-mcp"],
      "env": {
        "CRYPTODATA_API_KEY": "cdk_live_yourkey"
      }
    }
  }
}

After configuration, restart your AI client. The 13 CryptoDataAPI tools will be automatically available.

Available Tools (13)

The MCP server exposes 13 tools, each mapping 1:1 to a CryptoDataAPI endpoint:

ToolWhat It Does
get_daily_snapshotComplete market overview in one call
get_market_healthDual-score market health (0-100) with regime classification
get_fear_greedFear & Greed Index (0-100, multi-source averaged)
get_funding_ratesCross-exchange perpetual funding rates
get_liquidationsCross-exchange liquidation volumes
get_open_interestCross-exchange open interest + 24h changes
get_btc_cycle8 BTC cycle indicators (MVRV, NUPL, Puell, etc.)
get_coin_profileDetailed coin data (price, market cap, changes)
search_coinsSearch coins by name or symbol
get_macroEUR/USD, gold, DXY, treasury yields
get_stablecoin_flowsStablecoin market cap and capital flows
get_etf_flowsBTC/ETH/SOL/XRP spot ETF daily flows
get_optionsBTC options data (OI, volume, put/call, max pain)

Each tool includes rich descriptions with interpretive context. For example, get_funding_rates explains that “positive funding means longs pay shorts (bullish crowding)” so the AI knows how to interpret the data.

Example Conversations

Once the MCP server is configured, you can have conversations like these:

Broad Market Overview

You: "What's the crypto market looking like today?"

Claude: [calls get_daily_snapshot]
The market is in an early bull phase with a health score of 67/100.
Fear & Greed is at 58 (Neutral). BTC funding is mildly positive
at +0.012%, suggesting moderate but not excessive bullish positioning.
Stablecoin inflows of $1.2B over 14 days signal fresh capital entering...

Specific Deep-Dive

You: "How are BTC options positioned?"

Claude: [calls get_options]
BTC options show a put/call ratio of 0.62, indicating bullish
positioning. Max pain is at $94,500, suggesting price may gravitate
toward that level before the next major expiry...

Cycle Analysis

You: "Where are we in the Bitcoin cycle?"

Claude: [calls get_btc_cycle]
Most cycle indicators are in the neutral-to-caution zone:
- MVRV Z-Score: 62/100 (neutral) — not overheated
- NUPL: 71/100 (caution) — approaching euphoria
- Puell Multiple: 45/100 (neutral) — miner revenue moderate
Overall: mid-cycle positioning, not yet at cycle top extremes.

The Market Briefing Prompt

The MCP server also includes a pre-built prompt called crypto_market_briefing. This prompt template guides the AI to:

  1. Call get_daily_snapshot for full market data
  2. Call get_market_health for regime classification
  3. Synthesize into a structured report with: Market Regime, Derivatives Positioning, Sentiment & Flows, Macro Backdrop, and Key Takeaways

You can customize the focus area:

In Claude Desktop, you can invoke this prompt directly from the prompt picker. In other clients, just ask “Use the crypto market briefing prompt” and the AI will follow the template.

Supported Clients

The CryptoDataAPI MCP server works with any MCP-compatible client:

The server uses stdio transport, which is the standard for local MCP servers. It runs as a subprocess of your AI client and communicates via stdin/stdout.

Get started:

  1. Get your API key at cryptodataapi.com
  2. Install: npx cryptodataapi-mcp
  3. Configure your AI client (see installation instructions above)
  4. Ask: “What’s the crypto market looking like?”