Dataline MCP Server
OfficialThe Dataline MCP server provides read-only access to crypto market data, blockchain project fundamentals, exchange announcements, and prediction market data from platforms like Polymarket and Kalshi.
Crypto Market Data
get_price: Spot price for any base/quote pair (e.g., BTC/USDT) across multiple exchanges with an aggregated average.get_funding_rate: Annualized funding rates for perpetual futures contracts on Binance, Bybit, and OKX.get_project_detail: Fundamentals, market metrics, exchange presence, investors, and funding rounds for blockchain projects.
Exchange Announcements
get_exchange_announcement_categories: List normalized announcement categories.get_exchange_announcement_list: Search/list announcements with pagination.get_exchange_announcement_detail: Full details of a single announcement.
Prediction Markets
get_odds_categories: List available event categories (crypto, politics, sports, etc.).get_odds_event_list: Browse events filterable by category, platform, status, and sort order.search_prediction_events: Full-text search across prediction events by keyword, slug, or ticker.get_prediction_event_detail: Full details for a single event including sub-markets, outcome probabilities, rules, and settlement timing.get_odds_event_orderbook: Raw bid/ask orderbook for a specific prediction market outcome.get_prediction_market_quote: Best bid/ask, mid price, spread, and implied probability for a given market outcome.
All tools are read-only and require a Dataline API key with HMAC signing. The server works with any MCP client (Claude Desktop, Cursor, Continue, custom agents).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dataline MCP Server what's the current price of BTC in USDT?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@dataline-xyz/dataline-mcp
A Model Context Protocol (MCP) server and TypeScript SDK for the Dataline data API.
It exposes a focused set of read-only market-data tools to MCP-compatible clients (Claude Desktop, Cursor, Continue, custom agents, etc.):
Spot and perpetual prices for crypto assets
Perpetual funding rates (annualized)
Blockchain project details by token symbol/name or contract address
Exchange announcements, categories, search/list, and full details
Prediction-market categories, events, search, details, orderbook
Best-quote helper that aggregates the orderbook into a single number
Install
Using npx (no install required):
npx -y @dataline-xyz/dataline-mcpOr install globally:
npm install -g @dataline-xyz/dataline-mcp
dataline-mcpRelated MCP server: 0xarchive-mcp
Configure
The server reads credentials from environment variables:
Variable | Required | Default | Description |
| yes | — | API key issued by Dataline |
| yes | — | Secret used to sign requests (HMAC-SHA256) |
| no |
| Override the API base URL |
| no |
| Per-request timeout in milliseconds |
See .env.example for a copy/pastable template.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"dataline": {
"command": "npx",
"args": ["-y", "@dataline-xyz/dataline-mcp"],
"env": {
"DATALINE_API_KEY": "your_api_key_here",
"DATALINE_SECRET_KEY": "your_secret_key_here"
}
}
}
}Cursor / Continue / other MCP clients
Use the same command + env mapping in your client's MCP configuration.
Tools
Tool | Purpose |
| Spot or swap price for a base/quote pair |
| Annualized funding rate for a perpetual contract |
| Project fundamentals, market metrics, exchange presence, investors, and funding rounds |
| List normalized exchange announcement categories |
| Search/list exchange announcements (paginated) |
| Full detail for a single exchange announcement |
| List prediction-market event categories |
| List prediction-market events (paginated) |
| Full-text search across prediction events |
| Full detail for a single prediction event |
| Orderbook (bids/asks) for a specific outcome market |
| Convenience helper: best bid/ask + mid from the orderbook |
SDK usage
import { DatalineClient } from "@dataline-xyz/dataline-mcp";
const client = new DatalineClient({
apiKey: process.env.DATALINE_API_KEY!,
secretKey: process.env.DATALINE_SECRET_KEY!,
});
const price = await client.getPrice({ base_currency: "BTC", quote_currency: "USDT" });
console.log(price);Development
pnpm install
pnpm build
pnpm testThe OpenAPI spec for the supported endpoints ships as openapi.json next to this README.
License
Available Tools
8 toolsget_funding_rateA
Get current funding rate for a perpetual futures contract. Returns per-venue funding rates with annualized rates and next funding timestamps. Supported venues: binance, bybit, okx.
Inputs: base_currency (required), quote_currency.
get_odds_categoriesA
List all available prediction market event categories (e.g. crypto, politics, sports). Returns an array of category name strings. Use these values as the category filter in get_odds_event_list. No parameters required.
Inputs: no named parameters.
get_odds_event_listA
List prediction market events, optionally filtered by category, platform, and status. Returns events with markets and outcome probabilities. Use get_odds_categories to discover valid category values. Limit max 50 per page.
Inputs: category, status, sort, page, +3 more.
get_odds_event_orderbookA
Get the raw orderbook (bids and asks) for a specific prediction market outcome. Provide either kalshi_market_id OR polymarket_market_id (not both, at least one required). Returns raw bid/ask levels — use the best bid and ask to compute mid price and implied probability.
Inputs: kalshi_market_id, polymarket_market_id.
get_prediction_event_detailA
Get full details for one prediction market event: sub-markets, outcome probabilities, rules summary, and settlement timing. WARNING: large events (e.g. election brackets) can have 100+ sub-markets and return very large responses. Default markets_limit is 20. Increase only when you need full coverage.
Inputs: provider (required), event_id (required), markets_limit.
get_prediction_market_quoteA
Get a quote for a prediction market outcome computed from live orderbook data. Returns best bid, best ask, mid price, spread, and implied probability percentage. Outcome must be 'yes' or 'no'. Use market_id from get_prediction_event_detail results.
Inputs: platform (required), market_id (required), outcome (required), side, +2 more.
get_priceA
Get current spot price for a crypto asset. Provide base_currency (e.g. BTC) and optional quote_currency (default USDT). Returns per-source prices from multiple exchanges and an average. For perpetual futures data (funding rates), use get_funding_rate instead.
Inputs: base_currency (required), quote_currency.
search_prediction_eventsA
Search prediction market events by keyword, slug, or ticker-like text on Polymarket and Kalshi. Returns matching events with markets and outcome probabilities. Query must be at least 3 characters. Use get_odds_event_list to browse without a keyword.
Inputs: query (required), status, sort, page, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Tools are clearly separated into crypto (get_funding_rate, get_price) and prediction markets (the rest). Within each group, each tool has a distinct purpose with no overlap.
All tools follow a consistent verb_noun pattern using snake_case (e.g., get_funding_rate, get_odds_event_list), making the set predictable and easy to navigate.
With 8 tools covering two domains, the count is reasonable. The crypto side has only 2 tools, which feels slightly thin, but the prediction market side is well-scoped with 6 tools.
The prediction market tools cover browsing, searching, and quoting data, missing only order placement (likely out of scope). Crypto tools cover spot and funding rates but lack history or orderbook data. Minor gaps, but the set is functional for data retrieval.
Maintenance
Related MCP Connectors
Historical tick, order book and settlement data for Polymarket and Predict.fun crypto up/down markets, plus smart-money lists and backtest quotes, over a read-only MCP server.
Hosted MCP server for SEC, FRED, Polymarket, Deribit, OKX, and FMP.
Live prices, perps, prediction markets and a paper trading desk over one MCP.
MCP server for accessing Glypse's prediction market analytics and research.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that provides structured access to Aster DEX market data—covering candlesticks, order books, trades, and funding rates.115MIT
- AlicenseBqualityBmaintenanceMCP server for querying historical and real-time crypto market data across Hyperliquid, Hyperliquid HIP-3, and Lighter.xyz - orderbooks, trades, candles, funding, open interest, liquidations, and data quality metrics.10064 npm13MIT
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server for Hyperliquid that provides public market data (prices, order books, funding) and any wallet's positions, orders, and fills via MCP tools, without requiring a private key.MIT
- AlicenseAqualityDmaintenanceA read-only MCP server for querying Hyperliquid perp markets, funding rates, order books, candles, and account positions/fills/funding for any address, without needing API keys or wallets.82MIT