Dune Analytics MCP Server

Dune Analytics MCP Server

A Model Context Protocol server that connects AI agents to Dune Analytics data, providing access to DEX metrics, EigenLayer statistics, and Solana token balances through structured tools.

Category
Visit Server

README

Dune Analytics MCP Server

A Model Context Protocol (MCP) server that bridges Dune Analytics data to AI agents, providing access to DEX metrics, EigenLayer operators and AVS stats, and token balances on Solana. The tools utilize the preset endpoints and echo endpoints provided by Dune.

Features

  • Tools:
    • get_dex_pair_metrics: Get essential metadata and statistical data for a given token pair on a specific chain
    • get_token_pairs_liquidity: Find the token pair with the highest USD liquidity on a given chain
    • get_svm_token_balances: Get token balances for a specific wallet address on Solana
    • get_eigenlayer_avs_metrics: Get statistics for a specific AVS
    • get_eigenlayer_operator_metrics: Get statistics for all operators in a specific AVS
  • Data Formats: All results are returned in structured JSON format for easy processing

Prerequisites

  • Node.js 16+ or Bun 1.0+
  • A valid Dune Analytics API key (get one from Dune Analytics)

Installation

  1. Clone the Repository:

    git clone https://github.com/ekailabs/dune-mcp-server.git
    cd dune-mcp-server
    
  2. Install Dependencies: Using Bun:

    bun install
    

    Or using npm:

    npm install
    
  3. Set Up Environment Variables: Create a .env file in the project root based on .env.example:

    DUNE_API_KEY=your_api_key_here
    

    Alternatively, set it as a system environment variable:

    export DUNE_API_KEY="your_api_key_here"
    

Usage

Running the Server

Using Bun:

# Development mode with hot reload
bun dev

# Production mode
bun start

# Or build and run
bun build src/index.ts --outdir dist
bun dist/index.js

Using npm:

# Development mode with hot reload
npm run dev

# Production mode
npm start

# Or build and run
npm run build
npm run start:prod

Add to Claude for Desktop

To use with Claude for Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "dune": {
      "command": "bun",
      "args": [
        "/ABSOLUTE/PATH/TO/dune-mcp-server/src/index.ts",
        "stdio"
      ]
    }
  }
}

Tool Usage

  1. get_dex_pair_metrics(chain, token_pair)

    • Description: Retrieves essential metadata and statistical data for a given token pair
    • Input:
      • chain (string) - The blockchain to get the DEX stats for
      • token_pair (string) - The token pair to get the DEX stats for
    • Output: JSON object containing DEX metrics
  2. get_token_pairs_liquidity(chain)

    • Description: Identifies the token pair with the highest USD liquidity on a given chain
    • Input: chain (string) - The blockchain to get the DEX stats for
    • Output: JSON object containing top token pair metrics
  3. get_svm_token_balances(wallet_address)

    • Description: Gets the balances of a specific wallet address on the Solana blockchain
    • Input: wallet_address (string) - The address of the wallet to get the balance for
    • Output: JSON array of token balances
  4. get_eigenlayer_avs_metrics(avs_name)

    • Description: Gets the statistics for a specific AVS
    • Input: avs_name (string) - The name of the AVS to get the stats for
    • Output: JSON object containing AVS metrics
  5. get_eigenlayer_operator_metrics(avs_name)

    • Description: Gets the statistics for all operators in a specific AVS
    • Input: avs_name (string) - The name of the AVS to get operator stats for
    • Output: JSON object containing operator metrics

Example Commands in Claude for Desktop

  • "Can you please give me the liquidity of 'USDC-WETH' token pair on ethereum?"
  • "Show me the highest liquidity token pair on arbitrum"
  • "Can you please plot the stake distribution of EigenDA operators?"
  • "How many stakers are there on EigenDA AVS"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured