Graph AAVE MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "GRAPH_API_KEY=${GRAPH_API_KEY}" graph-aave -- npx -y graph-aave-mcp
Required:GRAPH_API_KEY
README.md

Query AAVE V2/V3 lending protocol and governance data via The Graph subgraphs

graph-aave-mcp

MCP server for querying AAVE V2/V3 lending protocol and governance data via The Graph subgraphs.

Exposes 14 tools and 5 guided prompts that any AI agent (Claude, Cursor, Copilot, etc.) can use to query lending markets, user positions, health factors, liquidations, flash loans, rate history, and AAVE governance — across 7 chains (Ethereum, Base, Arbitrum, Polygon, Optimism, Avalanche, Fantom) via 11 subgraphs covering both V2 and V3 deployments plus AAVE Governance V3.

Published to the MCP Registry as io.github.PaulieB14/graph-aave-mcp

Supported Chains & Subgraphs

7 chains, 11 subgraphs — some chains have both V2 (legacy) and V3 deployments tracked separately.

Chain Version Deployment ID
Ethereum V3 QmX2VfvEspbShTdcjefWeG3CKBVXKWm9naxH6TVhqPb9qY
Ethereum V2 QmdEuhCPTFx5q1Vf7jPQDVGQDpC34KYry82yb3NPc9sK6a
Base V3 QmXZ53Kzz3L2LvvbGve2ebtLKWMhjjB1a3U2jnUj2YwGCW
Arbitrum V3 Qmdn5hAZZj3wmWVuksXHtua3E6aWftCDeTFcW8YQ8Lu6pB
Polygon V3 QmceoHP3ekxJ6JYqAXhqrVgv8rb9WXumrGe1ZhVZah8Ar5
Polygon V2 QmNfojj4Wu1DErB9iC6epPZc4K2zQCrm4KJUra3DMQqSNm
Optimism V3 QmScPH3aFxzFgrie8MMDU4QtFu3CE7nTfsRfSQXiccxBPh
Avalanche V3 QmXhWmYZyEr8PGEic8F739wVqvMYxHLD7jke69RXmwQU95
Avalanche V2 QmdDSA73QkFAvRZqtRoHgLvxonuSZTuJhoWkmBtEdVuTmz
Ethereum Governance V3 QmRyQo7xz4P3WvthdVzfkhwSzfwa8Uku1qrcyJCAN6RAWS
Fantom V3 QmNTzi2eFS2boHFFY372xrxGHNM8yPjF26H3eUxWTtnvoA

Prerequisites

You need a free Graph API key (takes ~2 minutes):

  1. Go to The Graph Studio
  2. Connect your wallet (MetaMask, WalletConnect, etc.)
  3. Click "API Keys" in the sidebar and create one
  4. Free tier includes 100,000 queries/month

Installation

npm install -g graph-aave-mcp

Or use directly with npx (no install needed):

GRAPH_API_KEY=your-key npx graph-aave-mcp

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "graph-aave": {
      "command": "npx",
      "args": ["-y", "graph-aave-mcp"],
      "env": {
        "GRAPH_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code (CLI)

claude mcp add graph-aave -- npx -y graph-aave-mcp

Then set the environment variable:

export GRAPH_API_KEY=your-api-key-here

Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{
  "mcpServers": {
    "graph-aave": {
      "command": "npx",
      "args": ["-y", "graph-aave-mcp"],
      "env": {
        "GRAPH_API_KEY": "your-api-key-here"
      }
    }
  }
}

Other MCP Clients

Use stdio transport with npx graph-aave-mcp as the command and GRAPH_API_KEY as an environment variable.

Available Tools

Discovery

Tool Description
list_aave_chains List all supported AAVE chains with subgraph IDs, versions, and 30-day query volumes
get_aave_schema Full GraphQL schema introspection for any chain's subgraph

Lending Markets

Tool Description
get_aave_reserves All active lending markets on a chain — TVL, supply APY, borrow APY, LTV, liquidation thresholds
get_aave_reserve Deep detail on one asset: lifetime stats, full config, token addresses
get_reserve_rate_history Historical snapshots of APY, utilization rate, and TVL over time

User Positions

Tool Description
get_aave_user_position Wallet's supplied assets, borrowed assets, collateral flags, and e-mode category
simulate_health_factor Simulate how a price change affects a user's health factor — e.g. "ETH drops 20%"

Protocol Events

Tool Description
get_recent_borrows Recent borrow events — filterable by user address or asset symbol
get_recent_supplies Recent supply/deposit events (handles V2 deposit vs V3

Tools (9)

list_aave_chainsList all supported AAVE chains with subgraph IDs, versions, and 30-day query volumes
get_aave_schemaFull GraphQL schema introspection for any chain's subgraph
get_aave_reservesAll active lending markets on a chain including TVL, supply APY, borrow APY, LTV, and liquidation thresholds
get_aave_reserveDeep detail on one asset including lifetime stats, full config, and token addresses
get_reserve_rate_historyHistorical snapshots of APY, utilization rate, and TVL over time
get_aave_user_positionRetrieve a wallet's supplied assets, borrowed assets, collateral flags, and e-mode category
simulate_health_factorSimulate how a price change affects a user's health factor
get_recent_borrowsRecent borrow events filterable by user address or asset symbol
get_recent_suppliesRecent supply/deposit events

Environment Variables

GRAPH_API_KEYrequiredAPI key from The Graph Studio

Configuration

claude_desktop_config.json
{"mcpServers": {"graph-aave": {"command": "npx", "args": ["-y", "graph-aave-mcp"], "env": {"GRAPH_API_KEY": "your-api-key-here"}}}}

Try it

What are the current supply and borrow APYs for USDC on AAVE V3 on Ethereum?
Check the health factor of my wallet address 0x123... on Arbitrum.
Simulate what happens to my health factor if ETH drops by 20%.
List all active lending markets on Polygon V3.
Show me the recent borrow history for the AAVE token on Ethereum.

Frequently Asked Questions

What are the key features of Graph AAVE MCP?

Supports 7 chains including Ethereum, Base, Arbitrum, Polygon, Optimism, Avalanche, and Fantom. Access to 11 subgraphs covering AAVE V2, V3, and Governance V3. Real-time lending market data including TVL, APY, and liquidation thresholds. User position analysis and health factor simulation. Historical rate tracking for assets.

What can I use Graph AAVE MCP for?

Monitoring DeFi portfolio health and liquidation risks. Analyzing historical APY trends for yield farming strategies. Auditing lending market configurations across different chains. Tracking recent protocol activity for specific assets or users.

How do I install Graph AAVE MCP?

Install Graph AAVE MCP by running: npm install -g graph-aave-mcp

What MCP clients work with Graph AAVE MCP?

Graph AAVE MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Graph AAVE MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare