← 返回 Skills 市场
jolestar

Dune Mcp Skill

作者 jolestar · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
306
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install dune-mcp-skill
功能描述
Use Dune MCP through UXC for blockchain table discovery, SQL query creation/execution, execution result retrieval, and visualization with help-first schema i...
使用说明 (SKILL.md)

Dune MCP Skill

Use this skill to run Dune MCP operations through uxc.

Reuse the uxc skill for shared protocol discovery, output parsing, and generic auth/binding flows.

Prerequisites

  • uxc is installed and available in PATH.
  • Network access to https://api.dune.com/mcp/v1.
  • Dune API key is available for authenticated calls.

Core Workflow

  1. Confirm endpoint and protocol with help-first probing:
    • uxc https://api.dune.com/mcp/v1 -h
  2. Configure credential/binding for repeatable auth:
    • uxc auth credential set dune-mcp --auth-type api_key --header "x-dune-api-key={{secret}}" --secret-env DUNE_API_KEY
    • uxc auth credential set dune-mcp --auth-type api_key --header "x-dune-api-key={{secret}}" --secret-op op://Engineering/dune/api-key
    • uxc auth binding add --id dune-mcp --host api.dune.com --path-prefix /mcp/v1 --scheme https --credential dune-mcp --priority 100
  3. Use fixed link command by default:
    • command -v dune-mcp-cli
    • If missing, create it: uxc link dune-mcp-cli https://api.dune.com/mcp/v1
    • dune-mcp-cli -h
  4. Inspect operation schema before execution:
    • dune-mcp-cli searchTables -h
    • dune-mcp-cli searchTablesByContractAddress -h
    • dune-mcp-cli createDuneQuery -h
    • dune-mcp-cli executeQueryById -h
    • dune-mcp-cli getExecutionResults -h
  5. Prefer read/discovery operations first, then query creation or credit-consuming execution.

Capability Map

  • Discovery:
    • searchDocs
    • searchTables
    • listBlockchains
    • searchTablesByContractAddress
  • Query lifecycle:
    • createDuneQuery
    • getDuneQuery
    • updateDuneQuery
    • executeQueryById
    • getExecutionResults
  • Analysis helpers:
    • generateVisualization
    • getTableSize
    • getUsage

Recommended Usage Pattern

  1. Find the right table first:
    • dune-mcp-cli searchTables query='uniswap swaps'
    • dune-mcp-cli searchTablesByContractAddress contractAddress=0x...
  2. Prefer higher-level spell tables when they already expose the metrics you need.
  3. Keep SQL partition-aware:
    • use block_date, evt_block_date, or another partition/date column in WHERE
  4. Create a temporary query only after confirming table choice and date range.
  5. Execute and fetch results by execution ID.

Guardrails

  • Keep automation on JSON output envelope; do not rely on --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • Use dune-mcp-cli as default command path.
  • dune-mcp-cli \x3Coperation> ... is equivalent to uxc https://api.dune.com/mcp/v1 \x3Coperation> ....
  • Discovery operations are read-only:
    • searchDocs
    • searchTables
    • listBlockchains
    • searchTablesByContractAddress
    • getDuneQuery
    • getExecutionResults
    • getTableSize
    • getUsage
  • Require explicit user confirmation before credit-consuming or state-changing operations:
    • createDuneQuery
    • updateDuneQuery
    • executeQueryById
    • generateVisualization
  • Be careful with privacy:
    • confirm before switching a query from private to public
    • temporary queries can still be visible; inspect is_private and is_temp
  • key=value input now supports automatic type conversion for numeric MCP arguments.
  • Numeric IDs can be passed directly with key=value, for example:
    • query_id=6794106
    • queryId=6794106
  • Positional JSON is still useful for nested objects or when mixing string and numeric fields precisely:
    • {"executionId":"01...","timeout":90,"limit":20}
  • For SQL passed via key=value, wrap the whole SQL string in double quotes so inner SQL single quotes survive shell parsing.
  • If listBlockchains returns a Dune-side schema/facet error, fall back to searchTables with blockchains filters.

Tested Real Scenario

The following flow was exercised successfully through uxc:

  • discover table: uniswap.uniswapx_trades
  • create temporary query for Base daily volume
  • execute query
  • fetch results

The successful SQL shape was:

SELECT block_date,
       ROUND(SUM(amount_usd), 2) AS daily_volume_usd,
       COUNT(*) AS trades
FROM uniswap.uniswapx_trades
WHERE blockchain = 'base'
  AND block_date >= date_add('day', -7, CURRENT_DATE)
GROUP BY 1
ORDER BY 1 DESC
LIMIT 7

References

  • Invocation patterns:
    • references/usage-patterns.md
安全使用建议
This skill appears to be what it says (a uxc-based client for Dune MCP) but there is a clear metadata mismatch: SKILL.md requires a DUNE_API_KEY (and optionally an op:// secret path) while the registry metadata lists no required environment variables or credentials. Before installing, confirm with the publisher how the DUNE_API_KEY should be supplied and stored. If you will supply an API key, prefer using your own secret manager entry (not an organizational op:// path you don't control). Verify you trust the 'uxc' binary and the linked 'dune-mcp-cli' (inspect what those commands do on your system). Also note the repository includes a validate.sh that expects 'rg' (ripgrep) and runs sanity checks — review that script locally if you plan to run it. If the publisher cannot explain why required env/credentials are absent from metadata, treat this as a red flag and avoid granting secrets until clarified.
功能分析
Type: OpenClaw Skill Name: dune-mcp-skill Version: 1.0.0 The dune-mcp-skill bundle is a legitimate integration for Dune Analytics via the Model Context Protocol (MCP). It provides structured instructions for the OpenClaw agent to discover blockchain tables, execute SQL queries, and manage credentials using the 'uxc' utility, with clear guardrails requiring user confirmation for credit-consuming operations (SKILL.md, usage-patterns.md).
能力评估
Purpose & Capability
The name/description (Dune MCP via uxc) matches the instructions: discovery, query lifecycle, and visualization using the uxc CLI and Dune MCP API. However the skill's runtime docs explicitly require a DUNE_API_KEY and optional secret-op binding, but the registry metadata lists no required environment variables or primary credential — this mismatch is unexpected and should be clarified.
Instruction Scope
SKILL.md stays within the stated purpose: it documents uxc/uxc-linked dune-mcp-cli commands, help-first probing, read-only discovery vs credit-consuming ops, and explicit user confirmation for stateful/credit operations. It does reference an op:// secret path for optional secret-manager sourcing, which is an external resource but relevant to auth; otherwise instructions do not attempt to read unrelated files or exfiltrate data.
Install Mechanism
No install spec — instruction-only — so nothing will be downloaded or written by the platform. This is low risk. The only runtime dependency is a separately installed 'uxc' tool and an optional linked command 'dune-mcp-cli'.
Credentials
SKILL.md requires a Dune API key (references DUNE_API_KEY and an op://Engineering/dune/api-key secret path), but the skill metadata declares no required env vars or primary credential. Requesting access to a named secret or a secret-manager path without declaring it is disproportionate and causes ambiguity about what credentials will be needed or stored.
Persistence & Privilege
The skill does not request always:true and does not modify other skills' configs. The included validate.sh enforces local repository checks; it does not persist credentials or alter system-level settings. Autonomous invocation is allowed by default but is not combined with broad unexplained privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dune-mcp-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dune-mcp-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of dune-mcp-skill — use Dune MCP via UXC for blockchain data discovery, querying, and analysis. - Adds integration with Dune MCP using the uxc protocol for API access. - Provides credential management and explicit binding for secure authenticated queries. - Enables table discovery, SQL query creation/execution, and result retrieval with structured workflow guidance. - Introduces guardrails for safe credit-consuming and privacy-sensitive operations. - Supports automatic type conversions for MCP numeric arguments and direct passing of IDs. - Recommends best practices for partition-aware querying and usage of output parsing.
元数据
Slug dune-mcp-skill
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Dune Mcp Skill 是什么?

Use Dune MCP through UXC for blockchain table discovery, SQL query creation/execution, execution result retrieval, and visualization with help-first schema i... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 306 次。

如何安装 Dune Mcp Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dune-mcp-skill」即可一键安装,无需额外配置。

Dune Mcp Skill 是免费的吗?

是的,Dune Mcp Skill 完全免费(开源免费),可自由下载、安装和使用。

Dune Mcp Skill 支持哪些平台?

Dune Mcp Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dune Mcp Skill?

由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。

💬 留言讨论