X-Api-Key header as the REST API.
The MCP option in this site’s page menu connects an assistant to these docs, for searching them. The server on this page connects it to Datadash’s data.
Setup
1
Create an API key
Follow API Keys to create one.The assistant acts with that key’s full access, including creating, changing and deleting your cohorts. Create a key just for your MCP client, so you can revoke it without affecting anything else.
2
Pick your AI tool
Each tab has the exact setup. Replace
<your-api-key-here> with the key from step 1.- Claude Code
- Cursor
- Codex
- VS Code
- Other
Register the Datadash MCP server. Start a new session and open the MCP menu. datadash should be listed as connected:
--scope user makes it available in every project:3
You're set
Datadash is connected. Start a new chat and ask about the data. The prompts below are a good place to start.
What you can ask
Once connected, just ask. A few starting points:- “Who are the top 10 wallets by realized PnL in crypto markets?”
- “What is smart money positioned on in the biggest active politics markets?”
- “Show me the open positions of 0xAb8D…90F1, largest first.”
- “Build a cohort of wallets with over $100k in volume and a win rate above 60%, then tell me what they’re holding.”
Tools
The server exposes a small, fixed set of tools. Rather than one tool per endpoint, a singlequery_table takes the table as an argument, and get_schema describes every table in one call.
The schema is also published as the resource
datadashxyz://schema, for clients that can load resources into context without spending a tool call.
Things worth knowing
It's the REST API underneath
It's the REST API underneath
A tool call runs through the same validation, filtering and authentication as the equivalent REST request. The filter grammar, page limits and error messages are identical, so anything you can do over MCP you can reproduce with
curl. That makes it a quick way to prototype a query before you write code.Results are paged
Results are paged
The assistant picks a
page.limit for each query. When a result fills the page, the tool says so, and the assistant can either narrow the filter or read on with page.offset. If an answer looks suspiciously round, ask whether it saw every row.Cohorts build in the background
Cohorts build in the background
A criteria cohort’s membership is computed asynchronously after it’s created or changed. The assistant waits for the build to finish (up to two minutes) before reading its wallets. A static cohort is ready as soon as it’s saved. See Cohorts for how criteria work.
Names resolve to IDs
Names resolve to IDs
Markets, events and similar entities are filtered by ID, not name. The assistant finds the IDs with
query_lookup first. When a name matches several candidates, it should pick the right ones or ask you. If an answer covers the wrong market, name the market more precisely.Next steps
API Keys
Create a dedicated key for your MCP client.
Cohorts
How cohort criteria are defined and built.