Add your description here
Project description
DeFi Yields MCP
An MCP server for AI agents to explore DeFi yield opportunities, powered by DefiLlama.
Features
- Data Fetching Tool: The
get_yield_poolstool 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_yieldsprompt 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file defi_yields_mcp-0.1.0.tar.gz.
File metadata
- Download URL: defi_yields_mcp-0.1.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b96dbc300c5bd73fccc68b015630950624f72a04027d8f142cd4a1392f35fc58
|
|
| MD5 |
951198ad6f62635b136ac60a6abd1387
|
|
| BLAKE2b-256 |
bedb5fa09b7bd6f965e792d5b145c93fff180cf02c0158c8c475adef709484f0
|
File details
Details for the file defi_yields_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: defi_yields_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3982ab6c23277040db4e19fb8312716e8b9fa83795fd067ddd0e22607909b314
|
|
| MD5 |
77c4a9eb46806867ec0074ff52e89e8f
|
|
| BLAKE2b-256 |
922969fc76385ca46cc4dcfaed3af2db900d545da89ca070fa988a541e8be666
|