DeFi Yields MCP is an MCP server designed specifically for AI agents, aiming to help AI agents explore DeFi yield opportunities. It is powered by data from DefiLlama.
Purpose
The server enables AI agents to retrieve and analyze DeFi yield pool data, thereby assisting in the discovery of potential yield opportunities.
Key Capabilities
- Data Retrieval Tool: The get_yield_pools tool retrieves DeFi yield pool data from DefiLlama, supporting filtering by chain (e.g., Ethereum, Solana) or project (e.g., Lido, Aave).
- Analysis Prompt: The analyze_yields prompt generates customized instructions for AI agents to analyze yield pool data, focusing on key metrics such as APY, 30-day average APY, and predictions.
- Packaging Convenience: The server can be run directly via uvx defi-yields-mcp.
Usage
To use it 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.
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.
- Restart Claude Desktop.
You can then use commands such as:
- "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 is responsible for retrieving and filtering data, while the analyze_yields prompt guides the LLM to provide detailed analysis.
For example, run get_yield_pools tool and filter Ethereum.
License
This project is licensed under the MIT License. For details, please refer to the LICENSE file.