Dune Analytics MCP Server

by ekailabs
MIT License
  • Apple

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获取)

安装

  1. 克隆存储库
    git clone https://github.com/ekailabs/dune-mcp-server.git cd dune-mcp-server
  2. 安装依赖项:使用 Bun:
    bun install
    或者使用 npm:
    npm install
  3. 设置环境变量:根据.env.example在项目根目录中创建一个.env文件:
    DUNE_API_KEY=your_api_key_here
    或者,将其设置为系统环境变量:
    export DUNE_API_KEY="your_api_key_here"

用法

运行服务器

使用Bun:

# Development mode with hot reload bun dev # Production mode bun start # Or build and run bun build src/index.ts --outdir dist bun dist/index.js

使用 npm:

# Development mode with hot reload npm run dev # Production mode npm start # Or build and run npm run build npm run start:prod

添加到 Claude 桌面版

要与 Claude for Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "dune": { "command": "bun", "args": [ "/ABSOLUTE/PATH/TO/dune-mcp-server/src/index.ts", "stdio" ] } } }

工具使用

  1. get_dex_pair_metrics(chain, token_pair)
    • 描述:检索给定令牌对的基本元数据和统计数据
    • 输入
      • chain (字符串)- 获取 DEX 统计数据的区块链
      • token_pair (string) - 获取 DEX 统计数据的代币对
    • 输出:包含 DEX 指标的 JSON 对象
  2. get_token_pairs_liquidity(chain)
    • 描述:识别给定链上具有最高美元流动性的代币对
    • 输入chain (字符串)- 获取 DEX 统计数据的区块链
    • 输出:包含顶级令牌对指标的 JSON 对象
  3. get_svm_token_balances(wallet_address)
    • 描述:获取 Solana 区块链上特定钱包地址的余额
    • 输入wallet_address (字符串)- 获取余额的钱包地址
    • 输出:代币余额的 JSON 数组
  4. get_eigenlayer_avs_metrics(avs_name)
    • 描述:获取特定 AVS 的统计数据
    • 输入avs_name (字符串)-要获取统计数据的 AVS 的名称
    • 输出:包含 AVS 指标的 JSON 对象
  5. get_eigenlayer_operator_metrics(avs_name)
    • 描述:获取特定 AVS 中所有运营商的统计信息
    • 输入avs_name (字符串)- 获取操作员统计信息的 AVS 名称
    • 输出:包含操作员指标的 JSON 对象

Claude 桌面版中的示例命令

  • “您能告诉我以太坊上‘USDC-WETH’代币对的流动性吗?”
  • “向我展示 arbitrum 上流动性最高的代币对”
  • “您能绘制一下 EigenDA 运营商的权益分布图吗?”
  • “EigenDA AVS 上有多少个质押者”

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

致谢

-
security - not tested
A
license - permissive license
-
quality - not tested

模型上下文协议服务器将 AI 代理连接到 Dune Analytics 数据,通过结构化工具提供对 DEX 指标、EigenLayer 统计数据和 Solana 代币余额的访问。

  1. 特征
    1. 先决条件
      1. 安装
        1. 用法
          1. 运行服务器
          2. 添加到 Claude 桌面版
          3. 工具使用
          4. Claude 桌面版中的示例命令
        2. 执照
          1. 致谢

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A 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 -
              84
              36
              Python
              MIT License
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A 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 -
              19
              TypeScript
              • Apple
            • -
              security
              A
              license
              -
              quality
              A 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 -
              TypeScript
              MIT License
              • Apple
              • Linux
            • -
              security
              F
              license
              -
              quality
              A 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 -
              46
              2
              Python
              • Linux
              • Apple

            View all related MCP servers

            ID: xbukfictk0