dune-analytics-mcp

dune-analytics-mcp

A mcp server that bridges Dune Analytics data to AI agents.

31
Stars
8
Forks
0
Releases

Overview

Dune Analytics MCP Server provides an MCP interface that exposes Dune Analytics data to AI agents. It offers two core tools: get_latest_result and run_query, both returning results as CSV-formatted strings for easy ingestion by downstream AI workflows. Prerequisites include Python 3.10+ and a valid Dune API key. The project can be installed automatically via Smithery for Claude Desktop or installed manually by cloning the repo and setting DUNE_API_KEY in a .env file or as a system environment variable. Development mode can be run with mcp dev main.py to enable hot reloading. To deploy for Claude Desktop, use mcp install main.py --name "Dune Analytics". Tool usage includes get_latest_result(query_id) and run_query(query_id) with corresponding inputs and outputs described. Example commands include retrieving the latest results for a given Dune query and executing a Dune query to obtain results. The project is MIT licensed.

Details

Owner
kukapay
Language
Python
License
MIT License
Updated
2025-12-07

Features

Tools: get_latest_result

Fetch the latest results of a Dune query by ID.

Tools: run_query

Execute a Dune query by ID and retrieve results.

CSV Output

All results are returned as CSV-formatted strings for easy processing.

Audience

AI developersAccess Dune Analytics data via MCP for AI-powered applications and integration.
Claude Desktop usersInstall and run the MCP server for Claude Desktop workflows seamlessly.

Tags

Dune AnalyticsMCP serverCSV outputget_latest_resultrun_queryClaude DesktopSmitheryPythonDUNE API keyDevelopment