Dune MCP Server & API for AI Agents

Data providerAuth: api_key

Connect your own Dune account once in Duang's encrypted team vault to expose 46 operations to your AI agents via MCP, CLI, or HTTP with zero exposed credentials.

Chat promptPaste into Claude Code, OpenClaw, OpenCode, Grok Bot, Antigravity, Hermes, or Pi

set up https://duang.ai/SKILL.md

Operations (46)

OperationPrice
POST api.dune.com/api/v1/contracts/decode

Submit contracts for decoding

Own key
GET api.dune.com/api/v1/contracts/submissions

List contract submissions

Own key
GET api.dune.com/api/v1/datasets

List datasets

Own key
GET api.dune.com/api/v1/datasets/{slug}

Get a dataset by slug

Own key
POST api.dune.com/api/v1/datasets/search

Search datasets

Own key
POST api.dune.com/api/v1/datasets/search-by-contract

Search datasets by contract address

Own key
POST api.dune.com/api/v1/sql/execute

Execute raw SQL query

Own key
POST api.dune.com/api/v1/query/{query_id}/execute

Execute, or run a query for the specified query ID

Own key
POST api.dune.com/api/v1/query/{query_id}/pipeline/execute

Execute a query pipeline

Own key
GET api.dune.com/api/v1/execution/{execution_id}/status

Check the status of an execution request

Own key
GET api.dune.com/api/v1/execution/{execution_id}/results

Given an execution ID, returns result of a an execution request

Own key
GET api.dune.com/api/v1/query/{query_id}/results

Get Latest Query Result

Own key
POST api.dune.com/api/v1/execution/{execution_id}/cancel

Cancel a triggered execution request given the execution ID

Own key
GET api.dune.com/api/v1/folders

List folders

Own key
POST api.dune.com/api/v1/folders

Create a folder

Own key
GET api.dune.com/api/v1/folders/{folder_id}

Get a folder

Own key
PATCH api.dune.com/api/v1/folders/{folder_id}

Update a folder

Own key
DELETE api.dune.com/api/v1/folders/{folder_id}

Delete a folder

Own key
POST api.dune.com/api/v1/folders/{folder_id}/move

Move a folder

Own key
POST api.dune.com/api/v1/content/move

Move queries and dashboards

Own key
GET api.dune.com/api/v1/materialized-views/{name}

This fetches a materialized view given a name

Own key
DELETE api.dune.com/api/v1/materialized-views/{name}

This deletes a materialized view given a full name

Own key
POST api.dune.com/api/v1/materialized-views

This upserts (create or replace) a materialized view from an existing query

Own key
GET api.dune.com/api/v1/materialized-views

This lists all materialized view owned by the account tied to the API key

Own key
POST api.dune.com/api/v1/materialized-views/{name}/refresh

This refreshes a materialized view

Own key
POST api.dune.com/api/v1/pipelines/execute

Execute a pipeline

Own key
GET api.dune.com/api/v1/pipelines/executions/{pipeline_execution_id}/status

Get pipeline execution status

Own key
GET api.dune.com/api/v1/queries

List queries

Own key
GET api.dune.com/api/v1/query/{query_id}/pipeline

Get query pipeline

Own key
POST api.dune.com/api/v1/query

Create and save a query on Dune

Own key
PATCH api.dune.com/api/v1/query/{queryId}

Update the details of a query on Dune

Own key
GET api.dune.com/api/v1/query/{queryId}

Returns the details of a query on Dune

Own key
POST api.dune.com/api/v1/query/{queryId}/archive

Archive Query on Dune

Own key
POST api.dune.com/api/v1/query/{queryId}/unarchive

Unarchive Query on Dune

Own key
POST api.dune.com/api/v1/query/{queryId}/private

Private Query on Dune

Own key
POST api.dune.com/api/v1/query/{queryId}/unprivate

Unprivate a query on Dune

Own key
GET api.dune.com/api/v1/schedules

List schedules

Own key
PUT api.dune.com/api/v1/queries/{query_id}/schedule

Set a query schedule

Own key
DELETE api.dune.com/api/v1/queries/{query_id}/schedule

Delete a query schedule

Own key
PUT api.dune.com/api/v1/dashboards/{dashboard_id}/schedule

Set a dashboard schedule

Own key
DELETE api.dune.com/api/v1/dashboards/{dashboard_id}/schedule

Delete a dashboard schedule

Own key
GET api.dune.com/api/v1/uploads

List all tables owned by the account

Own key
POST api.dune.com/api/v1/uploads

Create an empty uploaded table with a defined schema

Own key
POST api.dune.com/api/v1/uploads/{namespace}/{table_name}/insert

Insert data into an uploaded table

Own key
POST api.dune.com/api/v1/uploads/{namespace}/{table_name}/clear

Clear all data from an uploaded table

Own key
DELETE api.dune.com/api/v1/uploads/{namespace}/{table_name}

Delete an uploaded table

Own key

Frequently asked questions

Do I need my own Dune subscription or API key?

Yes. Connect your existing Dune API key in Duang's team vault so your agents can call all 46 operations without seeing the raw key.

How do I add Dune to Claude Code or Cursor via MCP?

Add Duang's single remote MCP endpoint (https://api.duang.ai/mcp) or follow https://duang.ai/SKILL.md. Your agent discovers and invokes Dune operations on demand without loading hundreds of unused schemas into context.

Am I charged if a Dune API call fails?

No. Upstream supplier failures and Duang platform errors cost $0 on managed calls. Every successful call returns a receipt listing the exact supplier and USD amount charged.

Related data providers