{"_id":"@dataline-xyz/dataline-mcp","_rev":"3-8214e9807f6ebd4755fd7adb50cf9562","name":"@dataline-xyz/dataline-mcp","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@dataline-xyz/dataline-mcp","version":"0.1.0","keywords":["mcp","model-context-protocol","dataline","crypto","prediction-market","funding-rate","ai-tools"],"license":"MIT","_id":"@dataline-xyz/dataline-mcp@0.1.0","maintainers":[{"name":"dataline","email":"hong.wu@tearline.xyz"}],"homepage":"https://www.dataline.xyz","bugs":{"url":"https://github.com/dataline-xyz/dataline-mcps/issues"},"bin":{"dataline-mcp":"dist/mcp/server.js"},"dist":{"shasum":"658458d12d2814d81d03fef6b9a7926308f09963","tarball":"https://registry.npmjs.org/@dataline-xyz/dataline-mcp/-/dataline-mcp-0.1.0.tgz","fileCount":9,"integrity":"sha512-Xw47172GMMs+cKYUfJZyK/p7dP/g6ZJ5+LE6KniDmx1i30uQLJhNYRXPtmN6+O8icuecD0DV6no1ko40m7jYrQ==","signatures":[{"sig":"MEYCIQD/5LezodyJ+RdKtfq8JVI01+Q0Q3Ad6SgyG1mFzVUYdwIhAJLew6ign6vyvv7xG73KsmWrJdPxhI2t6F0WohlCgkFo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128879},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"gitHead":"b8d015a043b5da7085613e329a17994f9420e9b7","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","prepublishOnly":"pnpm build && pnpm test"},"_npmUser":{"name":"dataline","email":"hong.wu@tearline.xyz"},"repository":{"url":"git+https://github.com/dataline-xyz/dataline-mcps.git","type":"git"},"_npmVersion":"10.9.4","description":"Model Context Protocol (MCP) server and TypeScript SDK for the Dataline data API (spot prices, funding rates, and prediction-market data)","directories":{},"_nodeVersion":"22.22.0","dependencies":{"zod":"^3.23.0","@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.9.3","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/dataline-mcp_0.1.0_1779082037366_0.8664601884703274","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@dataline-xyz/dataline-mcp","version":"0.1.1","keywords":["mcp","model-context-protocol","dataline","crypto","prediction-market","funding-rate","ai-tools"],"license":"MIT","_id":"@dataline-xyz/dataline-mcp@0.1.1","maintainers":[{"name":"dataline","email":"hong.wu@tearline.xyz"}],"homepage":"https://www.dataline.xyz","bugs":{"url":"https://github.com/dataline-xyz/dataline-mcps/issues"},"bin":{"dataline-mcp":"dist/mcp/server.js"},"dist":{"shasum":"40c8e4cead12372699b99c13b704199c31d24ae7","tarball":"https://registry.npmjs.org/@dataline-xyz/dataline-mcp/-/dataline-mcp-0.1.1.tgz","fileCount":9,"integrity":"sha512-nLQIabA2bIM5W4U1NiwEUIc/O8e7QITxfnHPjySg6Ifw8CyhlJLm6L8r4oUovzXN7M5a81vYYItL8Bm2iPYohQ==","signatures":[{"sig":"MEQCIF8XmbVF9lAiPhtxZoNkPis39D1PCqFW2bFiBZARnmvbAiBmiQ3MGE7MUhyY65SCcQGn3Raidn3qfUI9564Q+0z7Bw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128931},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"gitHead":"d762ecb2ddeb910bec2c6f163174f276155834e8","mcpName":"io.github.dataline-xyz/dataline-mcp","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","prepublishOnly":"pnpm build && pnpm test"},"_npmUser":{"name":"dataline","email":"hong.wu@tearline.xyz"},"repository":{"url":"git+https://github.com/dataline-xyz/dataline-mcps.git","type":"git"},"_npmVersion":"10.9.4","description":"Model Context Protocol (MCP) server and TypeScript SDK for the Dataline data API (spot prices, funding rates, and prediction-market data)","directories":{},"_nodeVersion":"22.22.0","dependencies":{"zod":"^3.23.0","@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.9.3","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/dataline-mcp_0.1.1_1779082265366_0.47699775126441035","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@dataline-xyz/dataline-mcp","version":"0.1.2","mcpName":"io.github.dataline-xyz/dataline-mcp","description":"Model Context Protocol (MCP) server and TypeScript SDK for the Dataline data API (spot prices, funding rates, and prediction-market data)","license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","bin":{"dataline-mcp":"dist/mcp/server.js"},"keywords":["mcp","model-context-protocol","dataline","crypto","prediction-market","funding-rate","ai-tools"],"repository":{"type":"git","url":"git+https://github.com/dataline-xyz/dataline-mcps.git"},"homepage":"https://www.dataline.xyz","bugs":{"url":"https://github.com/dataline-xyz/dataline-mcps/issues"},"scripts":{"build":"tsup","test":"vitest run","dev":"tsup --watch","prepublishOnly":"pnpm build && pnpm test"},"dependencies":{"@modelcontextprotocol/sdk":"^1.0.0","zod":"^3.23.0"},"devDependencies":{"@types/node":"^22.0.0","tsup":"^8.0.0","typescript":"^5.9.3","vitest":"^2.0.0"},"engines":{"node":">=18"},"_id":"@dataline-xyz/dataline-mcp@0.1.2","gitHead":"cbbc30cf50616a68608368be4c40fb87e85ca751","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-n2yFnXTFe6twfE+RperYQ/0i8Ut3IoD5PBlQRMhyeqaXTnJoINNfUQs0Ibe4mRVw/+kmG799wYIdbbhxRUw+uQ==","shasum":"349e00af22329aa7043e07e2e8b6896f4170121b","tarball":"https://registry.npmjs.org/@dataline-xyz/dataline-mcp/-/dataline-mcp-0.1.2.tgz","fileCount":9,"unpackedSize":127183,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCoaam+QqIOKyrVpv5DVYwMXyqsV501SNCHviuyQym4ZwIgKym8optzkz1Wg9IUIUl2F/NjROL3C187vnnnoaaNNiA="}]},"_npmUser":{"name":"dataline","email":"hong.wu@tearline.xyz"},"directories":{},"maintainers":[{"name":"dataline","email":"hong.wu@tearline.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dataline-mcp_0.1.2_1779090898826_0.22487013353344554"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-18T05:27:17.257Z","modified":"2026-05-18T07:54:59.105Z","0.1.0":"2026-05-18T05:27:17.514Z","0.1.1":"2026-05-18T05:31:05.530Z","0.1.2":"2026-05-18T07:54:58.966Z"},"bugs":{"url":"https://github.com/dataline-xyz/dataline-mcps/issues"},"license":"MIT","homepage":"https://www.dataline.xyz","keywords":["mcp","model-context-protocol","dataline","crypto","prediction-market","funding-rate","ai-tools"],"repository":{"type":"git","url":"git+https://github.com/dataline-xyz/dataline-mcps.git"},"description":"Model Context Protocol (MCP) server and TypeScript SDK for the Dataline data API (spot prices, funding rates, and prediction-market data)","maintainers":[{"name":"dataline","email":"hong.wu@tearline.xyz"}],"readme":"# @dataline-xyz/dataline-mcp\n\nA [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server and TypeScript SDK for the [Dataline](https://www.dataline.xyz) data API.\n\nIt exposes a focused set of read-only market-data tools to MCP-compatible clients (Claude Desktop, Cursor, Continue, custom agents, etc.):\n\n- Spot and perpetual prices for crypto assets\n- Perpetual funding rates (annualized)\n- Prediction-market categories, events, search, details, orderbook\n- Best-quote helper that aggregates the orderbook into a single number\n\n## Install\n\nUsing `npx` (no install required):\n\n```bash\nnpx -y @dataline-xyz/dataline-mcp\n```\n\nOr install globally:\n\n```bash\nnpm install -g @dataline-xyz/dataline-mcp\ndataline-mcp\n```\n\n## Configure\n\nThe server reads credentials from environment variables:\n\n| Variable | Required | Default | Description |\n| --- | --- | --- | --- |\n| `DATALINE_API_KEY` | yes | — | API key issued by Dataline |\n| `DATALINE_SECRET_KEY` | yes | — | Secret used to sign requests (HMAC-SHA256) |\n| `DATALINE_BASE_URL` | no | `https://www.dataline.xyz` | Override the API base URL |\n| `DATALINE_MCP_TIMEOUT_MS` | no | `45000` | Per-request timeout in milliseconds |\n\nSee `.env.example` for a copy/pastable template.\n\n### Claude Desktop\n\nAdd to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS):\n\n```json\n{\n  \"mcpServers\": {\n    \"dataline\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@dataline-xyz/dataline-mcp\"],\n      \"env\": {\n        \"DATALINE_API_KEY\": \"your_api_key_here\",\n        \"DATALINE_SECRET_KEY\": \"your_secret_key_here\"\n      }\n    }\n  }\n}\n```\n\n### Cursor / Continue / other MCP clients\n\nUse the same command + env mapping in your client's MCP configuration.\n\n## Tools\n\n| Tool | Purpose |\n| --- | --- |\n| `get_price` | Spot or swap price for a base/quote pair |\n| `get_funding_rate` | Annualized funding rate for a perpetual contract |\n| `get_odds_categories` | List prediction-market event categories |\n| `get_odds_event_list` | List prediction-market events (paginated) |\n| `search_prediction_events` | Full-text search across prediction events |\n| `get_prediction_event_detail` | Full detail for a single prediction event |\n| `get_odds_event_orderbook` | Orderbook (bids/asks) for a specific outcome market |\n| `get_prediction_market_quote` | Convenience helper: best bid/ask + mid from the orderbook |\n\n## SDK usage\n\n```ts\nimport { DatalineClient } from \"@dataline-xyz/dataline-mcp\";\n\nconst client = new DatalineClient({\n  apiKey: process.env.DATALINE_API_KEY!,\n  secretKey: process.env.DATALINE_SECRET_KEY!,\n});\n\nconst price = await client.getPrice({ base_currency: \"BTC\", quote_currency: \"USDT\" });\nconsole.log(price);\n```\n\n## Development\n\n```bash\npnpm install\npnpm build\npnpm test\n```\n\nThe OpenAPI spec for the supported endpoints ships as `openapi.json` next to this README.\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}