A mcp server that bridges Dune Analytics data to AI agents.
A mcp server that bridges Dune Analytics data to AI agents. The dune analytics mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 4 defined tools rather than through you.
To install Dune Analytics for Claude Desktop automatically via Smithery:
Everything the assistant can do here goes through one of these:
Description — Retrieves the latest results of a specified Dune queryInput — query_id (int) - The ID of the Dune queryOutput — CSV-formatted string of the query resultsExample — The Example tool exposed by this serverInstallation goes through your MCP client rather than a global install: point it at @smithery/cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
You will need one environment variable: DUNE_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Dune Analytics's toolset — Description, Input, Output and 1 more — is a fair guide to whether it matches your workflow. It is maintained by kukapay; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| Description | Retrieves the latest results of a specified Dune query. |
| Input | query_id (int) - The ID of the Dune query. |
| Output | CSV-formatted string of the query results. |
| Example | The Example tool exposed by this server. |
{
"mcpServers": {
"dune-analytics": {
"command": "npx",
"args": ["-y", "@smithery/cli"],
"env": {
"DUNE_API_KEY": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| DUNE_API_KEY | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.