
Dune MCP Server & API for AI Agents
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.
set up https://duang.ai/SKILL.md
Operations (46)
| Operation | Price |
|---|---|
POST api.dune.com/api/v1/contracts/decodeSubmit contracts for decoding | Own key |
GET api.dune.com/api/v1/contracts/submissionsList contract submissions | Own key |
GET api.dune.com/api/v1/datasetsList 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/searchSearch datasets | Own key |
POST api.dune.com/api/v1/datasets/search-by-contractSearch datasets by contract address | Own key |
POST api.dune.com/api/v1/sql/executeExecute raw SQL query | Own key |
POST api.dune.com/api/v1/query/{query_id}/executeExecute, or run a query for the specified query ID | Own key |
POST api.dune.com/api/v1/query/{query_id}/pipeline/executeExecute a query pipeline | Own key |
GET api.dune.com/api/v1/execution/{execution_id}/statusCheck the status of an execution request | Own key |
GET api.dune.com/api/v1/execution/{execution_id}/resultsGiven an execution ID, returns result of a an execution request | Own key |
GET api.dune.com/api/v1/query/{query_id}/resultsGet Latest Query Result | Own key |
POST api.dune.com/api/v1/execution/{execution_id}/cancelCancel a triggered execution request given the execution ID | Own key |
GET api.dune.com/api/v1/foldersList folders | Own key |
POST api.dune.com/api/v1/foldersCreate 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}/moveMove a folder | Own key |
POST api.dune.com/api/v1/content/moveMove 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-viewsThis upserts (create or replace) a materialized view from an existing query | Own key |
GET api.dune.com/api/v1/materialized-viewsThis lists all materialized view owned by the account tied to the API key | Own key |
POST api.dune.com/api/v1/materialized-views/{name}/refreshThis refreshes a materialized view | Own key |
POST api.dune.com/api/v1/pipelines/executeExecute a pipeline | Own key |
GET api.dune.com/api/v1/pipelines/executions/{pipeline_execution_id}/statusGet pipeline execution status | Own key |
GET api.dune.com/api/v1/queriesList queries | Own key |
GET api.dune.com/api/v1/query/{query_id}/pipelineGet query pipeline | Own key |
POST api.dune.com/api/v1/queryCreate 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}/archiveArchive Query on Dune | Own key |
POST api.dune.com/api/v1/query/{queryId}/unarchiveUnarchive Query on Dune | Own key |
POST api.dune.com/api/v1/query/{queryId}/privatePrivate Query on Dune | Own key |
POST api.dune.com/api/v1/query/{queryId}/unprivateUnprivate a query on Dune | Own key |
GET api.dune.com/api/v1/schedulesList schedules | Own key |
PUT api.dune.com/api/v1/queries/{query_id}/scheduleSet a query schedule | Own key |
DELETE api.dune.com/api/v1/queries/{query_id}/scheduleDelete a query schedule | Own key |
PUT api.dune.com/api/v1/dashboards/{dashboard_id}/scheduleSet a dashboard schedule | Own key |
DELETE api.dune.com/api/v1/dashboards/{dashboard_id}/scheduleDelete a dashboard schedule | Own key |
GET api.dune.com/api/v1/uploadsList all tables owned by the account | Own key |
POST api.dune.com/api/v1/uploadsCreate an empty uploaded table with a defined schema | Own key |
POST api.dune.com/api/v1/uploads/{namespace}/{table_name}/insertInsert data into an uploaded table | Own key |
POST api.dune.com/api/v1/uploads/{namespace}/{table_name}/clearClear 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.





