mcp-aave
Provides AAVE V3 tools on Ethereum for querying account and reserve data and building transactions for lending, borrowing, flash loans, liquidations, staking, governance, and GHO.
Enables AAVE V3 operations on Optimism, including read-only position/reserve queries and transaction builders for lending, borrowing, flash loans, liquidations, staking, governance, and GHO.
Enables AAVE V3 operations on Polygon, including read-only position/reserve queries and transaction builders for lending, borrowing, flash loans, liquidations, staking, governance, and GHO.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-aave what's my Aave health factor and borrow limit on Base?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-aave
MCP server for AAVE V3. Provides AI agents with read-only query tools and transaction-builder tools for the full AAVE protocol surface — lending, borrowing, flash loans, liquidations, governance, staking, GHO, and more. The server never holds keys or signs transactions; write tools return raw calldata (to, data, value) for the agent's wallet to sign.
Supports Ethereum, Polygon, Arbitrum, Optimism, Base, and Avalanche.
Install
git clone https://github.com/moontography/mcp-aave.git
cd mcp-aave
cp .env.example .envEdit .env with your RPC URLs (free endpoints from Alchemy, Infura, QuickNode, or the public defaults work for light usage).
Related MCP server: HyperEVM MCP
Build & Run (Docker)
Remote HTTP server (default)
The Docker image runs an HTTP server on port 3000 by default. Any MCP client on the internet can connect to it via the Streamable HTTP transport.
docker build -t mcp-aave .
docker run --rm -p 3000:3000 --env-file .env mcp-aaveSet API_KEY in your .env to require bearer token authentication:
API_KEY=your-secret-key-hereHealth check: GET /health (no auth required).
MCP client configuration (remote)
{
"mcpServers": {
"aave": {
"type": "streamable-http",
"url": "https://your-server.example.com/mcp",
"headers": {
"Authorization": "Bearer your-secret-key-here"
}
}
}
}Local stdio mode
For local-only usage (Claude Desktop, Claude Code, etc.) you can run in stdio mode instead:
docker run --rm -i --env-file .env mcp-aave node build/index.js{
"mcpServers": {
"aave": {
"command": "docker",
"args": ["run", "--rm", "-i", "--env-file", "/absolute/path/to/.env", "mcp-aave", "node", "build/index.js"]
}
}
}Deploying remotely
The HTTP server works on any platform that runs Docker containers:
Platform | Deploy command |
Fly.io |
|
Railway | Connect repo, set env vars in dashboard |
Cloud Run |
|
Any VPS |
|
Put a reverse proxy (Caddy, nginx, Cloudflare Tunnel) in front for TLS. Clients should always connect over HTTPS in production.
Tools
Read (15 tools)
Tool | Description |
| Health factor, collateral, debt, LTV |
| Per-asset position details |
| Reserve supply, debt, rates |
| Risk parameters, caps, flags |
| All supported tokens (symbol + address) |
| Oracle price (USD) |
| Batch oracle prices |
| Current eMode category |
| eMode config details |
| Flash loan fee |
| Flash loan eligibility per asset |
| aToken + debt token addresses |
| Credit delegation allowance |
| stkAAVE balance, rewards, cooldown |
| Governance power |
Write — transaction builders (20+ tools)
Every write tool returns { chainId, transactions: [{ to, data, value }] }. The agent's wallet signs and submits.
Tool | Category |
| Lending |
| Lending |
| Lending |
| Lending |
| Lending |
| Native token (ETH/MATIC/AVAX) |
| Native token |
| Native token |
| Native token |
| Collateral |
| Efficiency mode |
| Flash loan (multi-asset) |
| Flash loan (single-asset) |
| Liquidation |
| Credit delegation |
| Governance |
| Governance |
| Staking |
| Staking |
| Staking |
| Staking |
| GHO stablecoin |
| GHO stablecoin |
Governance read tools
aave_get_proposal, aave_get_proposals_count, aave_get_delegation_info
License
Available Tools
41 toolsaave_approve_delegationA
Build transaction to approve credit delegation on a variable debt token. Allows the delegatee to borrow up to the specified amount on behalf of the delegator.
Inputs: chain (required), amount (required), delegatee (required), underlyingAsset (required), +1 more.
aave_borrowB
Build transaction to borrow an asset from AAVE V3 against supplied collateral. Uses variable rate.
Inputs: asset (required), chain (required), amount (required), sender (required), +1 more.
aave_borrow_ghoA
Build transaction to borrow (mint) GHO stablecoin from AAVE V3 on Ethereum. GHO is minted when borrowed, not withdrawn from a pool. Requires sufficient collateral.
Inputs: amount (required), sender (required), onBehalfOf.
aave_borrow_nativeA
Build transaction to borrow native token from AAVE V3. The WETH is borrowed and auto-unwrapped. Note: sender must first delegate credit to the gateway on the WETH variable debt token.
Inputs: chain (required), amount (required).
aave_claim_staking_rewardsB
Build transaction to claim accrued AAVE rewards from stkAAVE. Use "max" to claim all. Ethereum only.
Inputs: to (required), amount (required).
aave_cooldownA
Build transaction to activate the cooldown period for unstaking stkAAVE. Must wait for cooldown to complete before redeeming. Ethereum only.
Inputs: no named parameters.
aave_delegateA
Build transaction to delegate both voting and proposition power to another address. Ethereum only.
Inputs: delegatee (required).
aave_delegate_by_typeA
Build transaction to delegate either voting power or proposition power specifically. Ethereum only.
Inputs: delegatee (required), delegationType (required).
aave_flash_loanA
Build a multi-asset flash loan transaction. The receiver contract must implement IFlashLoanReceiver. interestRateModes: 0 = repay in same tx, 2 = open variable debt.
Inputs: chain (required), assets (required), amounts (required), onBehalfOf (required), +3 more.
aave_flash_loan_simpleA
Build a single-asset flash loan transaction. Simpler than multi-asset: no debt opening, no fee waiver.
Inputs: asset (required), chain (required), amount (required), receiverAddress (required), +1 more.
aave_get_all_reservesB
List all supported reserve tokens on AAVE for a given chain, with symbols and addresses
Inputs: chain (required).
aave_get_asset_priceB
Get the current oracle price of an asset in USD (8 decimal precision)
Inputs: asset (required), chain (required).
aave_get_asset_pricesB
Get oracle prices for multiple assets in a single call
Inputs: chain (required), assets (required).
aave_get_borrow_allowanceB
Check the credit delegation allowance: how much a delegatee is allowed to borrow on behalf of a delegator
Inputs: chain (required), delegatee (required), delegator (required), variableDebtToken (required).
aave_get_delegation_infoA
Get who a user has delegated their voting and proposition power to. Ethereum only.
Inputs: user (required).
aave_get_emode_categoryB
Get configuration details for an efficiency mode category: LTV, liquidation threshold/bonus, label
Inputs: chain (required), categoryId (required).
aave_get_flash_loan_enabledA
Check if flash loans are enabled for a specific asset on a chain
Inputs: asset (required), chain (required).
aave_get_proposalA
Get details of an AAVE governance proposal by ID. Ethereum only.
Inputs: proposalId (required).
aave_get_proposals_countA
Get the total number of governance proposals created. Ethereum only.
Inputs: no named parameters.
aave_get_reserve_configB
Get risk parameters for a reserve: LTV, liquidation threshold/bonus, reserve factor, caps, and status flags
Inputs: asset (required), chain (required).
aave_get_reserve_dataB
Get reserve-level data for an asset: total supply, total debt, liquidity rate, variable borrow rate, and utilization metrics
Inputs: asset (required), chain (required).
aave_get_reserve_token_addressesB
Get the aToken, stable debt token, and variable debt token addresses for a reserve
Inputs: asset (required), chain (required).
aave_get_staking_infoA
Get staking info for stkAAVE: staked balance, pending rewards, cooldown status. Ethereum only.
Inputs: user (required).
aave_get_user_account_dataB
Get a user's aggregated AAVE position: total collateral, total debt, available borrows, LTV, liquidation threshold, and health factor
Inputs: user (required), chain (required).
aave_get_user_emodeB
Get the user's current efficiency mode category ID (0 = disabled)
Inputs: user (required), chain (required).
aave_get_user_reserve_dataA
Get a user's position details for a specific asset: aToken balance, variable debt, stable debt, collateral enabled, and rates
Inputs: user (required), asset (required), chain (required).
aave_get_voting_powerA
Get a user's governance voting and proposition power from AAVE token. Ethereum only.
Inputs: user (required).
aave_liquidation_callA
Build transaction to liquidate an undercollateralized position (health factor < 1). Caller repays debt and receives collateral + bonus. Requires debt asset approval.
Inputs: user (required), chain (required), sender (required), debtAsset (required), +3 more.
aave_repayB
Build transaction(s) to repay borrowed assets on AAVE V3. Use amount "max" to repay entire debt.
Inputs: asset (required), chain (required), amount (required), sender (required), +1 more.
aave_repay_ghoB
Build transaction(s) to repay (burn) GHO debt on AAVE V3. Includes approval if needed. Use "max" for full debt.
Inputs: amount (required), sender (required), onBehalfOf.
aave_repay_nativeA
Build transaction to repay debt with native token via the WrappedTokenGateway. The native token value is sent with the transaction.
Inputs: chain (required), amount (required), onBehalfOf (required).
aave_repay_with_atokensB
Build transaction to repay debt by burning aTokens directly (no need for underlying tokens).
Inputs: asset (required), chain (required), amount (required).
aave_set_collateralA
Build transaction to enable or disable a supplied asset as collateral. Disabling may fail if it would make the position undercollateralized.
Inputs: asset (required), chain (required), useAsCollateral (required).
aave_set_emodeB
Build transaction to set the user's efficiency mode category. Use 0 to disable eMode. Higher LTV for correlated assets.
Inputs: chain (required), categoryId (required).
aave_stakeA
Build transaction(s) to stake AAVE tokens in the Safety Module (stkAAVE). Includes approval if needed. Ethereum only.
Inputs: amount (required), sender (required), onBehalfOf.
aave_supplyA
Build transaction(s) to supply (deposit) an ERC20 token into AAVE V3. Returns approval + supply calldata.
Inputs: asset (required), chain (required), amount (required), sender (required), +1 more.
aave_supply_nativeB
Build transaction to supply native token (ETH/MATIC/AVAX) to AAVE V3 via the WrappedTokenGateway. The native token is automatically wrapped.
Inputs: chain (required), amount (required), onBehalfOf (required).
aave_unstakeA
Build transaction to redeem (unstake) stkAAVE after cooldown period. Use "max" for full balance. Ethereum only.
Inputs: to (required), amount (required).
aave_withdrawB
Build transaction to withdraw a supplied asset from AAVE V3. Use amount "max" to withdraw entire balance.
Inputs: asset (required), chain (required), amount (required), sender (required), +1 more.
aave_withdraw_nativeA
Build transaction to withdraw and unwrap native token from AAVE V3. Note: sender must first approve the gateway to spend their aWETH/aWMATIC/aWAVAX. Use "max" for full balance.
Inputs: to (required), chain (required), amount (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 41 tools
Most tools have distinct resource/action targets, and the read vs. transaction-building split is clear. Some variant families (standard vs. native vs. GHO, multi-asset vs. simple flash loans, delegate vs. delegate_by_type) require careful description reading, but boundaries are generally explicit.
Every tool uses the same aave_ prefix followed by snake_case verb_noun naming, such as aave_get_reserve_data, aave_supply, aave_borrow_gho, and aave_claim_staking_rewards. Variants are consistently marked with suffixes like _native, _gho, and _simple.
41 tools is heavy and well beyond the typical 3-15 range, but AAVE's domain genuinely spans lending, native gateways, GHO, flash loans, staking, and governance. The surface is broad rather than arbitrary, though it could likely be consolidated with parameterized variants.
Core lending lifecycle, native-token flows, GHO, flash loans, staking, and governance reads/delegation are well covered. The main notable gap is governance voting/proposal execution operations, and there is no direct tool to list all of a user's reserve positions, though agents can work around that by looping.
Maintenance
Related MCP Connectors
Official Aave MCP for V3 and V4 markets, positions, governance, and transaction preparation.
Crypto yield data for AI agents: lending, savings, staking, borrowing & stablecoin rates. 21 tools.
Aave - 6 tools for lending rates, supply, and borrow data
Verified EVM, Aptos and finance tools for AI agents; gas for 14 chains. Pay per call (x402).
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables 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.81MIT
- AlicenseAqualityDmaintenanceEnables AI agents to interact with HyperLend protocol and Kittenswap DEX on Hyperliquid EVM network. Supports DeFi operations including lending, borrowing, withdrawing assets, and token swapping with comprehensive portfolio management.8MIT
- AlicenseBqualityDmaintenanceProvides 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.626 npm4MIT
- AlicenseAqualityCmaintenanceMCP 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) via40284 npm2MIT