Dune Analytics MCP Server
If you already use Dune, the dune mcp server is the piece that lets your assistant work with it directly. Dune Analytics MCP Server.
A Model Context Protocol (MCP) server that bridges Dune Analytics data to AI agents, providing access to DEX metrics, EigenLayer operators and AVS stats, and token balances on Solana. The tools utilize the preset endpoints and echo endpoints provided by Dune.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
Description — Retrieves essential metadata and statistical data for a given token pairInput — - chain (string) - The blockchain to get the DEX stats forOutput — JSON object containing DEX metricsConfiguration is passed through the environment: DUNE_API_KEY, OPENAI_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
The server ships on npm as command., so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Dune's toolset — Description, Input, Output — is a fair guide to whether it matches your workflow. It is maintained by ekailabs; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Dune's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Description | Retrieves essential metadata and statistical data for a given token pair |
| Input | - chain (string) - The blockchain to get the DEX stats for |
| Output | JSON object containing DEX metrics |
{
"mcpServers": {
"dune": {
"command": "bun",
"args": [
"/ABSOLUTE/PATH/TO/dune-mcp-server/src/index.ts",
"stdio"
]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| DUNE_API_KEY | Credential the server authenticates with. | Yes |
| OPENAI_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.