A mcp server that bridges Dune Analytics data to AI agents. - getlatestresult: Fetch the latest results of a Dune query by ID. - runquery: Execute a Dune query by ID and retrieve results. - CSV Output: All results are returned as CSV-formatted strings for easy processing. - Python 3.10+ - A valid Dune Analytics API key (get one from Dune Analytics) To install Dune Analytics for Claude Desktop auto
Add this skill
npx mdskills install kukapay/dune-analytics-mcpWell-documented MCP server with clear tool descriptions and setup instructions for Dune Analytics integration
1# Dune Analytics MCP Server23[](https://smithery.ai/server/@kukapay/dune-analytics-mcp)45A mcp server that bridges Dune Analytics data to AI agents.67## Features89- **Tools**:10 - `get_latest_result`: Fetch the latest results of a Dune query by ID.11 - `run_query`: Execute a Dune query by ID and retrieve results.12- **CSV Output**: All results are returned as CSV-formatted strings for easy processing.1314## Prerequisites1516- Python 3.10+17- A valid Dune Analytics API key (get one from [Dune Analytics](https://dune.com/settings/api))1819## Installation2021### Installing via Smithery2223To install Dune Analytics for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@kukapay/dune-analytics-mcp):2425```bash26npx -y @smithery/cli install @kukapay/dune-analytics-mcp --client claude27```2829### Manual Installation30311. **Clone the Repository**:32 ```bash33 git clone https://github.com/kukapay/dune-analytics-mcp.git34 cd dune-analytics-mcp35 ```36372. **Set Up Environment Variables**:38 Create a `.env` file in the project root:39 ```40 DUNE_API_KEY=your_api_key_here41 ```42 Alternatively, set it as a system environment variable:43 ```bash44 export DUNE_API_KEY="your_api_key_here"45 ```4647## Usage4849### Running the Server5051- **Development Mode**:52 ```bash53 mcp dev main.py54 ```55 This starts the server with hot reloading for development.5657- **Install for Claude Desktop**:58 ```bash59 mcp install main.py --name "Dune Analytics"60 ```61 Installs the server as a service for use with Claude Desktop.6263### Tool Usage64651. **`get_latest_result(query_id)`**66 - **Description**: Retrieves the latest results of a specified Dune query.67 - **Input**: `query_id` (int) - The ID of the Dune query.68 - **Output**: CSV-formatted string of the query results.69 - **Example**:70 ```71 get_latest_result(query_id=4853921)72 ```73742. **`run_query(query_id)`**75 - **Description**: Executes a Dune query and returns the results.76 - **Input**: `query_id` (int) - The ID of the Dune query to run.77 - **Output**: CSV-formatted string of the query results.78 - **Example**:79 ```80 run_query(query_id=1215383)81 ```8283### Example Commands in Claude Desktop8485- "Get latest results for dune query 1215383"86- "Run dune query 1215383"878889## License9091This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.92
Full transparency — inspect the skill content before installing.