defi-yield-mcp
MCP server for cross-protocol DeFi yield opportunities with risk metrics via DefiLlama. 16,000+ pools, 60+ chains.
Documentation
DeFi Yield Aggregator MCP Server
Cross-protocol DeFi yield opportunities with risk metrics, powered by DefiLlama. 16,000+ pools across 60+ chains.
Install
pip install defi-yield-mcpClaude Desktop
{
"mcpServers": {
"defi-yield": {
"command": "python",
"args": ["-m", "defi_yield_mcp"]
}
}
}Then ask: *"What are the best stablecoin yields on Ethereum right now?"*
Tools
| Tool | Description |
|---|---|
| `get_top_yields(chain, min_tvl, stablecoins_only, max_risk, limit)` | Find best yield opportunities with risk filtering |
| `get_pool_risk(pool_id, project, symbol)` | Deep risk analysis: IL, audit status, APY trends, predictions |
| `compare_yields(amount, chains, stablecoins_only)` | Project earnings across top pools for a deposit amount |
| `get_chains()` | List all chains with pool counts and top yields |
Risk Tiers
Every pool is classified into a risk tier:
| Tier | Criteria |
|---|---|
| LOW | High TVL, no IL, stablecoin, audited protocol |
| MEDIUM | Moderate TVL, some IL risk, established protocol |
| HIGH | Lower TVL, IL risk, high APY, less established |
| EXTREME | Very low TVL or APY > 1000% — likely unsustainable |
Example
> get_top_yields(chain="Polygon", stablecoins_only=True, min_tvl=1000000)
# Top DeFi Yields — Polygon
Filters: TVL ≥ $1,000,000 | Risk ≤ HIGH | Stablecoins only
1. **aave-v3/USDC** on Polygon [LOW]
APY: 4.82% (base: 3.21% + reward: 1.61%) | 7d trend: +0.3% | Outlook: Stable/Up
TVL: $125,432,891 | IL risk: no | stablecoinData Source
All data from DefiLlama (free, public, no API key). Updated every 5 minutes.
License
MIT
Frequently asked questions
What is defi-yield-mcp?
defi-yield-mcp is MCP server for cross-protocol DeFi yield opportunities with risk metrics via DefiLlama. 16,000+ pools, 60+ chains.
How do I install defi-yield-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is defi-yield-mcp open source?
Yes — it is hosted on GitHub at https://github.com/RJW34/defi-yield-mcp.
Related MCP tools
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Automate browser based workflows with AI
Hindsight: Agent Memory That Learns
A privacy-first app that strips AI watermarks from content you own.
Agent framework and applications built upon Qwen>=3.0, featuring Function Calling, MCP, Code Interpreter, RAG, Chrome extension, etc.
The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP