
Graph Aave Mcp
io.github.PaulieB14由 GitHub 账号 PaulieB14 发布v1.0.0更新于 Oct 24, 2026
AAVE V2/V3 lending & governance MCP — 7 chains via The Graph subgraphs
发布方自己的服务:Aave MCP
概览
面向 Aave V2/V3/V4 的只读 MCP 服务器,覆盖 7 条链,提供 57 个工具查询市场、仓位、清算风险、治理与 V4 数据。
- 可以做什么
- 查询支持的链、子图 ID 与 GraphQL schema
- 查看借贷市场:储备资产、TVL、存借利率、LTV、清算阈值与利率历史
- 查询钱包仓位、健康因子、价格冲击模拟,以及跨链风险画像、风险告警与健康因子趋势
- 浏览协议事件:借款、存款、还款、清算、闪电贷与风险等级变化
- 读取治理提案与逐投票人明细
- 查询 Aave V4 的 hub、spoke、储备、汇率、价格、用户组合、活动、奖励与兑换报价,以及 V4 hub 资金流、国库事件与配置历史
- 适用场景
- 适合让助手直接回答 Aave 市场、钱包仓位、清算风险或治理相关问题,无需自己编写 GraphQL,也适合跨链对比和 V2/V3/V4 利率比较。
- 运行要求
- 通过 npx 在本地运行(需 Node.js)。所有子图与 Omnigraph 工具都需要 GRAPH_API_KEY;V4 Aave API 工具无需密钥。可选的 ETHEREUM_RPC_URL 及各链 RPC 变量(BASE_、ARBITRUM_、POLYGON_、OPTIMISM_、AVALANCHE_)可改善两个链上实时工具。另有 AAVE_V4_API_URL 等可选覆盖项。
安装
在 SourceWeft 中
- 打开 控制台中的 Graph Aave Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
graph-aave-mcp
[npm version] [MCP Registry] [smithery badge] [License: MIT]
[图片]MCP server for AAVE V2, V3, and V4 — 57 tools across 17 Graph subgraphs + the Aave V4 API + V4 Omnigraph (for data the REST API doesn't expose).
Covers lending markets, user positions, health factors, cross-chain liquidation risk monitoring, liquidations, flash loans, governance, V4 hubs/spokes, exchange rates, swap quotes, rewards, and protocol history.
Published to the MCP Registry as
io.github.PaulieB14/graph-aave-mcp
Three Data Sources
Quick Start
Claude Desktop / Cursor config
Free Graph API key: thegraph.com/studio (100K queries/month free tier).
Hosted deployment (no install): Fronteir AI
V2/V3 Tools (The Graph Subgraphs)
15 tools + 1 raw query escape hatch. Requires GRAPH_API_KEY.
Response size.
get_aave_reservesreturns every active reserve by default — on Ethereum that is 67 reserves, ~28k tokens. Passsymbols: ["USDC"]for one asset (~675 tokens),compact: truefor rates only, orlimitto cap the rows.get_v4_reservestakes the same three options.
Discovery
Lending Markets
User Positions
Protocol Events
Governance
Advanced
Supported Chains (V2/V3)
Liquidation Risk Tools (NEW)
8 tools powered by dedicated risk subgraphs across 5 chains. Requires GRAPH_API_KEY.
Real-time liquidation risk monitoring with health factors, risk scores (0–100), risk level classifications (safe/warning/danger/critical), and cross-chain risk summaries.
Risk Monitoring
Risk Events
Discovery
Supported Chains (Liquidation Risk)
V4 Tools (Aave API)
17 tools powered by api.v4.aave.com/graphql. No API key needed. (api.aave.com/graphql is an alias for the same schema; override either with AAVE_V4_API_URL.)
Note: the V4 Omnigraph tools (next section) cover gaps the REST API doesn't expose and require
GRAPH_API_KEY. The 16 tools listed below remain key-free.
Liquidity Model
User Data
V4 Omnigraph Tools (subgraph — fills gaps the Aave API doesn't expose)
5 tools powered by the aave-v-4 subgraph (QmcKrCRSPrMABEfQjyPF6DqhbY7zzcEj6h5QxQmKLcHFSs). Requires GRAPH_API_KEY (the same free key used by V2/V3 subgraph tools).
These cover what api.aave.com/graphql structurally can't return: Hub↔Spoke flow events, per-user risk-premium trajectories, liquidation post-mortems with full premium-delta context, treasury/fee/deficit accounting, and governance-trail snapshots.
V4 Subgraph Tools — Base (Coinbase tokenized stocks) + Ethereum
6 network-aware tools backed by the Aave V4 subgraph. Default network: "base" — the Coinbase Stocks hub on Base (subgraph 9x1tg7KX3RXspnK7R1mahAZsM5gTmFhLrmJSbkoBsDdq). Pass network: "ethereum" for Core/Plus/Prime. Requires GRAPH_API_KEY.
Example: "Who's liquidating tokenized stocks on Aave V4 Base?" → get_v4_recent_liquidations. "What's the USDC borrow rate and fees on the Base stocks hub?" → get_v4_hub_assets (≈2.1%, 10% liquidity fee).
V4 Architecture
V4 enables cross-chain lending: supply on one spoke, borrow on another. Hubs aggregate liquidity across spokes.
Guided Prompts
7 pre-built workflows that guide agents through multi-step analysis:
Example Questions
Liquidation Risk (new):
- "Which Aave positions on Arbitrum are closest to liquidation?"
- "Give me a cross-chain risk dashboard — which network has the most at-risk positions?"
- "Is wallet 0x... at risk of liquidation on any chain?"
- "Show me recent risk alerts — which positions just became critical?"
- "How has this wallet's health factor changed over time on Base?"
V4:
- "What are the Aave V4 hubs and their utilization?"
- "Show me V4 reserves with the highest supply APY"
- "What's the current ETH price on Aave V4?"
- "Compare V3 vs V4 USDC supply rates"
- "What spokes does Aave V4 have on Ethereum?"
V2/V3:
- "What are the top AAVE markets on Ethereum by TVL?"
- "Compare WETH borrow rates across all V3 chains"
- "Analyze the AAVE position for wallet 0x..."
- "If ETH drops 30%, will address 0x... get liquidated?"
- "Show me the last 20 liquidations on Ethereum"
- "What AAVE governance proposals are active?"
Development
Tests
test/smoke.mjs starts the server over stdio and calls every registered tool,
failing if any returns an error or an unexpectedly empty collection. Tools whose
backend is unavailable in the current environment (no Graph key, no reachable
RPC) are skipped rather than failed, so the suite is meaningful without
credentials and thorough with them.
It exists because get_v4_hub_flows shipped pointing at an undeployed subgraph
and nobody noticed: Graph Studio answers a missing subgraph with HTTP 200 and
{"message":"Not found"}, the client only checked for a GraphQL errors key,
and the tool returned flows: [] — indistinguishable from "no activity on
chain". Every backend call now fails loudly instead.
Environment variables
License
MIT
来源:README.md,提交 64a8167
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
