Dataline MCP Server
OfficialClick on "Install 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 Serverwhat'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)
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-mcpConfigure
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 |
| 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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/dataline-xyz/dataline-mcps'
If you have feedback or need assistance with the MCP directory API, please join our Discord server