kukapay/dune-analytics-mcp
Free将 Dune Analytics 数据桥接到 AI 代理的 MCP 服务器。
FreeFree tier
About kukapay/dune-analytics-mcp
Dune Analytics MCP Server is an open-source Model Context Protocol (MCP) server that bridges Dune Analytics blockchain data to AI agents like Claude. It provides two simple tools: get_latest_result and run_query, each accepting a Dune query ID and returning results as CSV-formatted strings for easy processing. Built for Python 3.10+ and requiring a valid Dune Analytics API key, the server can be installed automatically via Smithery or manually from GitHub. It is licensed under the MIT License and has received 41 stars and 12 forks on GitHub.
Key Features
Two simple tools: get_latest_result and run_query
All results returned as CSV-formatted strings for easy parsing
Automatic installation via Smithery for Claude Desktop
Supports manual setup with Python 3.10+ and a Dune API key
MIT licensed, open-source on GitHub
Pros & Cons
Pros
- Simple, focused API with only two essential tools
- CSV output integrates easily with data processing pipelines
- Free and open-source (MIT license)
- Quick installation via Smithery or standard package managers
- Actively maintained with 41 stars on GitHub
Cons
- Requires a Dune Analytics API key (not included)
- Limited to query execution and fetching latest results only
- Output is restricted to CSV format; no JSON or other formats
- Only supports Dune Analytics, not other data sources
Best For
Integrating Dune Analytics data into AI assistant workflows (e.g., Claude Desktop)Fetching the latest results of a saved Dune query programmaticallyRunning on-demand Dune queries and retrieving results in a parseable formatAutomating blockchain data analysis with natural language commands
FAQ
What is Dune Analytics MCP Server?
It is an open-source MCP server that allows AI agents to fetch data from Dune Analytics by running queries or retrieving latest results, all returned as CSV strings.
How do I install it?
You can install it automatically via Smithery with 'npx -y @smithery/cli install @kukapay/dune-analytics-mcp --client claude' or manually by cloning the repository and setting up a .env file with your DUNE_API_KEY.
What tools does it provide?
It provides two tools: get_latest_result(query_id) to retrieve the latest results of a query, and run_query(query_id) to execute a query and return results. Both output CSV-formatted strings.
What are the prerequisites?
You need Python 3.10 or later and a valid Dune Analytics API key, obtainable from the Dune Analytics website.
What license is it under?
The project is licensed under the MIT License, as noted in the repository.