Dune Query MCP

A modern bridge connecting Dune Analytics data to intelligent agents through Model Control Protocol (MCP).


Overview

DuneLink enables seamless integration of blockchain data analytics into your AI applications. By leveraging Dune Analytics' powerful query capabilities with the Model Control Protocol, this service allows LLMs and other AI systems to access on-chain data through simple, natural language interactions.

Core Capabilities

Data Retrieval Tools

Tool
Description
Use Case

get_latest_result

Retrieves pre-computed query results

Quick access to existing data

run_query

Executes a query on-demand

Real-time data analysis

Architecture

dunelink/
β”œβ”€β”€ app/                       # Application core
β”‚   β”œβ”€β”€ __init__.py            # Flask & MCP setup
β”‚   β”œβ”€β”€ routes/                # API endpoint definitions
β”‚   β”‚   └── dune_routes/       # Dune Analytics routes
β”‚   β”‚   └── templates/             # Web interface
β”‚   └── templates/             # Web interface
β”œβ”€β”€ config/                    # Configuration files
β”œβ”€β”€ logs/                      # Runtime logs
β”œβ”€β”€ flask_app.py               # Web server entry point
β”œβ”€β”€ run.py                     # MCP server entry point
└── requirements.txt           # Dependencies

For the set up guide and advance configuration etc., please visit Dune Query MCP Github Repository .


Last updated