This repository provides a mcp server that bridges Dune Analytics data to AI agents, offering tools to fetch latest query results or execute queries by ID, returning data as CSV strings.
This repository hosts a server designed to bridge Dune Analytics data with AI agents. It enables AI agents to directly access and utilize data from Dune Analytics.
Features:
get_latest_result
to fetch the most recent results of a Dune query by its ID, and run_query
to execute a Dune query and retrieve its results.Usage:
The server can be run in development mode using mcp dev main.py
or installed as a service for Claude Desktop using mcp install main.py --name "Dune Analytics"
. The tools are invoked by providing the query_id
as an integer. Example commands for Claude Desktop include "Get latest results for dune query 1215383" and "Run dune query 1215383". A valid Dune Analytics API key is required and must be set as an environment variable.
kukapay/dune-analytics-mcp
March 16, 2025
March 28, 2025
Python