Koskamo

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-05Operated by Dune Analytics
MCP endpoint (Streamable HTTP)
https://api.dune.com/mcp/v1
Vendor documentation

What 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.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers a Streamable HTTP server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http dune https://api.dune.com/mcp/v1

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add dune --url https://api.dune.com/mcp/v1

Cursor

Merge this server into .cursor/mcp.json in your project, then enable dune in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "dune": {
      "url": "https://api.dune.com/mcp/v1"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure). The type must be streamableHttp for a remote HTTP server.
Cline configuration
{
  "mcpServers": {
    "dune": {
      "type": "streamableHttp",
      "url": "https://api.dune.com/mcp/v1",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start dune and inspect its tools.
VS Code configuration
{
  "servers": {
    "dune": {
      "type": "http",
      "url": "https://api.dune.com/mcp/v1"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http dune https://api.dune.com/mcp/v1

Claude Desktop

Merge this into claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\), then restart Claude Desktop.
Claude Desktop configuration
{
  "mcpServers": {
    "dune": {
      "url": "https://api.dune.com/mcp/v1"
    }
  }
}

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "dune": {
      "serverUrl": "https://api.dune.com/mcp/v1"
    }
  }
}

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.

Claim this listing