Skip to main content
Glama

AAVE MCP

An MCP server that tracks real-time lending markets on Aave, enabling smart DeFi agents to build automated yield and risk strategies..

GitHub License Python Version Status

Features

  • Tools:

    • Query reserve data (e.g., total liquidity, variable borrow rate).

    • Retrieve user account details (e.g., collateral, debt).

    • Analyze liquidity for specific assets (e.g., USDC, DAI).

    • Placeholder for health factor (extendable with contract calls).

  • Prompt System: Guides LLMs to assess user account risk based on health factor and account data.

Related MCP server: DeFi Rates MCP Server

Installation

Prerequisites

  • Python 3.10 or higher

  • uv for dependency management

  • A The Graph API key (sign up at The Graph)

Steps

  1. Clone the Repository:

    git clone https://github.com/kukapay/aave-mcp.git
    cd aave-mcp
  2. Install dependencies:

    uv sync
  3. Installing to Claude Desktop:

    Install the server as a Claude Desktop application:

    uv run mcp install main.py --name "aave-mcp"

    Configuration file as a reference:

    {
       "mcpServers": {
           "aave-mcp": {
               "command": "uv",
               "args": [ "--directory", "/path/to/aave-mcp", "run", "main.py" ],
               "env": { "THEGRAPH_API_KEY": "the_graph_api_key"}               
           }
       }
    }

    Replace /path/to/aave-mcp with your actual installation path, and the_graph_api_key with your API key from The Graph.

Tools

The server provides the following tools:

Tool Name

Description

Parameters

get_reserves

Queries AAVE V3 reserve data (e.g., liquidity, borrow rates).

get_user_data

Retrieves user account data (e.g., collateral, debt).

user_address: str - Ethereum address.

get_user_health_factor

Placeholder for user health factor (extend with contract call).

user_address: str - Ethereum address.

analyze_liquidity

Analyzes liquidity for a reserve asset (e.g., USDC).

symbol: str - Asset symbol.

Additionally, the analyze_user_risk prompt guides LLMs to assess user risk based on health factor and account data.

License

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to analyze Aave V3 positions on Ethereum, monitor health factors, identify liquidation opportunities, and query protocol data including collateral positions, debt composition, and real-time asset prices.
      8
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides AI assistants with access to real-time DeFi lending rates and yield data across 14+ protocols and multiple blockchains. Enables querying borrow/supply rates, comparing platforms, calculating leverage strategies, and finding best earn opportunities.
      6
      26 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to query live on-chain data from The Graph's decentralized network with built-in verification and computed risk insights for Uniswap V3 pools, such as swap counts, directional flow, and concentration signals.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents and quantitative traders to query block-accurate DeFi telemetry across Morpho Blue, Ethena, Fluid, Sky, Euler V2, and Pendle V2, including stablecoin carry/arbitrage radar and pre-trade risk simulation. It provides atomic Multicall3 reads, post-trade utilization and APY slippage checks, cap headroom decoding, and Pendle TWAP/logit-curve analysis through REST and MCP-compatible endpoints.
      7
      2
      MIT