Skip to main content
Glama

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 .env

Edit .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-aave

Set API_KEY in your .env to require bearer token authentication:

API_KEY=your-secret-key-here

Health 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

fly launch --image mcp-aave then fly secrets set API_KEY=... ETHEREUM_RPC_URL=...

Railway

Connect repo, set env vars in dashboard

Cloud Run

gcloud run deploy mcp-aave --image mcp-aave --port 3000 --set-env-vars API_KEY=...

Any VPS

docker run -d -p 3000:3000 --env-file .env --restart unless-stopped mcp-aave

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

aave_get_user_account_data

Health factor, collateral, debt, LTV

aave_get_user_reserve_data

Per-asset position details

aave_get_reserve_data

Reserve supply, debt, rates

aave_get_reserve_config

Risk parameters, caps, flags

aave_get_all_reserves

All supported tokens (symbol + address)

aave_get_asset_price

Oracle price (USD)

aave_get_asset_prices

Batch oracle prices

aave_get_user_emode

Current eMode category

aave_get_emode_category

eMode config details

aave_get_flash_loan_premium

Flash loan fee

aave_get_flash_loan_enabled

Flash loan eligibility per asset

aave_get_reserve_token_addresses

aToken + debt token addresses

aave_get_borrow_allowance

Credit delegation allowance

aave_get_staking_info

stkAAVE balance, rewards, cooldown

aave_get_voting_power

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

aave_supply

Lending

aave_withdraw

Lending

aave_borrow

Lending

aave_repay

Lending

aave_repay_with_atokens

Lending

aave_supply_native

Native token (ETH/MATIC/AVAX)

aave_withdraw_native

Native token

aave_borrow_native

Native token

aave_repay_native

Native token

aave_set_collateral

Collateral

aave_set_emode

Efficiency mode

aave_flash_loan

Flash loan (multi-asset)

aave_flash_loan_simple

Flash loan (single-asset)

aave_liquidation_call

Liquidation

aave_approve_delegation

Credit delegation

aave_delegate

Governance

aave_delegate_by_type

Governance

aave_stake

Staking

aave_cooldown

Staking

aave_unstake

Staking

aave_claim_staking_rewards

Staking

aave_borrow_gho

GHO stablecoin

aave_repay_gho

GHO stablecoin

Governance read tools

aave_get_proposal, aave_get_proposals_count, aave_get_delegation_info

License

MIT

Available Tools

41 tools
aave_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_flash_loan_premiumA

Get the current flash loan premium (fee percentage) for a chain

Inputs: 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

    A3.5/5.0

    Scored across 41 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    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
      A
      quality
      D
      maintenance
      Enables 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.
      8
      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
      A
      quality
      C
      maintenance
      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
      40
      284 npm
      2
      MIT