Dune MCP Server
平台与服务by demomagic
提供集成Model Context Protocol的server实现,为LLM应用暴露tools、resources与prompts,并通过标准JSON-RPC与外部数据及操作交互。
什么是 Dune MCP Server?
提供集成Model Context Protocol的server实现,为LLM应用暴露tools、resources与prompts,并通过标准JSON-RPC与外部数据及操作交互。
README
Dune Analytics MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to Dune Analytics data through various specialized tools for blockchain analytics and DeFi insights.
Features
This MCP server offers six powerful tools for accessing and analyzing Dune Analytics data:
1. get_latest_result
Get the latest results for a specific query ID as a CSV string on Dune Analytics.
Parameters:
query_id(number): Dune query IDlimit(number, optional): Limit the number of results returned (default: 100)
2. run_query
Run a query by ID and return results as a CSV string on Dune Analytics. This tool executes the query and waits for completion before returning results.
Parameters:
query_id(number): Dune query IDlimit(number, optional): Limit the number of results returned (default: 100)
3. get_chainlink_revenue
Get comprehensive Chainlink revenue data including cumulative revenue, product-wise income, and financial metrics. This tool aggregates data from multiple Dune Analytics queries to provide insights into Chainlink's revenue streams across different products like Feeds, VRF (Verifiable Random Function), CCIP (Cross-Chain Interoperability Protocol), and Automation. The data covers revenue periods from October 2020 to July 2024, showing total product revenue breakdown and cumulative income trends.
Parameters:
limit(number, optional): Limit the number of results returned per query (default: 100)
4. get_pumpfun_data
Get comprehensive Pump.fun platform data including top token creators, active wallets, address distribution, and trader rankings. This tool aggregates data from multiple Dune Analytics queries to provide insights into Pump.fun's ecosystem metrics. The data includes top token creators with metrics like token creation count, graduated tokens, graduation rate, and daily token numbers. It also covers active Pump.fun wallets ranked by realized profits over the past 30 days, total Pumpfun and PumpSwap addresses with volume distribution (excluding bots), and PumpFun trader leaderboards showing wallet addresses, transaction counts, active days, total volume, and rankings with distinction between including and excluding high-frequency bots.
Parameters:
limit(number, optional): Limit the number of results returned per query (default: 100)
5. get_solana_memecoin_data
Get comprehensive Solana memecoin launch platform ecosystem data including platform performance metrics, daily statistics, and trending tokens. This tool aggregates data from multiple Dune Analytics queries to provide insights into various Solana memecoin launch platforms like Pump.fun, LaunchLab, Moonshot, Believe, LetsBonk, and Boop. The data includes platform statistics such as launched token counts, active addresses, and graduated token numbers. It also covers performance metrics like daily active addresses, daily graduated tokens, market share, and daily deployed token counts. Additionally, it provides trending tokens from the past 24 hours and 7 days with detailed tables showing market cap and launch platforms, highlighting top performers like 'sdmtinggi' and 'INFERNO' on Pump.fun. The tool also includes platform descriptions and independent dashboard links for featured launch platforms.
Parameters:
limit(number, optional): Limit the number of results returned per query (default: 100)
6. get_dex_trading_data
Get comprehensive DEX (Decentralized Exchange) trading data including volume metrics, unique trading addresses, market share analysis, and platform rankings. This tool aggregates data from multiple Dune Analytics queries to provide insights into DEX trading volumes across different time periods (24 hours, 7 days, 30 days, and 12 months), with total 12-month volume reaching $2.7 trillion. It covers unique trading addresses exceeding 210 million total addresses. The data includes market share analysis by trading volume for DEXs, frontend market share, and Solana DEX trading volume. It also provides DEX and aggregator rankings based on 7-day and 24-hour trading volumes, with Pancakeswap leading among DEXs and 1inch topping the aggregator rankings. The tool explains the methodology used for calculating USD trading volumes and trader counts, noting that some trading volume may be omitted for uncommon tokens and proxy contract interactions are counted as single traders.
Parameters:
limit(number, optional): Limit the number of results returned per query (default: 100)
Installation
- Clone the repository:
git clone <repository-url>
cd donut-dune-mcp-server
- Install dependencies:
npm install
- Set up environment variables:
Create a
.envfile in the root directory and add your Dune API key:
DUNE_API_KEY=your_dune_api_key_here
Configuration
The server requires the following configuration parameters:
DUNE_API_KEY(required): Your Dune API key from https://dune.com/docs/api/BASE_URL(optional): Dune API base URL (default: https://api.dune.com/api/v1)debug(optional): Enable debug logging (default: false)
Data Sources
This MCP server aggregates data from various Dune Analytics queries covering:
- Chainlink Revenue: 11 queries covering revenue streams and financial metrics
- Pump.fun Platform: 5 queries covering token creators, wallets, and trader rankings
- Solana Memecoin Platforms: 24 queries covering launch platforms and ecosystem metrics
- DEX Trading: 20 queries covering trading volumes, market shares, and platform rankings
API Endpoints
All tools return data in CSV format for easy integration and analysis. The server handles:
- Rate limiting and timeout management (5-minute timeouts)
- Error handling for individual query failures
- Data aggregation and CSV conversion
- Comprehensive logging for debugging
常见问题
Dune MCP Server 是什么?
提供集成Model Context Protocol的server实现,为LLM应用暴露tools、resources与prompts,并通过标准JSON-RPC与外部数据及操作交互。
相关 Skills
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
邮件模板
by alirezarezvani
快速搭建生产可用的事务邮件系统:生成 React Email/MJML 模板,接入 Resend、Postmark、SendGrid 或 AWS SES,并支持本地预览、i18n、暗色模式、反垃圾优化与追踪埋点。
✎ 面向营销与服务场景,快速搭建高质量邮件模板,省去反复设计与切图成本,成熟度和社区认可都很高。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。