Integrations
Enables configuration through environment variables for API access and server settings, particularly for storing the Dune Analytics API key.
Provides a web interface and REST API endpoints as an alternative to the MCP service, allowing access to Dune Analytics data through HTTP requests.
Used for source code management and enables contribution to the project through a structured branching workflow.
デューンクエリMCP
モデル制御プロトコル (MCP) を介して Dune Analytics データをインテリジェント エージェントに接続する最新のブリッジ。
概要
dune-query-mcpは、ブロックチェーンデータ分析をAIアプリケーションにシームレスに統合することを可能にします。Dune Analyticsの強力なクエリ機能とモデル制御プロトコルを活用することで、LLMやその他のAIシステムは、シンプルな自然言語によるインタラクションを通じてオンチェーンデータにアクセスできるようになります。
コア機能
データ取得ツール
道具 | 説明 | 使用事例 |
---|---|---|
get_latest_result | 事前に計算されたクエリ結果を取得します | 既存データへのクイックアクセス |
run_query | オンデマンドでクエリを実行する | リアルタイムデータ分析 |
データ形式
すべてのデータは CSV 形式で返され、次の情報が提供されます。
- ユニバーサルな互換性
- ほとんどのデータ分析ツールで簡単に解析可能
- 人間が読める出力
はじめる
システム要件
- Python 3.10以上
- 有効な Dune Analytics API キー (こちらから取得してください)
クイックセットアップ
- クローンとナビゲートCopy
- 環境設定Copy
- APIアクセスを構成するCopy
使用法
サービスの実行
dune-query-mcp には、次の 2 つの実行方法があります。
MCPサービスとして
これにより、デフォルトのポート 8000 で MCP サービスが開始されます。
Webサーバーとして
これにより、Web インターフェースと REST API エンドポイントへのアクセスが提供されます。
アプリケーションとの統合
MCPクライアント統合
REST API
終点 | 方法 | 説明 |
---|---|---|
/dune/health | 得る | サービスヘルスチェック |
/dune/query/{query_id}/latest | 得る | 最新の結果を取得 |
/dune/query/{query_id}/execute | 役職 | クエリを実行する |
REST呼び出しの例:
建築
詳細設定
環境変数
変数 | 目的 | デフォルト |
---|---|---|
DUNE_API_KEY | Dune API の認証 | なし(必須) |
ポート | サーバーポート | 8000 |
パフォーマンスチューニング
大量のクエリ実行の場合:
トラブルシューティング
よくある問題と解決策:
問題 | 解決 |
---|---|
APIキーエラー | 有効なキーを持つ.env ファイルが存在することを確認する |
タイムアウトエラー | 複雑なクエリのタイムアウトを増やす |
CSV解析の問題 | クエリが適切な表形式データを返すかどうかを確認します |
貢献
貢献を歓迎します!以下の手順に従ってください。
- リポジトリをフォークする
- 機能ブランチを作成する:
git checkout -b feature/amazing-feature
- 変更をコミットします:
git commit -am 'Add some amazing feature'
- ブランチにプッシュ:
git push origin feature/amazing-feature
- プルリクエストを開く
ライセンス
このプロジェクトはMITライセンスの下で公開されています。詳細はLICENSE
ファイルをご覧ください。
謝辞
- FastMCPで構築
- Dune Analyticsによるクエリ機能
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
モデル制御プロトコルを介して Dune Analytics ブロックチェーン データを AI アプリケーションに接続するブリッジ。これにより、LLM は自然言語による対話を通じてオンチェーン データにアクセスできるようになります。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.Last updated -JavaScript
- AsecurityFlicenseAqualityImplements the Model Context Protocol to allow AI models to access and interact with blockchain data, including reading contract states, retrieving events, and accessing transaction information across various networks.Last updated -104530TypeScript
Hashkey MCP Serverofficial
-security-license-qualityA Model Context Protocol server that provides onchain tools for AI applications to interact with the Hashkey Network, enabling cryptocurrency transfers, smart contract deployment, and blockchain interactions.Last updated -TypeScriptMIT License- -securityFlicense-qualityA Solana blockchain interaction server that allows AI tools to query blockchain data using natural language, access structured token information, and generate human-readable explanations of complex blockchain concepts.Last updated -7Python