Back to MCP Catalog

Dune Analytics MCP Server

Finance & FintechPython
Access and analyze blockchain data from Dune Analytics
Available Tools

get_latest_result

Retrieves the latest results of a specified Dune query in CSV format

query_id

run_query

Executes a Dune query by ID and returns the results in CSV format

query_id

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.

Overview

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.

Prerequisites

Before using this MCP, you'll need:

Installation Options

Option 1: Install via Smithery (Recommended)

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

Option 2: Manual Installation

  1. Clone the repository:
git clone https://github.com/kukapay/dune-analytics-mcp.git
cd dune-analytics-mcp
  1. Set up your environment variables by creating 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"
  1. Install the MCP for Claude Desktop:
mcp install main.py --name "Dune Analytics"

Option 3: Run in Development Mode

For development and testing:

mcp dev main.py

Configuration

The MCP requires a Dune Analytics API key to function. Make sure to set this up before using the tools.

Example Usage

Once installed, you can use the MCP with natural language commands in Claude:

  • "Get the latest results for Dune query 1215383"
  • "Run Dune query 4853921 and analyze the results"
  • "Fetch data from Dune query 1215383 and create a summary of the findings"

Troubleshooting

If you encounter issues:

  1. Verify your Dune API key is correctly set
  2. Ensure the query ID exists and is accessible with your Dune account
  3. Check that your Python version is 3.10 or higher

For more detailed information, visit the GitHub repository.

Related MCPs

TastyTrade Portfolio Manager
Finance & FintechPython

Manage your TastyTrade brokerage account through Claude

Investor Agent
Finance & FintechPython

Financial analysis and investment insights for LLMs

Bankless Onchain
Finance & FintechTypeScript

Access and interact with blockchain data through the Bankless API

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.