dune-analytics-mcp
Dune Analytics MCP 服务器
将 Dune Analytics 数据桥接到 AI 代理的 mcp 服务器。
特征
工具:
get_latest_result:通过 ID 获取 Dune 查询的最新结果。run_query:通过 ID 执行 Dune 查询并检索结果。
CSV 输出:所有结果都以 CSV 格式的字符串返回,以便于处理。
Related MCP server: blocklens-mcp-server
先决条件
Python 3.10+
有效的 Dune Analytics API 密钥(从Dune Analytics获取)
安装
克隆存储库:
git clone https://github.com/kukapay/dune-analytics-mcp.git cd dune-analytics-mcp设置环境变量:在项目根目录中创建一个
.env文件:DUNE_API_KEY=your_api_key_here或者,将其设置为系统环境变量:
export DUNE_API_KEY="your_api_key_here"
用法
运行服务器
开发模式:
mcp dev main.py这将启动服务器并进行热加载以进行开发。
为 Claude Desktop 安装:
mcp install main.py --name "Dune Analytics"安装服务器作为服务以供 Claude Desktop 使用。
工具使用
get_latest_result(query_id)描述:检索指定 Dune 查询的最新结果。
输入:
query_id(int)-Dune 查询的 ID。输出:查询结果的 CSV 格式字符串。
例子:
get_latest_result(query_id=4853921)
run_query(query_id)描述:执行 Dune 查询并返回结果。
输入:
query_id(int)-要运行的 Dune 查询的 ID。输出:查询结果的 CSV 格式字符串。
例子:
run_query(query_id=1215383)
Claude Desktop 中的示例命令
“获取沙丘查询 1215383 的最新结果”
“运行沙丘查询 1215383”
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceDune MCP Server connects your AI assistant to Dune Analytics, the leading platform for blockchain data. Execute SQL queries across Ethereum, Solana, and 20+ chains to analyze DEX trades, token transfers, NFT sales, and wallet activity. Manage saved queries, upload custom datasets, and access curate19MIT

blocklens-mcp-serverofficial
AlicenseAqualityDmaintenanceMCP server for Blocklens Bitcoin on-chain analytics, providing AI agents access to 127 on-chain metrics and chart rendering.1560MIT- AlicenseNot gradedqualityDmaintenanceThis project implements a Model Context Protocol (MCP) server that combines the power of Dune Analytics and Blockscout APIs, providing comprehensive blockchain data analysis capabilities for LLM agents and MCP clients.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides DeFi data tools (crypto prices, whale concentration, funding rates) for AI agents via the x402 protocol.121MIT
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server exposing the Backtest360 engine API as tools for AI agents.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kukapay/dune-analytics-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server