Skip to main content
Glama
nullpointer-hq

exchange-data-mcp

exchange-data-mcp

Read-only market data MCP server for crypto exchanges with Public endpoints only and no API keys and no accounts. Binance, KuCoin and Coinbase normalized into one shape and serialized for LLM context.

Work as an MCP server for agent clients or as a plain Python library with zero dependencies.

Why this exists

Agents that work with markets need order books, trades and candles, and the existing options hand the model raw exchange JSON. Raw payloads often carry additional useless stuff the model doesn't read while this option doesn't and on top of that it unifies info across the exchanges. This package normalizes the dialects once then serializes it more easily.

Related MCP server: Binance Cryptocurrency MCP

Notable stuff about it :

  • Symbol dialects. BTC-USDT on KuCoin and Coinbase, BTCUSDT on Binance aggregated in one canonical form (BASE-QUOTE).

  • Timestamp units change per exchange and per endpoint. Binance is milliseconds, KuCoin stats and books are milliseconds, KuCoin trade history is nanoseconds, candles on KuCoin and Coinbase are seconds, Coinbase tickers are ISO strings. Every model comes out in ms since epoch.

  • Coinbase candle rows are [time, low, high, open, close, volume], newest first. That is the documented column order. KuCoin candles use [time, open, close, high, low, ...] instead. Positional mapping with tests, or the parser inverts candles.

  • Rate limits are per IP and agent tools wake up in bursts. The cache holds per-endpoint TTLs and collapses concurrent misses into one request (single-flight) so that five tools reading the same book in the same second cost one HTTP call. Failures aren't cached and a caller whose leader raised retries immediately after.

  • Spread math runs on Decimal end to end.

  • Slim serializers keep exact decimal strings under short keys. Measured on the recorded fixtures: the 24h ticker drops from 605 bytes of raw envelope to 207 bytes (34%). On the already-compact book snapshot the size is roughly neutral; the win is one schema in three exchanges.

Usage

As a library (zero dependencies):

from exchange_data_mcp import MarketDataService
from exchange_data_mcp.transport import urllib_fetcher

svc = MarketDataService(urllib_fetcher())
svc.ticker("kucoin", "BTC-USDT")
svc.compare("BTC-USDT")   # same pair on every venue, executable spread from top of book

As an MCP server:

pip install -e ".[mcp]"
python -m exchange_data_mcp.server

Tools exposed: get_ticker, get_orderbook, get_recent_trades, get_candles, compare_price.

Errors are profiled : retryable (RateLimited carrying retry_after, ExchangeUnavailable), fix-the-input (SymbolNotFound, UnsupportedRequest), or the-exchange-changed-something (BadResponse).

Tests

37 tests, fully offline against recorded fixtures:

python3 -m unittest discover -s tests -t .

Status

For portfolio purposes. REST with a TTL cache. For the live 10 ms streaming side of the same engineering, see kucoin-fast-stream.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to access real-time Binance cryptocurrency market data including prices, order books, candlestick charts, trading history, and 24-hour statistics through natural language queries.
    11
    Apache 2.0
  • A
    license
    D
    quality
    D
    maintenance
    Enables AI agents to access real-time Binance cryptocurrency market data including prices, order books, candlestick charts, trading history, and 24-hour statistics through natural language queries.
    12
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    Provides live cryptocurrency market data from over 100 exchanges, enabling AI agents to fetch prices, order books, funding rates, and more for trading analysis and arbitrage opportunities.
    13
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Safe, read-only market data for AI trading agents, offering 44 tools to query prediction markets, perpetuals, and cross-venue signals without the ability to execute trades.
    MIT

View all related MCP servers

Related MCP Connectors

  • Pre-computed market data that improves agent reasoning, reduces token usage, and replaces pipelines.

  • 52 paid x402 API endpoints for AI agents — crypto, data, DeFi, market intelligence.

  • Agent-native crypto market-data over MCP+REST: order flow, whales, liquidations, calibrated scores

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nullpointer-hq/exchange-data-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server