Integrations
Supports environment variable configuration for storing API keys and other sensitive information needed to access Dune Analytics.
Optimized for running with the Bun JavaScript runtime, offering improved performance for the MCP server.
Provides access to DEX metrics and token pair liquidity data across Ethereum and other blockchains, enabling AI agents to analyze trading pairs and liquidity information.
Dune Analytics MCP 服务器
模型上下文协议 (MCP) 服务器将 Dune Analytics 数据桥接到 AI 代理,提供对 DEX 指标、特征层算子和 AVS 统计数据以及 Solana 上代币余额的访问。这些工具利用 Dune 提供的预设端点和回显端点。
特征
- 工具:
get_dex_pair_metrics
:获取特定链上给定代币对的基本元数据和统计数据get_token_pairs_liquidity
:查找给定链上具有最高美元流动性的代币对get_svm_token_balances
:获取 Solana 上特定钱包地址的代币余额get_eigenlayer_avs_metrics
:获取特定 AVS 的统计数据get_eigenlayer_operator_metrics
:获取特定 AVS 中所有运算符的统计数据
- 数据格式:所有结果均以结构化 JSON 格式返回,以便于处理
先决条件
- Node.js 16+ 或 Bun 1.0+
- 有效的 Dune Analytics API 密钥(从Dune Analytics获取)
安装
- 克隆存储库:Copy
- 安装依赖项:使用 Bun:或者使用 npm:CopyCopy
- 设置环境变量:根据
.env.example
在项目根目录中创建一个.env
文件:或者,将其设置为系统环境变量:CopyCopy
用法
运行服务器
使用Bun:
使用 npm:
添加到 Claude 桌面版
要与 Claude for Desktop 一起使用,请添加服务器配置:
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
工具使用
get_dex_pair_metrics(chain, token_pair)
- 描述:检索给定令牌对的基本元数据和统计数据
- 输入:
chain
(字符串)- 获取 DEX 统计数据的区块链token_pair
(string) - 获取 DEX 统计数据的代币对
- 输出:包含 DEX 指标的 JSON 对象
get_token_pairs_liquidity(chain)
- 描述:识别给定链上具有最高美元流动性的代币对
- 输入:
chain
(字符串)- 获取 DEX 统计数据的区块链 - 输出:包含顶级令牌对指标的 JSON 对象
get_svm_token_balances(wallet_address)
- 描述:获取 Solana 区块链上特定钱包地址的余额
- 输入:
wallet_address
(字符串)- 获取余额的钱包地址 - 输出:代币余额的 JSON 数组
get_eigenlayer_avs_metrics(avs_name)
- 描述:获取特定 AVS 的统计数据
- 输入:
avs_name
(字符串)-要获取统计数据的 AVS 的名称 - 输出:包含 AVS 指标的 JSON 对象
get_eigenlayer_operator_metrics(avs_name)
- 描述:获取特定 AVS 中所有运营商的统计信息
- 输入:
avs_name
(字符串)- 获取操作员统计信息的 AVS 名称 - 输出:包含操作员指标的 JSON 对象
Claude 桌面版中的示例命令
- “您能告诉我以太坊上‘USDC-WETH’代币对的流动性吗?”
- “向我展示 arbitrum 上流动性最高的代币对”
- “您能绘制一下 EigenDA 运营商的权益分布图吗?”
- “EigenDA AVS 上有多少个质押者”
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
致谢
- Dune Analytics的 API
- 协议规范的模型上下文协议
This server cannot be installed
模型上下文协议服务器将 AI 代理连接到 Dune Analytics 数据,通过结构化工具提供对 DEX 指标、EigenLayer 统计数据和 Solana 代币余额的访问。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that allows AI assistants to interact with Appwrite's API, providing tools to manage databases, users, functions, teams, and other resources within Appwrite projects.Last updated -8436PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that provides AI assistants with structured access to your Logseq knowledge graph, enabling retrieval, searching, analysis, and creation of content within your personal knowledge base.Last updated -19TypeScript
- -securityAlicense-qualityA Model Context Protocol server that provides seamless interaction with Workato's API through custom AI tools, enabling management of recipes, connections, connectors, folders, and activity logs.Last updated -TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.Last updated -462Python