MCP Server for DefiLlama について
MCP Server for DefiLlama は、DefiLlama API の DeFi データを Claude から照会できるサーバーです。プロトコル、チェーン、トークン価格、ステーブルコインの情報を調べたい利用者向けです。
主な機能
- 01追跡対象プロトコルの一覧
- 02プロトコルの TVL 取得
- 03チェーンの TVL 取得
- 04トークンの現在・過去価格の照会
- 05ステーブルコインの一覧とデータ取得
活用シーン
- 01プロトコルの TVL 確認
- 02チェーンの TVL 確認
- 03トークン価格の推移確認
- 04ステーブルコイン情報の確認
MCP 対応
プロトコル、チェーン、トークン、ステーブルコインを照会するツールを通じて、DefiLlama API のデータを MCP クライアントに提供します。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
ツール
ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。
詳細
DefiLlama 用 MCP サーバー
このリポジトリには、DefiLlama API を介して Claude が DeFi データにアクセスできるようにする Model Context Protocol(MCP)サーバーが含まれています。このサーバーを使うと、Claude はプロトコルの TVL データ、チェーンの TVL データ、トークン価格、ステーブルコイン情報の取得などの操作を実行できます。
概要
MCP サーバーは、Claude に次のツールを公開します。
プロトコルデータ
defillama_get_protocols:DefiLlama が追跡するすべてのプロトコルを一覧表示しますdefillama_get_protocol_tvl:特定のプロトコルの TVL データを取得します
チェーンデータ
defillama_get_chain_tvl:特定のチェーンの TVL データを取得します
トークンデータ
defillama_get_token_prices:トークンの現在の価格を取得しますdefillama_get_historical_prices:トークンの過去の価格を取得します
ステーブルコインデータ
defillama_get_stablecoins:DefiLlama が追跡するすべてのステーブルコインを一覧表示しますdefillama_get_stablecoin_data:特定のステーブルコインのデータを取得します
前提条件
- Node.js(v16 以降)
サーバーの実行
オプション 1:npx を使用(推奨)
npx @mcp-dockmaster/mcp-server-defillama
You can run the MCP server directly without installation using npx:
This will download and execute the server directly from npm.
Option 2: Manual Installation
Clone this repository:
git clone https://github.com/mcp-dockmaster/mcp-server-defillama.git
Install dependencies:
npm install
Build the project:
npm run build
Claude Usage
To configure Claude Desktop to use this MCP server:
Open Claude Desktop, and navigate to Settings>Developer Settings>MCP Servers. There you'll encounter the button to open the configuration JSON file.
Add the MCP server configuration:
{
"mcpServers": {
"mcp-server-defillama": {
"command": "npx",
"args": [
"@mcp-dockmaster/mcp-server-defillama"
]
}
}
}
パッケージをローカルにインストールした場合は、次の方法も使用できます。
{
"mcpServers": {
"mcp-server-defillama": {
"command": "node",
"args": [
"/path/to/your/mcp-server-defillama/build/index.js"
]
}
}
}
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。