
The Dune MCP Server is live. Connect any MCP-compatible AI agent to the full Dune data warehouse, including 100+ indexed blockchains, decoded smart contracts, curated datasets, and community-built tables, and go from natural language prompt to SQL query to visualization in a single conversation.
Works with Claude, Cursor, ChatGPT, Codex, and OpenCode.
What is the Dune MCP Server?
MCP (Model Context Protocol) is an open standard for connecting AI agents to external tools and data. The Dune MCP Server exposes 12 tools through a single endpoint that give your agent direct access to Dune's entire data warehouse: raw and decoded tables across 100+ blockchains, community-curated datasets, and real-time indexed data.
Your agent can discover tables, write DuneSQL queries, execute them, retrieve results, and generate visualizations. All in one conversation.
No context switching. No manual steps. Prompt to chart.
How It Works
Ask your agent something like "Show me all stablecoin transfers over $1M across Ethereum and Base in the last 24 hours." The agent then:
- Searches Dune's catalog for the right tables
- Writes a DuneSQL query
- Executes it via the MCP server
- Returns results and generates a visualization
One conversation. Every chain.
Example Prompts
- "What's the total volume on Polymarket this week vs. last week?"
- "Top 10 wallets accumulating RWA tokens in the last 30 days"
- "Compare Uniswap vs. Curve daily swap volume over the past 90 days"
- "Which stablecoins are gaining market share on Arbitrum?"
What You Can Analyze
The Dune MCP Server gives your agent access to the full Dune data warehouse spanning 100+ blockchains, including Ethereum, Solana, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, NEAR, zkSync, TON, TRON, Sui, Aptos, Gnosis, and dozens more L1s, L2s, and appchains.
Query across raw transaction data, decoded smart contract events, curated protocol datasets, and community-built tables covering stablecoin flows, prediction markets, RWA tracking, protocol analytics, wallet intelligence, DeFi positions, NFT activity, market research, and whatever's trending next.
If Dune has the data, your agent can query it.
Connect in One Line
Claude Code
claude mcp add --scope user --transport http dune https://api.dune.com/mcp/v1 --header "x-dune-api-key: YOUR_API_KEY"
Codex
codex mcp add dune_prod --url "https://api.dune.com/mcp/v1?api_key=YOUR_API_KEY"
Setup instructions for Cursor, ChatGPT, and more in the docs. Get your API key here.
FAQ
What is the Dune MCP Server?
A Model Context Protocol server that gives AI agents structured access to Dune's full data warehouse, covering 100+ blockchains, decoded smart contracts, and curated datasets, through 12 tools for table discovery, query execution, and visualization via a single endpoint.
Do I need to know SQL?
No. Your agent handles SQL generation from natural language. You describe what you want, the agent does the rest.
What blockchains are supported?
All 100+ chains indexed by Dune, including Ethereum, Solana, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, NEAR, zkSync, Scroll, Starknet, TON, TRON, Sui, Aptos, Celo, Gnosis, Fantom, and many more L1s, L2s, and appchains. Use the listBlockchains tool to see the full list.
Which AI clients work with it?
Any MCP-compatible client, including Claude, Cursor, ChatGPT, Codex, and OpenCode.
What does it cost?
The MCP server uses your existing Dune API credits. Check usage with the getUsage tool. See pricing for plan details.
What can I analyze?
Anything in Dune's data warehouse across 100+ blockchains: stablecoin flows, prediction markets, RWA tracking, protocol analytics, wallet intelligence, DeFi positions, NFT activity, DEX volumes, and more. Your agent queries the same raw and decoded tables, curated datasets, and community-built data that power Dune's dashboards.
How is this different from the Dune API?
The Dune API provides direct endpoint access. The MCP server wraps those capabilities into a protocol AI agents use conversationally, combining discovery, execution, and visualization into one workflow.


