npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dataline-xyz/dataline-mcp

v0.1.2

Published

Model Context Protocol (MCP) server and TypeScript SDK for the Dataline data API (spot prices, funding rates, and prediction-market data)

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