dune-analytics-mcp

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.

14
0

Dune Analytics MCP Server - Summary

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:

  • Tools: Offers two primary tools: 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.
  • CSV Output: Returns all query results as CSV-formatted strings, facilitating easy parsing and integration with various AI models and data processing pipelines.

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.

Repository

KU
kukapay

kukapay/dune-analytics-mcp

Created

March 16, 2025

Updated

March 28, 2025

Language

Python

Category

AI