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.
kukapay