Dune MCP 与 API 接入

数据供应商鉴权:api_key

数十条公链的链上 SQL 数据表:执行查询并读取链上分析结果。

发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

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

全部操作(46)

操作价格
POST api.dune.com/api/v1/contracts/decode

Submit contracts for decoding

自备 Key
GET api.dune.com/api/v1/contracts/submissions

List contract submissions

自备 Key
GET api.dune.com/api/v1/datasets

List datasets

自备 Key
GET api.dune.com/api/v1/datasets/{slug}

Get a dataset by slug

自备 Key
POST api.dune.com/api/v1/datasets/search

Search datasets

自备 Key
POST api.dune.com/api/v1/datasets/search-by-contract

Search datasets by contract address

自备 Key
POST api.dune.com/api/v1/sql/execute

Execute raw SQL query

自备 Key
POST api.dune.com/api/v1/query/{query_id}/execute

Execute, or run a query for the specified query ID

自备 Key
POST api.dune.com/api/v1/query/{query_id}/pipeline/execute

Execute a query pipeline

自备 Key
GET api.dune.com/api/v1/execution/{execution_id}/status

Check the status of an execution request

自备 Key
GET api.dune.com/api/v1/execution/{execution_id}/results

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

自备 Key
GET api.dune.com/api/v1/query/{query_id}/results

Get Latest Query Result

自备 Key
POST api.dune.com/api/v1/execution/{execution_id}/cancel

Cancel a triggered execution request given the execution ID

自备 Key
GET api.dune.com/api/v1/folders

List folders

自备 Key
POST api.dune.com/api/v1/folders

Create a folder

自备 Key
GET api.dune.com/api/v1/folders/{folder_id}

Get a folder

自备 Key
PATCH api.dune.com/api/v1/folders/{folder_id}

Update a folder

自备 Key
DELETE api.dune.com/api/v1/folders/{folder_id}

Delete a folder

自备 Key
POST api.dune.com/api/v1/folders/{folder_id}/move

Move a folder

自备 Key
POST api.dune.com/api/v1/content/move

Move queries and dashboards

自备 Key
GET api.dune.com/api/v1/materialized-views/{name}

This fetches a materialized view given a name

自备 Key
DELETE api.dune.com/api/v1/materialized-views/{name}

This deletes a materialized view given a full name

自备 Key
POST api.dune.com/api/v1/materialized-views

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

自备 Key
GET api.dune.com/api/v1/materialized-views

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

自备 Key
POST api.dune.com/api/v1/materialized-views/{name}/refresh

This refreshes a materialized view

自备 Key
POST api.dune.com/api/v1/pipelines/execute

Execute a pipeline

自备 Key
GET api.dune.com/api/v1/pipelines/executions/{pipeline_execution_id}/status

Get pipeline execution status

自备 Key
GET api.dune.com/api/v1/queries

List queries

自备 Key
GET api.dune.com/api/v1/query/{query_id}/pipeline

Get query pipeline

自备 Key
POST api.dune.com/api/v1/query

Create and save a query on Dune

自备 Key
PATCH api.dune.com/api/v1/query/{queryId}

Update the details of a query on Dune

自备 Key
GET api.dune.com/api/v1/query/{queryId}

Returns the details of a query on Dune

自备 Key
POST api.dune.com/api/v1/query/{queryId}/archive

Archive Query on Dune

自备 Key
POST api.dune.com/api/v1/query/{queryId}/unarchive

Unarchive Query on Dune

自备 Key
POST api.dune.com/api/v1/query/{queryId}/private

Private Query on Dune

自备 Key
POST api.dune.com/api/v1/query/{queryId}/unprivate

Unprivate a query on Dune

自备 Key
GET api.dune.com/api/v1/schedules

List schedules

自备 Key
PUT api.dune.com/api/v1/queries/{query_id}/schedule

Set a query schedule

自备 Key
DELETE api.dune.com/api/v1/queries/{query_id}/schedule

Delete a query schedule

自备 Key
PUT api.dune.com/api/v1/dashboards/{dashboard_id}/schedule

Set a dashboard schedule

自备 Key
DELETE api.dune.com/api/v1/dashboards/{dashboard_id}/schedule

Delete a dashboard schedule

自备 Key
GET api.dune.com/api/v1/uploads

List all tables owned by the account

自备 Key
POST api.dune.com/api/v1/uploads

Create an empty uploaded table with a defined schema

自备 Key
POST api.dune.com/api/v1/uploads/{namespace}/{table_name}/insert

Insert data into an uploaded table

自备 Key
POST api.dune.com/api/v1/uploads/{namespace}/{table_name}/clear

Clear all data from an uploaded table

自备 Key
DELETE api.dune.com/api/v1/uploads/{namespace}/{table_name}

Delete an uploaded table

自备 Key

常见问题

如何在 Claude Code 或 Cursor 中接入 Dune?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 Dune 全部 46 个操作,无需本地维护 MCP 插件或明文密钥。

调用 Dune 的数据接口如何计费?

在团队加密金库中绑定自有 Dune 密钥即可免费调用。

我的 Dune 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关数据供应商