Dune MCP & CLI

Dune MCP: onchain data for AI agents

Turn onchain questions into charts, dashboards and alerts, from your AI assistant or terminal.

Any agent. Any workflow.

Plug Dune into any AI client that speaks MCP, or connect directly from the CLI and give your agent a live feed of the entire onchain world.

What your agent can do

Explore docs

Find the right data

Search tables, docs and contracts. Descriptions and columns come back in the answer, so your agent picks the right table first time.

Query and chart

Write, run and save DuneSQL, or create, run and chart a query in one step.

Build dashboards

Create dashboards, edit them widget by widget, and check the whole layout as an image.

Keep it current

Schedule queries, refresh materialized views, and get alerts by email, Slack, Discord or webhook.

Only the rows you need

Filter, sort and sample results, with JSON output for scripts and CI.

Manage your work

Organize folders, submit contracts for decoding, see your team's query runs and track credit usage.

Everything your agent needs to go onchain

The full onchain picture

One integration gives your agent structured data across every major chain, from raw blocks to protocol-level datasets.

100+ blockchains in a single warehouse

Raw, parsed and structured data in one place

Kept fresh as new blocks are indexed

Built for programmatic access

Built for machines from the start. Predictable schemas, structured responses and an API designed for automation.

Filter, sort and sample results before they reach your agent

Toolsets load only the MCP tools you need

Async execution for long-running analysis

Trusted by 1,000+ institutions

The same data banks, asset managers and protocols rely on in production, now available to your agent with a single connection.

Used by Visa, Bloomberg, S&P and UBS

20,000+ teams build on Dune

Enterprise-grade reliability and support

Get started in minutes

Connect in one step

to your AI agent or terminal.

Sign in with Dune

Use your Dune account, or an API key for CI

Onchain questions, answered

Across 100+ blockchains

“Dune MCP is insane. Managed to push an onchain monitoring dashboard that would’ve taken a week or two, in under 30 minutes.”

Kevin Apetrei

Founder, TAGO Research

“Today I built my first Dune dashboard. It wasn't as hard as I thought. Claude is more than enough.”

Avel Rémond

DeFi Manager at Tether

“AI is a CHEAT Code for learning Dune.”

Deebs DeFi

“Dune + Chat GPT is so good”

Suki Yang

Pantera Capital

Capabilities

MCPCLI
Find and query
Search tables, docs and contracts
Create, run and save queries
Filter, sort and sample results
Run SQL without saving
Chart and publish
Create charts, counters and tables
Charts inside the chat
Build and edit dashboards
Organize work in folders
Keep it current
Schedules
Alerts
Materialized views
Manage
Submit contracts for decoding
See and cancel team query runs
Check credit usage
Sign-in
Dune account
API key
Shell scripts and CI

Frequently Asked Questions

Get onchain.

Looking to use Dune for your company?