Overview
What is Dune Analytics MCP Server?
A Model Context Protocol (MCP) server that bridges Dune Analytics data to AI agents, providing access to DEX metrics, EigenLayer operators and AVS stats, and token balances on Solana using Dune’s preset and echo endpoints.
How to use Dune Analytics MCP Server?
Clone the repository, install dependencies (Bun or npm), set the DUNE_API_KEY environment variable, then run the server with bun dev or npm run dev. Add the server configuration to Claude for Desktop’s claude_desktop_config.json to start using the tools via natural language.
Key features of Dune Analytics MCP Server
get_dex_pair_metrics: Retrieve metadata and stats for a token pair on a chainget_token_pairs_liquidity: Find the token pair with highest USD liquidity on a chainget_svm_token_balances: Get token balances for a Solana wallet addressget_eigenlayer_avs_metrics: Get statistics for a specific AVSget_eigenlayer_operator_metrics: Get statistics for all operators in a specific AVS- All results returned in structured JSON format
Use cases of Dune Analytics MCP Server
- Query DEX pair metrics on Ethereum, Arbitrum, or other supported chains
- Identify the highest-liquidity token pair on a given blockchain
- Check token balances of a Solana wallet
- Analyze AVS staking and operator distribution for EigenLayer
- Integrate Dune Analytics data into AI agent workflows via natural language
FAQ from Dune Analytics MCP Server
What runtime and dependencies are required?
Node.js 16+ or Bun 1.0+ is required, along with a valid Dune Analytics API key.
Where does the server fetch data from?
All data is retrieved from Dune Analytics’ API using its preset and echo endpoints.
How is the server configured for use with Claude for Desktop?
Add an entry to claude_desktop_config.json (MacOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%/Claude/) specifying the bun command and the absolute path to src/index.ts with the stdio argument.