Skip to content
MCP serverOfficial: Published to the official MCP Registry by the GitHub account or domain it is named after, which owns its code or website.

Dune

Remote MCP server giving AI clients access to Dune's onchain data, DuneSQL queries

Dune is an MCP server for databases. It runs as a hosted remote server, so there is nothing to install locally.

Platforms
API, CLI
Runs
Remotely
What it can do
Can delete data (4 tools)
Version
1.0.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add --transport http mcp https://api.dune.com/mcp/v1

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://api.dune.com/mcp/v1"
    }
  }
}

Claude Code setup guide

In Customize → Connectors → Add → Add custom connector

https://api.dune.com/mcp/v1

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp": {
      "url": "https://api.dune.com/mcp/v1"
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://api.dune.com/mcp/v1"
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

In chatgpt.com → Plugins → + → Add custom MCP server

https://api.dune.com/mcp/v1

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

ChatGPT setup guide

Add with the CLI

Run in a terminal

codex mcp add mcp --url https://api.dune.com/mcp/v1

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.mcp]
url = "https://api.dune.com/mcp/v1"

Codex setup guide

Add to Grok Bot desktop app → Connect apps → Add a custom connector

https://api.dune.com/mcp/v1

Enter a Name (for example "Dune"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

Full Grok Bot setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://api.dune.com/mcp/v1"
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "mcp": {
          "httpUrl": "https://api.dune.com/mcp/v1"
        }
      }
    }

    Or run: gemini mcp add -s user --transport http mcp https://api.dune.com/mcp/v1

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "mcp": {
          "serverUrl": "https://api.dune.com/mcp/v1"
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "mcp": {
          "url": "https://api.dune.com/mcp/v1",
          "transport": "http"
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "mcp": {
          "type": "streamableHttp",
          "url": "https://api.dune.com/mcp/v1"
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "mcp": {
          "url": "https://api.dune.com/mcp/v1"
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "mcp": {
          "url": "https://api.dune.com/mcp/v1"
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "mcp": {
          "url": "https://api.dune.com/mcp/v1"
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "mcp": {
          "url": "https://api.dune.com/mcp/v1"
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Dune

Dune's MCP server connects an AI assistant to the blockchain datasets Dune indexes, so you can locate tables for a protocol, contract or chain without writing schema lookups by hand. Once connected, the assistant can draft and run DuneSQL queries, read the results, and turn them into charts, counters or tables shown inline in the conversation.

Beyond one-off analysis, the server manages the objects you already keep in Dune. It can update saved queries, build dashboards from a description, store query results as materialized views on a refresh schedule, and submit contracts for decoding. Access is scoped to the team you pick at sign-in, so it sees the queries, dashboards and folders that team owns.

It suits analysts, researchers and developers who already work in Claude, Cursor, Codex or OpenCode and want to stay in that environment while querying onchain data. Query runs consume Dune credits, and the server exposes a tool that reports credit usage for the current billing period.

Tools this server provides (42)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 4 of 42 tools delete data and 15 change data; 4 names don't say.

From the server's own tool labels and tool names; not verified by us.

searchTablesName suggests: reads
Find tables in the Dune catalog by protocol, chain, category, or schema
listBlockchainsName suggests: reads
List indexed blockchains with table counts
searchTablesByContractAddressName suggests: reads
Find the decoded event and call tables for a contract address
getTableSizeName suggests: reads
Get the storage size of a table and of the physical tables behind it
createAndExecuteQueryName suggests: changes
Create a query, run it, optionally add a visualization, and return a preview of the results
createDuneQueryName suggests: changes
Create and save a query without running it
getDuneQueryName suggests: reads
Fetch the SQL, metadata, and latest execution of a saved query
searchDuneQueriesName suggests: reads
Find saved queries by name
updateDuneQueryName suggests: changes
Change a query's SQL, title, description, privacy, tags, or parameters
executeQueryByIdName suggests: changes
Run a saved query and return an execution ID
getExecutionResultsName suggests: reads
Fetch the status and rows of an execution
generateVisualization
Create a chart, counter, or table from query results
renderVisualization
Show an existing visualization as an interactive chart in the conversation
getVisualizationName suggests: reads
Fetch a visualization's type, configuration, and chart URLs
listQueryVisualizationsName suggests: reads
List the visualizations of a query
updateVisualizationName suggests: changes
Change a visualization's name, chart type, or configuration
deleteVisualizationName suggests: deletes
Permanently delete a visualization
createDashboardName suggests: changes
Create a dashboard with widgets and layout
getDashboardName suggests: reads
Fetch a dashboard's metadata, widgets, and layout
searchDuneDashboardsName suggests: reads
Find dashboards by name
updateDashboardName suggests: changes
Change a dashboard's metadata, or replace its widgets and layout
archiveDashboardName suggests: changes
Archive a dashboard and remove it from public view
createMaterializedViewName suggests: changes
Store a saved query's results as a queryable table, with an optional scheduled refresh
listMaterializedViewsName suggests: reads
List the materialized views that you or your team own
getMaterializedViewName suggests: reads
Fetch a materialized view's metadata, size, and execution status
refreshMaterializedViewName suggests: reads
Run the source query again and replace the table contents
updateMaterializedViewName suggests: changes
Change the performance tier, or add, change, or remove the refresh schedule
deleteMaterializedViewName suggests: deletes
Permanently delete a materialized view and its refresh schedule
listDuneFoldersName suggests: reads
List folders in your library, with item counts
getDuneFolderName suggests: reads
Fetch a folder with its subfolders, queries, and dashboards
createDuneFolderName suggests: changes
Create a folder at the top level or inside another folder
updateDuneFolderName suggests: changes
Rename a folder or change its description, color, or icon
moveDuneFolderName suggests: changes
Move a folder under another folder or to the top level
moveContentToFolderName suggests: changes
Move queries and dashboards into a folder or out of folders
deleteDuneFolderName suggests: deletes
Delete a folder
listSchedulesName suggests: reads
List query, dashboard, and materialized view schedules
setScheduleName suggests: changes
Create or replace the schedule of a query or a dashboard
deleteScheduleName suggests: deletes
Delete the schedule of a query or a dashboard
submitContractsForDecoding
Submit up to 100 contracts for decoding, or ask to upgrade, rename, or delete a decoded contract
listContractSubmissionsName suggests: reads
List your decoding submissions and their status
getUsageName suggests: reads
Check credit usage in the current billing period
submit_feedback
Send Dune a rating of whether a tool result helped

What it does

Table discovery
Search Dune's catalog of blockchain tables by protocol, chain, category or contract address.
Query authoring and execution
Create, edit, run and fetch results for saved DuneSQL queries from the chat.
Inline charts
Generate charts, counters and tables from query results with interactive and static image links.
Dashboard management
Create, update, fetch and archive dashboards with widgets and layout.
Materialized views and schedules
Store query results as queryable tables and set refresh schedules for queries and dashboards.
Contract decoding
Submit up to 100 contracts for decoding and track the status of each submission.

Good for

  • Find the right decoded table for a protocol's swap or transfer activity
  • Build and run a daily metric query for a chain without leaving the AI client
  • Turn query results into a chart or counter for a quick summary
  • Create a multi-widget dashboard from a plain-language description
  • Schedule an hourly refresh of a materialized view and confirm its status
  • Check how many credits recent query runs have consumed

Dune FAQ

Is Dune MCP the official Dune MCP server?

Yes, it is Dune's official MCP server, served at https://api.dune.com/mcp/v1.

Which AI clients can use Dune MCP?

The docs cover Claude Code, Claude Desktop, Cursor, Codex and OpenCode, plus other MCP clients that support remote servers over Streamable HTTP.

Do I need a Dune API key to use Dune MCP?

Interactive clients sign in with a Dune account through OAuth. Headless and CI setups can instead pass an x-dune-api-key header.

What data can Dune MCP access?

It reads Dune's blockchain tables, including raw, decoded and curated tables, plus the queries, visualizations, dashboards, folders and materialized views owned by the selected team, and Dune's documentation.

How do I add Dune to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp https://api.dune.com/mcp/v1

What are the best alternatives to Dune?

The closest alternatives to Dune are Datanika MCP, Diogenes Database Intelligence & SQL Engine MCP, icedq-tools, Db Access MCP and Databricks MCP Server.

Where this comes from

  • Description: written from the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers