DeFi Yields MCP

DeFi Yields MCP

Explore DeFi yield opportunities via a standardized MCP server for AI agents.

11
Stars
11
Forks
11
Watchers
4
Issues
DeFi Yields MCP is an MCP server that enables AI agents to access and analyze DeFi yield pool data using data provided by DefiLlama. It features a tool to fetch DeFi pool data with filtering by blockchain or project as well as an analysis prompt tailored for large language models to process and assess yield pool metrics, including APY and predictions. The tool is packaged for easy deployment and integrates smoothly with Claude Desktop, supporting both automatic and manual installation. Example outputs and use instructions are provided to help users explore DeFi yields programmatically.

Key Features

MCP server for AI agent integration
Fetches DeFi yield pool data from DefiLlama
Filtering by blockchain chain and project
Analysis prompt for AI-guided data interpretation
Packaged for easy deployment with Claude Desktop
Tooling for both automatic and manual installation
Sample outputs and direct command examples
Focus on APY and 30-day average yield metrics
Yield trend and prediction data included
Open-source and MIT licensed

Use Cases

Automated discovery of top-yield DeFi pools
Comparative analysis of yield opportunities across chains
Providing model-ready data for LLM-based DeFi assistants
Monitoring historical and predicted yield performance
Enabling AI agents to advise on optimal DeFi strategies
Filtering DeFi data for specific projects, like Lido or Aave
Integrating real-time DeFi yield data into AI workflows
Powering dashboards that visualize DeFi yield trends
Supporting research into DeFi risk and return metrics
Facilitating user simulations on DeFi protocol yields

README

DeFi Yields MCP

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

Discord GitHub License Python Version Status

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:

bash
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:

json
{
 "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:

json
[
  {
    "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.

Star History

Star History Chart

Repository Owner

kukapay
kukapay

User

Repository Details

Language Python
Default Branch main
Size 17 KB
Contributors 1
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

Python
100%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • ETF Flow MCP

    ETF Flow MCP

    MCP server for delivering crypto ETF flow data to AI agents.

    ETF Flow MCP provides an MCP-compliant server that supplies historical and up-to-date ETF flow data for cryptocurrencies like BTC and ETH. It enables AI agents or applications to fetch, query, and present ETF data in structured formats, such as markdown tables with pivoted columns and summarized totals. The server integrates with platforms like Claude Desktop for seamless, user-friendly interactions using natural language prompts.

    • 6
    • MCP
    • kukapay/etf-flow-mcp
  • Dune Analytics MCP Server

    Dune Analytics MCP Server

    Bridge Dune Analytics data seamlessly to AI agents via a Model Context Protocol server.

    Dune Analytics MCP Server provides a Model Context Protocol-compliant server that allows AI agents to access and interact with Dune Analytics data. It exposes tools to fetch the latest results of Dune queries and execute arbitrary queries, returning results in CSV format. The server is easily deployable, supports integration with platforms like Claude Desktop, and requires a Dune Analytics API key for operation.

    • 31
    • MCP
    • kukapay/dune-analytics-mcp
  • Hive Intelligence MCP Server

    Hive Intelligence MCP Server

    Unified MCP server delivering advanced cryptocurrency and Web3 analytics.

    Hive Intelligence MCP Server provides comprehensive cryptocurrency, DeFi, and Web3 analytics via the Model Context Protocol. It enables AI assistants to access and orchestrate over 200 specialized tools covering market data, on-chain analytics, portfolio tracking, and security analysis. The server offers both dynamic and category-specific analytics through a unified MCP interface, facilitating intelligent tool orchestration for diverse crypto data needs.

    • 7
    • MCP
    • hive-intel/hive-crypto-mcp
  • Uniswap PoolSpy MCP Server

    Uniswap PoolSpy MCP Server

    Tracks newly created Uniswap V3 liquidity pools across nine blockchain networks in real time.

    Uniswap PoolSpy MCP Server is an MCP-compliant server designed to monitor and provide real-time data on newly created liquidity pools on Uniswap V3 across nine popular blockchain networks, including Ethereum, Base, and Arbitrum. The server allows users to customize their queries by time range, sorting fields, and result limits, making it suitable for DeFi analysis, trading, and development. It integrates directly with MCP environments such as Claude Desktop, supporting seamless plugin installation and natural language queries. The tool leverages The Graph API for fetching on-chain data and offers easy configuration for discovery by client applications.

    • 6
    • MCP
    • kukapay/uniswap-poolspy-mcp
  • Twelve Data MCP Server

    Twelve Data MCP Server

    Seamless AI-powered access to financial market data via the Twelve Data API.

    Twelve Data MCP Server provides a Model Context Protocol-compliant server for integrating and accessing Twelve Data’s financial market API. It enables users and AI agents to retrieve historical data, real-time quotes, and instrument metadata for stocks, forex, and crypto using natural language or endpoint calls. The system leverages AI-driven routing, including OpenAI GPT-4o, to intelligently map plain English queries to relevant API endpoints for structured or conversational workflows. Integration options are available for platforms like Claude Desktop and VS Code, with flexible local or remote deployment.

    • 43
    • MCP
    • twelvedata/mcp
  • Hyperliquid Info MCP Server

    Hyperliquid Info MCP Server

    Real-time Hyperliquid perp DEX data and analytics via MCP.

    Provides an MCP-compliant server interface for accessing real-time user and market data from the Hyperliquid perpetual DEX. Enables bots, dashboards, and analytics platforms to query user positions, trading history, order books, and funding details seamlessly. Designed for integration with platforms like Claude Desktop and supports ISO 8601 time filtering.

    • 23
    • MCP
    • kukapay/hyperliquid-info-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results