Dune MCP server
Dune's official remote MCP server for onchain analytics: dataset discovery, DuneSQL query creation/execution, materialized views, visualizations, dashboards, and credit usage tracking. It supports OAuth 2.0 with PKCE and Dune API key authentication via header or query parameter.
Endpoint and access
OAuth sign-in: the first time you connect, your client opens the vendor's own authorization prompt in a browser.
OAuth sign-inEndpoint checked 2026-10-05
MCP endpoint (Streamable HTTP)
https://api.dune.com/mcp/v1What you can do with it
- Discover decoded tables by protocol, chain, or contract address.
- Create, execute, and update DuneSQL queries and fetch results.
- Generate visualizations and build dashboards from query results.
- Materialize query results into tables with scheduled refreshes.
- Track account credit usage while iterating on analysis.
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http dune https://api.dune.com/mcp/v1Codex
Codex configuration
codex mcp add dune --url https://api.dune.com/mcp/v1Cursor
Cursor configuration
{
"mcpServers": {
"dune": {
"url": "https://api.dune.com/mcp/v1"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"dune": {
"type": "streamableHttp",
"url": "https://api.dune.com/mcp/v1",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"dune": {
"type": "http",
"url": "https://api.dune.com/mcp/v1"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http dune https://api.dune.com/mcp/v1Claude Desktop
Claude Desktop configuration
{
"mcpServers": {
"dune": {
"url": "https://api.dune.com/mcp/v1"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"dune": {
"serverUrl": "https://api.dune.com/mcp/v1"
}
}
}Other data and analytics servers
Do you run Dune?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.