> For the complete documentation index, see [llms.txt](https://olaxbt-docs.gitbook.io/olaxbt-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://olaxbt-docs.gitbook.io/olaxbt-doc/mcp-space/dune-query-mcp.md).

# 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](https://github.com/olaxbt/dune-query-mcp) .&#x20;

***

##

##
