Dataline MCP Server

Dataline MCP Server

MCP server exposing read-only market data tools for crypto prices, funding rates, and prediction markets via Dataline API.

Category
Visit Server

README

@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-mcp

Or install globally:

npm install -g @dataline-xyz/dataline-mcp
dataline-mcp

Configure

The server reads credentials from environment variables:

Variable Required Default Description
DATALINE_API_KEY yes API key issued by Dataline
DATALINE_SECRET_KEY yes Secret used to sign requests (HMAC-SHA256)
DATALINE_BASE_URL no https://www.dataline.xyz Override the API base URL
DATALINE_MCP_TIMEOUT_MS no 45000 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
get_price Spot or swap price for a base/quote pair
get_funding_rate Annualized funding rate for a perpetual contract
get_odds_categories List prediction-market event categories
get_odds_event_list List prediction-market events (paginated)
search_prediction_events Full-text search across prediction events
get_prediction_event_detail Full detail for a single prediction event
get_odds_event_orderbook Orderbook (bids/asks) for a specific outcome market
get_prediction_market_quote 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 test

The OpenAPI spec for the supported endpoints ships as openapi.json next to this README.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured