Graph Aave MCP
Aave V2/V3/V4 MCP server — 63 tools across 18 Graph subgraphs + Aave V4 API + on-chain view contracts. Reserves, positions, cross-chain liquidation risk monitoring with live HF confirmation, governance, V4 hubs/spokes, Base equity gap shock and oracle status, loan-swap analytics, exchange rates, swap quotes, rewards, protocol history, and a durable findings store that survives context compaction.
Latest: v4.3.4
v4.3.4 — see github.com/PaulieB14/graph-aave-mcp
graph-aave-mcp
MCP server for Aave V2, V3, and V4 — 63 tools across 18 Graph subgraphs + the Aave V4 API + on-chain view contracts.
Setup
npm install -g graph-aave-mcp
graph-aave-mcp
Or add to Claude Code:
claude mcp add graph-aave -- graph-aave-mcp
Set your Graph API key (free at https://thegraph.com/studio/):
export GRAPH_API_KEY=your-key-here
What it does
- V2/V3 (16 tools): Reserves, positions, liquidations, borrows, supplies, flash loans, governance across 11 subgraphs on 7 chains (Ethereum, Arbitrum, Base, Polygon, Optimism, Avalanche).
get_aave_reservesandget_v4_reservesacceptsymbols/limit/compact— use them, the unfiltered Ethereum response is ~28k tokens._humanReadable.availableLiquidityis aToken supply minus debt, and*APYis compounded._freshness.lagSecondsis subgraph lag. - Liquidation Risk (8 tools): Cross-chain health factors, risk scores, risk alerts, at-risk positions across 5 chains, with live on-chain HF confirmation against Aave view contracts
- Live RPC (3 tools):
get_live_user_account_data,get_live_reserve_detail,get_v3_position_risk. The position-risk tool prices collateral from AaveOracle (shock HF, drop to HF 1, repay/add to a target HF, LTV-0 / frozen / supply-cap flags) because subgraph prices can lag. Public RPC fallbacks plus 429 backoff. SetETHEREUM_RPC_URL/BASE_RPC_URLfor production.get_v3_position_riskacceptsrpcUrl. - Findings store (4 tools): durable per-session findings that survive context compaction
- V4 API (16 tools): Hubs, spokes, reserves, exchange rates, user positions, activities, swap quotes, claimable rewards. Hub, reserve, and user reads default to Ethereum + Base.
- Loan swaps (3 tools):
get_v4_loan_swaps,get_v4_loan_swap_stats,get_v4_borrow_swap_quote(quote only, no order signing) - V4 Omnigraph (5 tools): hub flows, user risk trajectory, liquidation post-mortems, treasury flows, spoke config history
- V4 Subgraph (6 tools, Base default / Ethereum): liquidations by liquidator/user, hub asset rates + fees, config-change history, daily hub flows, user risk premium + activity, treasury events
- Base stocks (2 tools):
simulate_stock_gap_shock,get_oracle_status
What's new
get_v3_position_risk: live Aave V3 position risk from Pool, PoolDataProvider, and AaveOracle, including shock HF and a subgraph price warning above 2%- V3
availableLiquidityis derived (aToken − debt) and reserve answers include_freshness(block, timestamp, lag) - V3 APYs are compounded the way the Aave UI does;
supplyAPRkeeps the linear ray figure - V4 hub, spoke, reserve, and user reads default to Ethereum + Base (pass
chainIdto narrow) get_live_reserve_detailtries several public RPCs and backs off on HTTP 429- Base equities:
simulate_stock_gap_shockandget_oracle_status(Chainlink 24/5, weekend-update flag) - Loan swaps:
get_v4_loan_swaps,get_v4_loan_swap_stats, and a read-onlyget_v4_borrow_swap_quote.get_v4_user_activitiestakestypesand includesBORROW_SWAPby default
What's new in 4.2.0 – 4.3.x
- V4 subgraph tools: Base (Coinbase tokenized-stocks hub) by default, Ethereum optional via
network - Dead backends fail loudly instead of returning empty data; reserve tools accept
symbols/limit/compact
Added in 4.1.0
- Live on-chain reads — every reported health factor is double-checked against the Aave protocol's view contracts before surfacing
- Durable findings store — investigations persist across context-window compaction so multi-step analyses don't lose state
Example questions
- "What are the top Aave V3 markets on Ethereum by TVL?"
- "Compare WETH borrow rates across all chains"
- "Which positions are at risk of liquidation on Arbitrum?"
- "Show me Aave V4 hub utilization"
- "Is wallet 0x... at risk of liquidation on any chain — and confirm the HF on-chain?"
