Dune Analytics MCP Server

by ekailabs

2 259 downloads Not rated yet MIT
GitHub

About

# 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**: -…

Details

License
MIT

Explore

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Dune Analytics MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Prerequisites

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

chain

(string) - The blockchain to get the DEX stats for

token_pair

(string) - The token pair to get the DEX stats for

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

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "dune analytics mcp server": {
            "dune-mcp-server": {
                "command": "bun",
                "args": [
                    "dev"
                ]
            }
        }
    }
}

McpServers

{
    "dune-mcp-server": {
        "command": "bun",
        "args": [
            "dev"
        ]
    }
}

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:
```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.