DM

dcspark/mcp-server-defillama

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

9 stars 6 forks 质量 60 趋势 7MIT

这个寄存器包含一个模式上下文协议(MCP)服务器,通过DefiLlama API为克洛德提供DeFi数据的访问权限.

概览

这个寄存器包含一个模式上下文协议(MCP)服务器,通过DefiLlama API为克洛德提供DeFi数据的访问权限. 该服务器使克洛德能够执行诸如检索协议TVL数据,链式TVL数据,信使价格,和稳定币信息等操作. MCP服务器向克洛德披露了以下工具: - defillama get protocols:列出DefiLlama跟踪的所有协议 - defillama get protocol tvl:为特定协议获取TVL数据 - defillama get chain tvl:为特定链获取 TVL 数据 - defillama get token p价:获取当期地物价 - defillama get historical p价:获取历史地物价 - defillama get stablecoins:列出DefiLlama所跟踪的所有稳定币 - defillama get stablecoin data:获取特定稳定币的数据 您可以使用 npx 直接运行 MCP 服务器 : 这将直接从 npm 下载并执行服务器 。 要配置使用 MCP 服务器的 Claude 桌面 :

概述(AI 翻译)

这个寄存器包含一个模式上下文协议(MCP)服务器,通过DefiLlama API为克洛德提供DeFi数据的访问权限. 该服务器使克洛德能够执行诸如检索协议TVL数据,链式TVL数据,信使价格,和稳定币信息等操作.

□ 概览

MCP服务器向克洛德披露了以下工具:

协议数据

  • [[T0]: 列出DefiLlama跟踪的所有协议
  • [[T1]: 为特定协议获取 TVL 数据

QQ 链数据

  • [[T2]: 为特定链获取 TVL 数据

数据

  • [[T3]: 获取当期令牌价格
  • [[T4]: 获得历史上的令牌价格

稳定币数据

  • [[T5]: 列出DefiLlama跟踪的所有马厩
  • [[T6]: 获取特定稳定币的数据

先决条件

  • 节点js(v16或以上)

□ 运行服务器

备选1:使用npx(建议)

您可以使用 npx 直接运行 MCP 服务器 : 这将直接从 npm 下载并执行服务器 。

备选2:手工安装 克隆此寄存器 :

本页由 AI 翻译,技术细节请以原文为准。

README

MCP Server for DefiLlama

This repository contains a Model Context Protocol (MCP) server that provides Claude with access to DeFi data via the DefiLlama API. The server enables Claude to perform operations like retrieving protocol TVL data, chain TVL data, token prices, and stablecoin information.

Overview

The MCP server exposes the following tools to Claude:

Protocol Data

  • defillama_get_protocols: List all protocols tracked by DefiLlama
  • defillama_get_protocol_tvl: Get TVL data for a specific protocol

Chain Data

  • defillama_get_chain_tvl: Get TVL data for a specific chain

Token Data

  • defillama_get_token_prices: Get current prices of tokens
  • defillama_get_historical_prices: Get historical prices of tokens

Stablecoin Data

  • defillama_get_stablecoins: List all stablecoins tracked by DefiLlama
  • defillama_get_stablecoin_data: Get data for a specific stablecoin

Prerequisites

  • Node.js (v16 or higher)

Running the server

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"
      ]
    }
  }
}

Alternatively, if you installed the package locally:

{
  "mcpServers": {
    "mcp-server-defillama": {
      "command": "node",
      "args": [
        "/path/to/your/mcp-server-defillama/build/index.js"
      ]
    }
  }
}
在 GitHub 查看完整 README

安装

npx @mcp-dockmaster/mcp-server-defillama
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp-server-defillama": { "command": "npx", "args": [ "@mcp-dockmaster/mcp-server-defillama" ] } } }