by kukapay
Bridges Dune Analytics query results to AI agents, delivering CSV-formatted output for seamless downstream processing.
Provides two tools—get_latest_result
and run_query
—that fetch or execute Dune Analytics queries and return the results as CSV strings, enabling AI agents to consume blockchain analytics data directly.
DUNE_API_KEY
environment variable.mcp dev main.py
or install it for Claude Desktop using mcp install main.py --name "Dune Analytics"
.get_latest_result(query_id=4853921)
.get_latest_result
: Retrieves the most recent results of a specified Dune query.run_query
: Executes a Dune query on demand and returns the fresh results.DUNE_API_KEY
in your environment or .env
file.mcp dev main.py
for local development.A mcp server that bridges Dune Analytics data to AI agents.
get_latest_result
: Fetch the latest results of a Dune query by ID.run_query
: Execute a Dune query by ID and retrieve results.To install Dune Analytics for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kukapay/dune-analytics-mcp --client claude
Clone the Repository:
git clone https://github.com/kukapay/dune-analytics-mcp.git
cd dune-analytics-mcp
Set Up Environment Variables:
Create a .env
file in the project root:
DUNE_API_KEY=your_api_key_here
Alternatively, set it as a system environment variable:
export DUNE_API_KEY="your_api_key_here"
Development Mode:
mcp dev main.py
This starts the server with hot reloading for development.
Install for Claude Desktop:
mcp install main.py --name "Dune Analytics"
Installs the server as a service for use with Claude Desktop.
get_latest_result(query_id)
query_id
(int) - The ID of the Dune query.get_latest_result(query_id=4853921)
run_query(query_id)
query_id
(int) - The ID of the Dune query to run.run_query(query_id=1215383)
This project is licensed under the MIT License - see the LICENSE file for details.
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "dune-analytics-mcp": { "command": "npx", "args": [ "-y", "@smithery/cli", "install", "@kukapay/dune-analytics-mcp", "--client", "claude" ], "env": { "DUNE_API_KEY": "<YOUR_API_KEY>" } } } }
Discover more MCP servers with similar functionality and use cases
by mckinsey
Build high-quality data visualization apps quickly with low‑code configuration, leveraging Plotly, Dash, and Pydantic while allowing deep customisation through Python, JavaScript, HTML, and CSS.
by antvis
mcp-server-chart is a Model Context Protocol (MCP) server developed by AntV that generates over 25 types of visual charts. It provides robust chart generation and data analysis capabilities, integrating with various AI clients and platforms.
by reading-plus-ai
mcp-server-data-exploration is an MCP server designed for autonomous data exploration on CSV-based datasets. It acts as a personal Data Scientist assistant, providing intelligent insights with minimal effort.
by Canner
Wren Engine is a semantic engine designed for Model Context Protocol (MCP) clients and AI agents, enabling accurate and context-aware access to enterprise data.
by GongRzhe
A Model Context Protocol (MCP) server for generating various types of charts using QuickChart.io, enabling chart creation through MCP tools.
by ergut
mcp-bigquery-server is a Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to securely and efficiently interact with Google BigQuery datasets. It acts as a translator, allowing LLMs to query and analyze data in BigQuery using natural language instead of SQL.
by isaacwasserman
Provides tools for saving data tables and generating Vega‑Lite visualizations via an MCP interface, supporting both textual specifications and PNG image output.
by surendranb
Google Analytics MCP Server is a Python-based tool that enables Large Language Models (LLMs) to access and analyze Google Analytics 4 (GA4) data using natural language, providing conversational querying of over 200 GA4 dimensions and metrics.
by tinybirdco
Provides a Model Context Protocol server implementation for Tinybird, allowing analytics agents to forward data to Tinybird's platform.