dune-analytics-mcp
A mcp server that bridges Dune Analytics data to AI agents.
Documentation
Dune Analytics MCP Server
A mcp server that bridges Dune Analytics data to AI agents.
Features
- Tools:
- `get_latest_result`: Fetch the latest results of a Dune query by ID.
- `run_query`: Execute a Dune query by ID and retrieve results.
- CSV Output: All results are returned as CSV-formatted strings for easy processing.
Prerequisites
- Python 3.10+
- A valid Dune Analytics API key (get one from Dune Analytics)
Installation
Installing via Smithery
To install Dune Analytics for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kukapay/dune-analytics-mcp --client claudeManual Installation
1. Clone the Repository:
git clone https://github.com/kukapay/dune-analytics-mcp.git
cd dune-analytics-mcp2. Set Up Environment Variables:
Create a `.env` file in the project root:
DUNE_API_KEY=your_api_key_hereAlternatively, set it as a system environment variable:
export DUNE_API_KEY="your_api_key_here"Usage
Running the Server
- Development Mode:
mcp dev main.pyThis 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.
Tool Usage
1. `get_latest_result(query_id)`
get_latest_result(query_id=4853921)2. `run_query(query_id)`
run_query(query_id=1215383)Example Commands in Claude Desktop
- "Get latest results for dune query 1215383"
- "Run dune query 1215383"
License
This project is licensed under the MIT License - see the LICENSE file for details.
Frequently asked questions
What is dune-analytics-mcp?
dune-analytics-mcp is A mcp server that bridges Dune Analytics data to AI agents.
How do I install dune-analytics-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is dune-analytics-mcp open source?
Yes — it is hosted on GitHub at https://github.com/kukapay/dune-analytics-mcp and has 31 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP