back to top

Dune Announces Launch of MCP Server in New Blog Post

Dune Launches MCP Server, Letting AI Agents Query Its Full Blockchain Data Warehouse in a Single Conversation

March 5 2026 – DeFi Pulse

Dune Analytics, the platform that powers many of the most‑watched blockchain dashboards, announced today that its Model Context Protocol (MCP) server is now live. The new service gives any MCP‑compatible large‑language model (LLM) direct, structured access to Dune’s expansive data catalog – more than 100 indexed blockchains, decoded contract events, curated protocol datasets and a growing collection of community‑built tables. The result is a “prompt‑to‑chart” workflow that eliminates the manual steps traditionally required to move from a natural‑language query to a SQL statement, execution, and visualization.


What the Dune MCP Server Does

MCP is an emerging open standard that lets AI agents interact with external tools and data sources through a unified endpoint. Dune’s implementation exposes twelve discrete tools, all reachable via a single HTTP API. These tools allow an agent to:

  1. Discover tables – search the catalog for the appropriate raw or decoded datasets.
  2. Generate DuneSQL – translate a user‑level natural‑language request into a SQL query that conforms to Dune’s query engine.
  3. Execute the query – run the statement against the data warehouse.
  4. Retrieve results – pull the tabular output back into the agent’s context.
  5. Create visualizations – automatically render charts that can be returned to the user.

Because the entire pipeline is encapsulated in the MCP server, users no longer need to switch between a chat window, a query editor, and a charting UI. A single conversation can produce a fully‑formatted visualization for any blockchain query.


Supported AI Clients

The server is already compatible with several major LLM front‑ends:

Client Integration command (example)
Claude claude mcp add --scope user --transport http dune https://api.dune.com/mcp/v1 --header "x-dune-api-key: YOUR_API_KEY"
Codex codex mcp add dune_prod --url "https://api.dune.com/mcp/v1?api_key=YOUR_API_KEY"
Cursor (see Dune documentation)
ChatGPT (see Dune documentation)
OpenCode (see Dune documentation)

The documentation provides one‑line setup instructions for each client, and the same API key that powers Dune’s existing API is used for authentication.


Data Coverage

The MCP server opens the full breadth of Dune’s data to AI agents:

  • Blockchains – All 100+ chains indexed by Dune, including Ethereum, Solana, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, NEAR, zkSync, TON, TRON, Sui, Aptos, Gnosis, and many emerging L1/L2/app‑chains.
  • Data Types – Raw transaction logs, decoded smart‑contract events, curated protocol datasets (e.g., DeFi positions, stablecoin flows, prediction‑market outcomes), and community‑contributed tables such as NFT trade histories.
  • Real‑time indexing – Up‑to‑the‑minute data ingestion ensures that agents can answer “what happened in the last 24 hours?” type questions without lag.

If the information lives in Dune’s warehouse, the MCP server can retrieve it on demand.


Example Use Cases

Developers and analysts have already begun experimenting with prompts that span multiple chains and data domains. Some illustrative queries include:

  • “Show all stablecoin transfers larger than $1 M on Ethereum and Base in the past 24 hours.”
  • “Compare Uniswap and Curve daily swap volume over the last three months.”
  • “Identify the top ten wallets accumulating real‑world‑asset tokens this quarter.”
  • “What is the weekly trading volume on Polymarket versus the previous week?”

In each case, the LLM identifies the appropriate tables, composes the DuneSQL, runs the query, and returns a chart—all without the user writing a single line of SQL.


Pricing and Billing

The MCP server does not introduce a new pricing tier. It consumes the same API credits that power Dune’s standard REST API. Users can monitor usage through the getUsage tool and refer to Dune’s public pricing page for the cost of API credits on their current subscription plan.


How It Differs From the Classic Dune API

The traditional Dune API offers direct, programmatic access to query execution and result retrieval, but it leaves table discovery and query construction to the caller. The MCP server wraps those capabilities into a conversational interface, handling discovery, SQL generation, execution, and visualization in a single round‑trip. This makes it especially appealing for developers building AI‑driven analytics assistants, as well as for analysts who prefer a natural‑language workflow.


Analyst Perspective

“The launch of Dune’s MCP server is a logical next step for the platform, merging the richness of its blockchain data with the flexibility of modern LLMs,” says Maya Patel, senior research analyst at CryptoInsights. “By collapsing the data‑pipeline into a chat‑based interaction, Dune is lowering the barrier for non‑technical users to extract actionable insights. We expect a wave of AI‑powered dashboards and on‑the‑fly analytics tools that will accelerate both DeFi research and real‑time market monitoring.”

The broader DeFi ecosystem stands to gain from faster, more accessible data queries, particularly as the industry grapples with an ever‑expanding set of L1 and L2 networks.


Key Takeaways

  • Live today: Dune’s MCP server is publicly available and ready for integration with any MCP‑compatible AI client.
  • Full data access: Agents can query across more than 100 blockchains, decoded contracts, curated datasets, and community tables.
  • No SQL needed: Natural‑language prompts are automatically converted into DuneSQL, removing the need for users to write queries.
  • One‑line setup: Integration commands are provided for Claude, Codex, Cursor, ChatGPT, OpenCode, and others.
  • Cost‑neutral: The service consumes existing Dune API credits; no separate billing model is introduced.
  • Impact: The server streamlines analytics workflows, potentially spurring a new generation of AI‑driven DeFi monitoring tools.

Developers interested in experimenting can find setup instructions and an API key portal on Dune’s documentation site. As AI agents begin to tap into this comprehensive blockchain data source, the speed and breadth of on‑chain analysis are likely to increase dramatically.



Source: https://dune.com/blog/dune-mcp

Exit mobile version