概览
What is Dune Analytics MCP Server?
A Model Context Protocol server that bridges Dune Analytics data to AI agents, providing tools to fetch and execute Dune queries. It is designed for developers building AI-powered analytics applications.
How to use Dune Analytics MCP Server?
Install via Smithery or clone the repo, set the DUNE_API_KEY environment variable, then run with mcp dev main.py for development or mcp install main.py --name "Dune Analytics" for Claude Desktop. Use the tools get_latest_result(query_id) and run_query(query_id) to retrieve CSV-formatted results.
Key features of Dune Analytics MCP Server
- Two tools:
get_latest_resultandrun_query - Results returned as CSV‑formatted strings
- Requires Python 3.10 or higher
- Integration via a Dune Analytics API key
- Installable via Smithery or manual setup
Use cases of Dune Analytics MCP Server
- Fetch latest results from a Dune dashboard inside an AI agent
- Execute a Dune query on demand from a conversational interface
- Automate blockchain data analysis through AI‑powered workflows
FAQ from Dune Analytics MCP Server
What Python version is required?
Python 3.10 or higher is required.
How do I get a Dune Analytics API key?
Obtain a free API key from the Dune Analytics settings page at https://dune.com/settings/api.
What tools does the server provide?
The server offers two tools: get_latest_result(query_id) and run_query(query_id).
How are results returned?
All results are returned as CSV‑formatted strings for easy processing.
How do I install it for Claude Desktop?
Run mcp install main.py --name "Dune Analytics" after setting up the environment variables.