The Dune Analytics MCP Server provides AI assistants with direct access to blockchain data through the Dune Analytics API. Built with Python using the FastMCP framework, it offers two key tools: retrieving the latest results from existing Dune queries and executing queries on demand, with all results returned in CSV format for easy processing. The server requires a Dune Analytics API key for authentication and includes robust error handling for API requests. This implementation is particularly valuable for workflows requiring real-time blockchain analytics within AI assistant conversations, allowing users to access on-chain data and metrics without leaving their conversation interface.
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.
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.
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!