MKT CAP$2.23T-0.3%
24H VOL$71.6B
BTC DOM57.7%
HEALTH34BEARISH
SHORT-TERM50NEUTRAL
LONG-TERM19BEARISH
OI$47.0B-0.3%
24H LIQ$148M
LONG/SHORT58.8% / 41.2%
REGIME (LT)ESTABLISHED BEAR MARKET
REGIME (ST)SQUEEZE
HL OI$7.3B
WHALESSHORT 46.3%
MKT CAP$2.23T-0.3%
24H VOL$71.6B
BTC DOM57.7%
HEALTH34BEARISH
SHORT-TERM50NEUTRAL
LONG-TERM19BEARISH
OI$47.0B-0.3%
24H LIQ$148M
LONG/SHORT58.8% / 41.2%
REGIME (LT)ESTABLISHED BEAR MARKET
REGIME (ST)SQUEEZE
HL OI$7.3B
WHALESSHORT 46.3%
Plug real-time crypto data into your AI agent — one command: Get your free API key →
Get API KeyLogin
LC

LangChain

Platform integration

Give your LangChain / LangGraph agent live crypto market data — prices, funding, open interest, liquidations, market regimes, Fear & Greed, dealer gamma and whale activity — as ready-to-bind tools.

The cleanest path is langchain-mcp-adapters: point MultiServerMCPClient at our MCP server over streamable HTTP and it returns LangChain tool objects you can pass to any agent. Prefer plain HTTP? Wrap a requests call as a @tool — the ?format=markdown option gives you LLM-ready text with no parsing.

Vendor · LangChain MCP · http (streamable) Config · MultiServerMCPClient (langchain-mcp-adapters) Agent docs →
1

Install the adapter

Install langchain-mcp-adapters alongside your LangChain / LangGraph stack.

Terminal
pip install langchain-mcp-adapters langgraph "langchain[anthropic]"
2

Load the MCP tools

Configure MultiServerMCPClient with the streamable-HTTP transport, our URL, and your key on the X-API-Key header. get_tools() returns LangChain tools ready to bind to an agent.

Replace cdk_live_YOUR_KEY with your key — a free one comes from cryptodataapi.com/login or a POST to /api/v1/auth/keys.

Python
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain.agents import create_agent

client = MultiServerMCPClient({
    "cryptodataapi": {
        "transport": "streamable_http",
        "url": "https://cryptodataapi.com/mcp",
        "headers": {"X-API-Key": "cdk_live_YOUR_KEY"},
    }
})

tools = await client.get_tools()
agent = create_agent("anthropic:claude-sonnet-5", tools)
resp = await agent.ainvoke(
    {"messages": "What's the current crypto market regime?"}
)
3

Or wrap the REST API as a tool

Don't need the full MCP toolset? Wrap a single endpoint as a LangChain @tool. Use ?format=markdown so the model gets clean text instead of raw JSON.

Python (plain HTTP tool)
import requests
from langchain_core.tools import tool

HEADERS = {"X-API-Key": "cdk_live_YOUR_KEY"}

@tool
def market_snapshot() -> str:
    """Live crypto market snapshot: health, regime, sentiment."""
    r = requests.get(
        "https://cryptodataapi.com/api/v1/daily",
        params={"format": "markdown"}, headers=HEADERS, timeout=30,
    )
    r.raise_for_status()
    return r.text

Example prompts

“What's the current market regime and which strategy baskets fit it?”

“Compare BTC funding rates across exchanges and flag crowded positioning.”

“Which coins have the highest liquidation risk right now?”

“Build me a market brief from the daily snapshot and the Fear & Greed index.”

“Is dealer gamma amplifying or dampening BTC moves today?”

FAQ

Does it cost anything?

No. The Free API tier (no card) covers the whole market-wide picture. Per-coin quant, gamma and whale signals need Pro.

MCP adapter or a plain HTTP tool?

Use MultiServerMCPClient when you want the full curated toolset with one config block and automatic tool discovery. Wrap a requests call as a @tool when you only need one or two endpoints and want maximum control (and the ?format=markdown convenience).

Do I have to use async?

get_tools() and ainvoke are async, which fits most LangGraph agents. If you're in synchronous code, run them inside an event loop (asyncio.run(...)) or use your framework's sync entry points. The plain requests tool is fully synchronous if you'd rather avoid async entirely.

Was this page helpful?

Missing an agent, a config that changed, or a step that didn't work? Tell us and we'll fix it.