KD

kukapay/defi-yields-mcp

开发工具

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

16 stars 11 forks 质量 60 趋势 21MIT

一个用于AI代理探索DeFi出产机会的MCP服务器,由DefiLlama提供动力.

概览

一个用于AI代理探索DeFi出产机会的MCP服务器,由DefiLlama提供动力. -:get put pools工具从DefiLlama检索DeFi的出产池数据,允许通过链(如Ethereum,Solana)或项目(如Lido,Aave)进行过滤: 分析 产出即时生成定制指令,供AI代理分析产出池数据,重点是APY等关键度量衡,30天平均APY,以及预测. - : 直接用 uvx- defi- lowers- mcp 运行服务器 。 要使用 Claude Desktop 服务器,可以自动安装,也可以手动配置 Claude 桌面配置文件. 定位配置文件 : - : ~/ 图书馆/ 应用程序支持 / Claude/ claude desktop config.json - :% APDATA+Claude desktop config.json - "利多计划三联产池" - "伊特鲁姆分析三联产池" - "索拉纳池的30天APY是什么意思?

概述(AI 翻译)

一个用于AI代理探索DeFi出产机会的MCP服务器,由DefiLlama提供动力.

□ 特性

  • 数据获取工具:get_yield_pools工具从DefiLlama检索DeFi收益池数据,允许通过链(例如Ethereum,Solana)或项目(例如Lido,Aave)进行过滤。
  • ** 分析速报**:analyze_yields 速报为人工智能代理人提供量身定做的指令,以分析产量集合数据,重点是APY、30天平均APY等关键指标和预测。
  • ** Ease包**:用uvx defi-yields-mcp直接运行服务器.

□ 安装

要使用 Claude Desktop 服务器,可以自动安装,也可以手动配置 Claude 桌面配置文件.

备选1:自动安装 为 Claude 桌面安装服务器 :

备选2:手工配置

定位配置文件 :

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • 窗户:%APPDATA%\Claude\claude_desktop_config.json

添加服务器配置 :

重新启动克洛德桌面.

□ 实例

您可以使用命令, 如 :

——“利多项目投产池”.

  • 在伊特鲁姆分析产量池

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

README

DeFi Yields MCP

An MCP server for AI agents to explore DeFi yield opportunities, powered by DefiLlama.

Features

  • Data Fetching Tool: The get_yield_pools tool retrieves DeFi yield pool data from the DefiLlama, allowing filtering by chain (e.g., Ethereum, Solana) or project (e.g., Lido, Aave).
  • Analysis Prompt: The analyze_yields prompt generates tailored instructions for AI agents to analyze yield pool data, focusing on key metrics like APY, 30-day mean APY, and predictions.
  • Packaged for Ease: Run the server directly with uvx defi-yields-mcp.

Installation

To use the server with Claude Desktop, you can either install it automatically or manually configure the Claude Desktop configuration file.

Option 1: Automatic Installation

Install the server for Claude Desktop:

uvx mcp install -m defi_yields_mcp --name "DeFi Yields Server"

Option 2: Manual Configuration

Locate the configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the server configuration:

{
 "mcpServers": {
   "defi-yields-mcp": {
     "command": "uvx",
     "args": [ "defi-yields-mcp" ]
   }
 }
}

Restart Claude Desktop.

Examples

You can use commands like:

  • “Fetch yield pools for the Lido project.”
  • “Analyze yield pools on Ethereum.”
  • “What are the 30-day mean APYs for Solana pools?”

The get_yield_pools tool fetches and filters the data, while the analyze_yields prompt guides the LLM to provide a detailed analysis.

Example Output

Running the get_yield_pools tool with a filter for Ethereum:

[
  {
    "chain": "Ethereum",
    "pool": "STETH",
    "project": "lido",
    "tvlUsd": 14804019222,
    "apy": 2.722,
    "apyMean30d": 3.00669,
    "predictions": {
        "predictedClass": "Stable/Up",
        "predictedProbability": 75,
        "binnedConfidence": 3      
    }
  },
  ...
]

License

This project is licensed under the MIT License. See the LICENSE file for details.

在 GitHub 查看完整 README

安装

uvx defi-yields-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "defi-yields-mcp": { "command": "uvx", "args": [ "defi-yields-mcp" ] } } }