kukapay_dune_analytics_mcp

kukapay_dune_analytics_mcp

by kukapay

License

Skip to content

You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert

kukapay / dune-analytics-mcp Public

A mcp server that bridges Dune Analytics data to AI agents.

License

MIT license

7 stars
0 forks
Branches
Tags
Activity

Star

Notifications
You must be signed in to change notification settings

kukapay/dune-analytics-mcp

main

1 Branch
0 Tags


Go to file

Code

Folders and files

| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------

kukapay
kukapay

update project description

Mar 27, 2025

1e4eba6
 · Mar 27, 2025

History
-------

5 Commits

| | |
| .gitignore | | .gitignore | initial commit | Mar 16, 2025 |
| .python-version | | .python-version | initial commit | Mar 16, 2025 |
| LICENSE | | LICENSE | Initial commit | Mar 16, 2025 |
| README.md | | README.md | update readme | Mar 16, 2025 |
| main.py | | main.py | initial commit | Mar 16, 2025 |
| pyproject.toml | | pyproject.toml | update project description | Mar 27, 2025 |
| uv.lock | | uv.lock | initial commit | Mar 16, 2025 |
| View all files | | |

Repository files navigation

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

  1. Clone the Repository:

    shell git clone https://github.com/kukapay/dune-analytics-mcp.git cd dune-analytics-mcp

  2. Set Up Environment Variables: Create a .env file in the project root:

    DUNE_API_KEY=your_api_key_here
    

    Alternatively, set it as a system environment variable:

    shell export DUNE_API_KEY="your_api_key_here"

Usage

Running the Server

  • Development Mode:

    shell mcp dev main.py

    This starts the server with hot reloading for development.

  • Install for Claude Desktop:

    shell 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)

    • Description: Retrieves the latest results of a specified Dune query.
    • Input: query_id (int) - The ID of the Dune query.
    • Output: CSV-formatted string of the query results.
    • Example:
      get_latest_result(query_id=4853921)
      
  2. run_query(query_id)

    • Description: Executes a Dune query and returns the results.
    • Input: query_id (int) - The ID of the Dune query to run.
    • Output: CSV-formatted string of the query results.
    • Example:
      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.

About

A mcp server that bridges Dune Analytics data to AI agents.

Resources

Readme

License

MIT license

Activity

Stars

7 stars

Watchers

1 watching

Forks

0 forks

Report repository

Releases


No releases published

Packages 0


No packages published

Languages

You can’t perform that action at this time.

Features & Capabilities

Categories
mcp_server model_context_protocol

Implementation Details

Stats

0 Views
7 GitHub Stars

Repository Info

kukapay Organization

Similar MCP Servers

continuedev_continue by continuedev
25049
21423
9300