Retrieves the latest results of a specified Dune query in CSV format
Executes a Dune query by ID and returns the results in CSV format
Dune Analytics MCP provides AI agents with direct access to blockchain and crypto data through the Dune Analytics platform. This integration allows for retrieving and analyzing on-chain data from various blockchains, enabling data-driven insights for crypto research, market analysis, and blockchain metrics. With this MCP, you can fetch results from existing Dune queries or execute queries directly, receiving data in CSV format for easy processing and analysis. It's an essential tool for anyone working with blockchain data who wants to leverage AI for deeper insights.
The Dune Analytics MCP server bridges Dune Analytics data to AI agents, allowing you to access blockchain and cryptocurrency data through Dune's powerful analytics platform. This integration enables AI assistants to retrieve and analyze on-chain data from various blockchains.
Before using this MCP, you'll need:
The easiest way to install the Dune Analytics MCP for Claude Desktop is via Smithery:
npx -y @smithery/cli install @kukapay/dune-analytics-mcp --client claude
git clone https://github.com/kukapay/dune-analytics-mcp.git
cd dune-analytics-mcp
.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"
mcp install main.py --name "Dune Analytics"
For development and testing:
mcp dev main.py
The MCP requires a Dune Analytics API key to function. Make sure to set this up before using the tools.
Once installed, you can use the MCP with natural language commands in Claude:
If you encounter issues:
For more detailed information, visit the GitHub repository.