Dune Analytics (Web3 SQL Analytics API)

Dune Analytics (Web3 SQL Analytics API) MCP Connector for Claude

A+

Execute SQL queries on blockchain data via Dune Analytics — track executions, fetch results, and analyze Web3 metrics directly from your AI agent.

4 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect your Dune Analytics account to any AI agent to query and analyze real-time blockchain data using SQL. Access comprehensive datasets across Ethereum, Solana, Polygon, and more through natural conversation.

What you can do

  • Query Execution — Trigger any existing Dune query ID with custom parameters to refresh on-chain data.
  • Status Tracking — Monitor the lifecycle of your SQL executions from pending to completion using execution IDs.
  • Data Retrieval — Fetch large result sets directly into your agent for immediate analysis, visualization, or reporting.
  • Execution Control — Cancel long-running or unnecessary queries to optimize your API usage and credits.

How it works

  1. Subscribe to this server
  2. Enter your Dune API Key
  3. Start querying blockchain data from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Data Analysts — quickly pull the latest DeFi, NFT, or DAO metrics without leaving your workspace.
  • Web3 Developers — verify on-chain states, protocol health, and contract interactions directly from your code editor.
  • Crypto Researchers — automate the gathering of ecosystem growth data and market trends for reports.
web3sqlblockchain-dataethereumcrypto-analytics

4 tools expose this connector's capabilities to your AI agent.

cancel_execution

Interrupt an ongoing query execution

execute_query

Returns an execution_id to track status. Execute a specific Dune query ID with optional parameters

get_execution_results

Use get_execution_status first to ensure it is completed. Retrieve the data rows from a completed execution

get_execution_status

g., QUERY_STATE_PENDING, QUERY_STATE_COMPLETED, QUERY_STATE_FAILED). Check the current status of a query execution

See how to talk to your AI agent using Dune Analytics (Web3 SQL Analytics API).

Execute Dune query ID 1234567 with parameters for the last 7 days.

I've started the execution for query 1234567. The execution ID is '01J8X...'. I will monitor the status for you.

Check the status of my Dune execution 01J8X9Z...

The execution 01J8X9Z... is currently 'QUERY_STATE_COMPLETED'. Would you like me to fetch the results now?

Fetch the results for execution ID 01J8X9Z... and summarize the top 5 holders.

I've retrieved the data. Based on the results, the top 5 holders are: 1) 0xabc... with 500 ETH, 2) 0xdef... with 450 ETH...

First, use `execute_query` to start the process and get an `execution_id`. Once `get_execution_status` shows the state is completed, use `get_execution_results` with that ID to fetch the data.

Related Connectors