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 サーバー

Dune AnalyticsデータをAIエージェントに橋渡しするモデルコンテキストプロトコル(MCP)サーバー。DEXメトリクス、EigenLayerオペレーター、AVS統計、Solana上のトークン残高へのアクセスを提供します。ツールは、Duneが提供するプリセットエンドポイントとエコーエンドポイントを利用します。

特徴

  • ツール:
    • get_dex_pair_metrics : 特定のチェーン上の特定のトークンペアの重要なメタデータと統計データを取得します。
    • get_token_pairs_liquidity : 指定されたチェーン上で最も高いUSD流動性を持つトークンペアを見つける
    • 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 (文字列) - DEX統計を取得するトークンペア
    • 出力: DEX メトリックを含む JSON オブジェクト
  2. get_token_pairs_liquidity(chain)
    • 説明: 特定のチェーン上で最も高いUSD流動性を持つトークンペアを識別します
    • 入力: 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 for Desktop のコマンド例

  • 「イーサリアム上の「USDC-WETH」トークンペアの流動性を教えてください。」
  • 「アービトラムで最も流動性の高いトークンペアを教えてください」
  • 「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 for Desktop のコマンド例
        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