# Aave MCP Documentation (full)
> Every Aave MCP page in one file. It covers Aave MCP only: other sections have their own files, listed at https://aave.com/docs/llms.txt.
Source: https://aave.com/docs/mcp.md
# Aave MCP
Aave MCP gives AI agents a single interface to Aave V3 and V4. Compatible clients can discover markets, inspect positions, simulate protocol actions, and prepare transactions for a user’s wallet to review and sign.
Server endpoint: `https://mcp.aave.com`
## What You Can Do
- **Explore markets:** Retrieve supported chains, reserves, available liquidity, protocol structure, and current or historical rates.
- **Review positions:** Inspect a wallet’s supplies, borrows, health factor, activity, and rewards.
- **Prepare actions:** Simulate and build supply, borrow, withdraw, repay, collateral, reward, and liquidation transactions.
- **Use specialized capabilities:** Work with token swaps, position swaps and leverage on Aave V4, Aave V4 hub data, Savings GHO, and Aave DAO governance data.
See the [Tools](/mcp/tools) reference for the complete tool inventory, parameters, and response schemas.
## Action Lifecycle
Build actions in five stages.
1. **Discover:** `get_markets` returns the reserve, narrowed with a `symbols` filter to the asset in question. The ids it returns are what every later stage takes.
2. **Inspect:** `get_reserve_details` for rates, caps and risk parameters. `get_user_summary` for the wallet’s position and health factor.
3. **Simulate:** `preview_action` reports what the action would leave behind, and warns when it cannot succeed. **Never skip it** before a borrow, a withdraw, or a quoted order that moves a position: a leverage, a position swap or a repay-with-supply, all V4 only.
4. **Build:** `prepare_action` returns an unsigned transaction, preceded by an approval step where the token needs one. A quoted order is built with `prepare_order` instead, after the approvals its quote lists.
5. **Sign:** The user’s wallet signs and submits. `get_transaction_processed` says when Aave has caught up, which is what a dependent follow-up should wait on. A signed order goes to `submit_signed_order`, and `get_order_status` tracks it until it settles, as [Swaps, Leverage and Orders](/mcp/tools#swaps-leverage-and-orders) describes.
> [!NOTE]
> Aave MCP never holds private keys or signs transactions. It returns unsigned
> transactions or EIP-712 typed data, and relays swap and leverage orders only after the user
> signs them.
### Safety
Reads are side-effect-free and `prepare_*` tools commit nothing, so nothing moves until the user signs. [Safety](/mcp/safety) covers the guarantees, the warnings that stop an action, and the reserve flags that block some actions but not others.
## Integrate Aave
### Quick Start
Every call is a `tools/call` with a tool name and its arguments. These are the `params` an agent sends, and [Getting Started](/mcp/getting-started) has the full request envelope.
#### Market Data
```json title="get_markets"
{
"name": "get_markets",
"arguments": {
"version": "all",
"symbols": ["USDC"]
}
}
```
One call covers both versions and every chain each of them serves, and the result names those chains under `chainsCovered`.
#### Account Data
```json title="get_user_summary"
{
"name": "get_user_summary",
"arguments": {
"version": "all",
"user": "0x742d35cc6e5c4ce3b69a2a8c7c8e5f7e9a0b1234"
}
}
```
V4 returns one cross-chain summary with the lowest health factor. V3 has no cross-market aggregate, so it returns an entry per market the wallet holds a position in.
### Supply
Supplying takes three steps.
#### 1. Simulate
`sender` is the wallet that will sign. `reserveId` is the opaque id from a `get_markets` row, so fetch one first rather than constructing it.
```json title="preview_action"
{
"name": "preview_action",
"arguments": {
"action": "supply",
"sender": "0x742d35cc6e5c4ce3b69a2a8c7c8e5f7e9a0b1234",
"amount": "500",
"reserveId": "MTo6MHg5NGU3...Ojo1",
"enableCollateral": true
}
}
```
#### 2. Build
The same arguments return the transaction to sign. `version` is optional on both tools, since `reserveId` already marks the call as V4.
```json title="prepare_action"
{
"name": "prepare_action",
"arguments": {
"version": "v4",
"action": "supply",
"sender": "0x742d35cc6e5c4ce3b69a2a8c7c8e5f7e9a0b1234",
"amount": "500",
"reserveId": "MTo6MHg5NGU3...Ojo1",
"enableCollateral": true
}
}
```
#### 3. Sign
The result is an execution plan. `TransactionRequest` is ready for the wallet to sign; an approval step comes back first when the allowance is missing. [Building an Action](/mcp/tools#building-an-action) covers every branch.
---
Building in code rather than through an agent? AaveKit covers the same operations.
---
Source: https://aave.com/docs/mcp/getting-started.md
# Get Started with Aave MCP
Aave MCP is a remote server, so there is nothing to install and no key to manage. Point a client at `https://mcp.aave.com` and the tools appear in the next session.
## Connect a Client
```bash
claude mcp add --transport http aave https://mcp.aave.com
```
Open **Settings**, then **Connectors**, then **Add custom connector**, and enter `https://mcp.aave.com`.
Open **Settings**, then **Connectors** in developer mode, and add an MCP server at `https://mcp.aave.com`.
```json title="~/.cursor/mcp.json"
{
"mcpServers": {
"aave": {
"url": "https://mcp.aave.com"
}
}
}
```
```bash
code --add-mcp '{"name":"aave","type":"http","url":"https://mcp.aave.com"}'
```
```toml title="~/.codex/config.toml"
[mcp_servers.aave]
url = "https://mcp.aave.com"
```
Every client that takes a remote MCP server asks for the same three values:
| Field | Value |
| :------------- | :--------------------- |
| **Server URL** | `https://mcp.aave.com` |
| **Authentication** | None |
| **Transport** | Streamable HTTP |
Choose Streamable HTTP wherever a client offers a transport dropdown. The server answers a `GET` asking for `text/event-stream` with a 405, so a connector configured for SSE never connects.
Perplexity, Mistral Le Chat, Windsurf, Cline, LM Studio and Goose all take those three values, most of them under a settings screen named Connectors or Extensions.
## Your First Questions
Ask in plain language. None of these need a chain or a market named first.
Read a wallet, or the protocol:
- “What does wallet `0x…` hold on Aave?”
- “Am I net earning or net paying on this position?”
- “Which Aave governance proposals are open for voting, and has each one met quorum?”
Compare venues, rates and history:
- “Where can I earn the most on stablecoins across Aave right now? Tell me what you ruled out and why.”
- “I have 10,000 GHO idle. sGHO, or supply it to a market?”
- “Has USDC’s supply rate on Ethereum been stable this year?”
Simulate against the position, which commits nothing:
- “What is the health factor of `0x…` and how far can BTC fall before liquidation?”
- “Review what `0x…` holds on Aave V4, then simulate borrowing another 5,000 USDC and show the health factor before and after.”
- “Explain E-Mode, and tell me whether it would help my position.”
- “Quote 2x leveraged WETH funded by USDC debt on Aave V4, and show the health factor it would leave.”
Build a transaction to sign:
- “Prepare a borrow of 1,000 USDC for `0x…` on Aave V4.”
- “Repay all of my USDC debt.”
- “Swap 1 ETH for USDC and show me what it actually costs.”
- “Pay down my USDC debt on Aave V4 from my WETH collateral in one step, without withdrawing it.”
Reads answer with live protocol data. Actions come back as an unsigned transaction for the user to sign in their own wallet.
## Prompts and Guides
Clients that surface MCP prompts get five ready-made workflows: `check_health`, `best_stablecoin_yield`, `prepare_supply`, `gho_savings`, and `review_position`. Their arguments support completion, so a client can offer values as the user types.
The server also carries its own guidance for the model calling it. `get_started` answers a cold turn where the user has not asked for anything specific, and `get_aave_guide` serves one topic at a time:
| Topic | Covers |
| :----------------------------- | :------------------------------------------------------------ |
| `overview` | What Aave is and the shape of a typical flow |
| `v3`, `v4` | What each version needs in order to act |
| `positions`, `health-factor` | The rules that decide whether an action is possible |
| `risks` | What a passive supplier is exposed to |
| `ids`, `amounts`, `signing` | Argument formats and the execution-plan branches |
| `prices` | Whose price every USD figure is, and what follows from that |
| `swaps`, `leverage`, `gho`, `governance`, `rewards` | The flows that have their own tools |
| `tools`, `docs` | The capability list, and where the protocol documentation lives |
Each topic is also readable as an MCP resource at `aave://guide/`.
## Call the Server Directly
The MCP endpoint is `POST /`, with `/mcp` as an alias. A plain `GET` there returns the server card as JSON, the same document served at `/.well-known/mcp/server-card.json`. A `GET` that asks for `text/event-stream` gets 405, since the server offers no SSE stream. `GET /health` returns a JSON status.
```bash
curl -s -X POST https://mcp.aave.com/ -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_user_summary","arguments":{"user":"0x...","version":"v4"}}}'
```
`tools/list` on the same endpoint returns every tool with its parameter schema, which is the authority on arguments at any moment.
### Protocol Revisions
The server serves the `2026-07-28` revision of the Model Context Protocol and the 2025 revisions. An `initialize` handshake negotiates a 2025 revision. A client on `2026-07-28` must send the `Mcp-Method` header, plus `Mcp-Name` on `tools/call`, or the request is refused.
### Limits
The endpoint needs no key today. It is a shared service, so cache reads where a client can, poll `get_transaction_processed` and `get_order_status` at a sensible interval rather than in a tight loop, and handle `401` and `429` responses rather than assuming they cannot occur.
---
## Next Steps
---
Source: https://aave.com/docs/mcp/tools.md
# Aave MCP Tools
Aave MCP groups its tools into reads, action builders, orders (token swaps, position swaps and leverage), Savings GHO, DAO governance and guidance. `tools/list` on the endpoint returns the live inventory with each tool’s full parameter schema, and is the authority whenever it disagrees with this page.
## Conventions
- **Version.** Most tools take `version` as `v3`, `v4`, or `all`. Where a tool is fixed to one version, the tables below say so.
- **Reserve selectors.** A V4 call takes the opaque `reserveId`. A V3 call takes `market`, `token` and `chainId`. Both come from `get_markets` in the same session, as described in [Identifiers](#identifiers).
- **Amounts.** Main units, never base units, as described in [Amounts](#amounts).
- **Send only what applies.** Leave an argument out of the call entirely when it does not apply. An empty string or a near-zero number in its place is not universally read as unset, and several arguments reject it.
- **Rejected input stays rejected.** When the API refuses an argument, the reason comes back verbatim and marked non-retryable. Fix the arguments instead of repeating the call.
- **A filter narrows the whole response.** Asking `get_markets` for one symbol returns that reserve and the data around it, not a full chain listing with one row highlighted.
## Markets and Reserves
| Tool | Version | Description |
| :--------------------- | :------ | :------------------------------------------------------------------------------------------------- |
| `get_chains` | V3, V4 | Chains Aave supports, flagging the ones this API holds no market on |
| `get_markets` | V3, V4 | Reserves for a chain with rates, caps and liquidity left; `symbols` narrows it, `user` adds wallet balances, and on V4 `quotableAs` says which [order quotes](#choosing-a-pair) a reserve can enter |
| `get_reserve_details` | V3, V4 | Deep detail for a single reserve, including token decimals |
| `get_emode_categories` | V3 | eMode categories, which group correlated assets for higher borrowing power |
| `get_apy_history` | V3, V4 | Supply or borrow APY for a reserve over a window |
| `get_protocol_history` | V4 | Protocol-wide market size and borrows over a window |
| `get_hubs` | V4 | Hub-level liquidity and global accounting |
| `get_hub_assets` | V4 | The assets one hub holds, with hub-wide supplied and borrowed totals |
## Positions
| Tool | Version | Description |
| :-------------------------- | :------ | :------------------------------------------------------------------------------- |
| `get_user_positions` | V3, V4 | A wallet’s supplies and borrows, with per-position health on V4 |
| `get_position_items` | V4 | The individual supplies or borrows inside one spoke, each with a `positionItemId` and the order quotes it can enter |
| `get_user_summary` | V3, V4 | Aggregate position and health factor |
| `get_user_summary_history` | V4 | One wallet’s net worth, supplied, debt and health factor over a window |
| `get_user_activity` | V3, V4 | Transaction history, paginated |
| `get_transaction_processed` | V4 | Whether Aave has observed a transaction yet |
## Actions
| Tool | Version | Description |
| :----------------------- | :------ | :--------------------------------------------------------------------------------- |
| `preview_action` | V3, V4 | Simulate a supply, borrow, withdraw or repay without executing, or, on V4 only, a quoted leverage, position swap or repay-with-supply |
| `prepare_action` | V3, V4 | Build an unsigned supply, borrow, withdraw or repay |
| `prepare_set_collateral` | V3, V4 | Build an unsigned change to whether a supplied asset backs borrowing |
| `prepare_set_emode` | V3 | Build an unsigned switch of a wallet’s eMode category, `0` to disable |
| `prepare_liquidation` | V3, V4 | Build an unsigned liquidation of a position whose health factor is under 1 |
## Rewards
| Tool | Version | Description |
| :---------------------- | :------ | :--------------------------------------------------------------------------------- |
| `get_user_rewards` | V3, V4 | Claimable rewards on every supported chain, Merit programs included; the V3 response also carries the claim transaction |
| `prepare_claim_rewards` | V4 | Build an unsigned rewards claim |
## Swaps, Leverage and Orders
Token swaps move tokens in the wallet. They are protocol-agnostic, take no `version`, and run on the V4 backend. Position swaps move a position inside Aave without withdrawing it, and are V4 only, as is repaying a borrow from collateral. Leverage opens or increases a leveraged position in one atomic order, and is V4 only.
> [!NOTE]
> Aave V3 has no atomic equivalent here. Moving collateral or paying debt from
> it takes separate withdraw, supply and repay steps, and leverage has no V3
> route.
All of them run the same order lifecycle: a quote mints a `quoteId`, `prepare_order` returns what the user signs, `submit_signed_order` relays the signed order, and `get_order_status` tracks it until it settles.
| Tool | Version | Description |
| :---------------------------- | :------ | :---------------------------------------------------------------------------- |
| `get_swappable_tokens` | — | The chains and tokens a swap can be quoted on |
| `get_swap_quote` | — | Quote a token swap and return a `quoteId`; `slippagePct` caps slippage |
| `get_position_swap_quote` | V4 | Quote swapping collateral for collateral, or one debt for another, atomically |
| `get_repay_with_supply_quote` | V4 | Quote paying a borrow down from a supplied position, atomically |
| `get_leverage_quote` | V4 | Quote opening or increasing a leveraged position; returns the approvals to handle and `maxSafeMultiplier` |
| `prepare_order` | — | What the user signs for any quoted order: EIP-712 typed data, or the transaction a native-token sell takes |
| `submit_signed_order` | — | Relay an order the user has already signed |
| `get_order_status` | — | Poll a submitted order until it settles |
| `get_pending_orders` | — | A wallet’s orders, newest first, across the chains the backend serves |
| `prepare_cancel_order` | — | The EIP-712 cancellation for the user to sign |
| `cancel_order` | — | Relay a signed cancellation, or return the on-chain cancel transaction |
Some swaps need a token approval first. Prefer the gasless `bySignature` permit the quote offers and pass the signature back to `prepare_order` as `permitSignature` and `permitDeadline`; a `byTransaction` approval has to be sent and mined before the order can be prepared.
### Position Swaps and Leverage
Prefer a position swap over withdrawing and re-supplying by hand. It is atomic, so collateral never leaves the protocol part-way through and the health factor never dips. `get_repay_with_supply_quote` does the same for paying a borrow down from collateral.
A leverage order flash-loans the debt reserve, swaps it into the collateral reserve, supplies the result, and draws the debt against the new collateral to repay the flash loan. The quote’s `maxSafeMultiplier` is the multiplier at which the position becomes liquidatable, a hard wall rather than a recommendation. A wallet with no collateral in that reserve yet needs `additionalCollateral`, a top-up pulled from the wallet.
Simulate every one of these before anything is signed. `preview_action` takes the `quoteId` and the `sender` and nothing else, since the quote already binds the reserves and amounts, and an action naming the tool that minted the quote:
| Action | Quote from |
| :---------------- | :------------------------------------------ |
| `supplySwap` | `get_position_swap_quote`, kind `supply` |
| `borrowSwap` | `get_position_swap_quote`, kind `borrow` |
| `repayWithSupply` | `get_repay_with_supply_quote` |
| `leverage` | `get_leverage_quote` |
It returns the health factor before and after, net APY and borrowing power, as it does for any V4 action. A quote previewed under the wrong action is refused, and the refusal names the action that fits.
These quotes list `approvals` to handle before `prepare_order`, and each signed `bySignature` goes back under its own argument: `adapterContractSignature`, `positionManagerSignature` or `setCollateralSignature`. A position-manager approval can be sent as its `byTransaction` instead. A leverage quote adds an ERC-20 approval for the top-up, whose permit is named `byPermit` and goes back as `permitSignature` and `permitDeadline`; when `byPermit` is null, its `byTransaction` has to be mined first.
### Choosing a Pair
Both sides of a position swap or a leverage order sit on the same spoke. On V4, `get_markets` and `get_reserve_details` carry `quotableAs` on each reserve, and `get_position_items` on each item, listing the quote arguments it can fill. A pair is chosen before quoting rather than learned from a refusal, and a row with no `quotableAs` can fill none of them. A position item can only be quoted for the wallet that holds it.
| Role | Listed by | Fills |
| :------------------- | :------------------- | :-------------------------------------------------------- |
| `supplySwapTo` | `get_markets` | `buyReserve` on `get_position_swap_quote`, kind `supply` |
| `borrowSwapTo` | `get_markets` | `buyReserve` on `get_position_swap_quote`, kind `borrow` |
| `repayWith` | `get_markets` | `repayWithReserve` on `get_repay_with_supply_quote` |
| `leverageDebt` | `get_markets` | `debtReserve` on `get_leverage_quote` |
| `leverageCollateral` | `get_markets` | `collateralReserve` on `get_leverage_quote` |
| `supplySwapFrom` | `get_position_items` | `sellPosition` on `get_position_swap_quote`, kind `supply` |
| `borrowSwapFrom` | `get_position_items` | `sellPosition` on `get_position_swap_quote`, kind `borrow` |
| `repayDebt` | `get_position_items` | `debtPosition` on `get_repay_with_supply_quote` |
## Savings GHO
Savings GHO is an ERC-4626 vault on Ethereum that pays a target rate on deposited GHO. It is a product of its own rather than a reserve, so it has its own tools.
| Tool | Version | Description |
| :----------------------- | :----------- | :------------------------------------------------------------------------------------- |
| `get_sgho_vault` | V3, Ethereum | Vault state and a wallet’s position: target rate, supply cap, `maxDeposit`, `maxWithdraw` |
| `get_sgho_preview` | V3, Ethereum | Convert between GHO and sGHO shares at the current vault index |
| `prepare_sgho_action` | V3, Ethereum | Build an unsigned deposit or withdrawal |
| `prepare_stkgho_migrate` | V3, Ethereum | Build an unsigned migration of an entire stkGHO position into sGHO |
> [!WARNING]
> sGHO withdrawals are in **vault shares**, not GHO, unlike every other amount
> in this server. Convert with `get_sgho_preview`, or pass `max`.
A wallet’s `maxDeposit` is already the smaller of its GHO balance and the remaining cap, so size a deposit against that rather than against the cap. sGHO earns yield but is not collateral: it cannot be supplied or borrowed against, and it does not appear in a health factor.
## Aave DAO Governance
These take no `version`. Governance V3 is the DAO’s own contract generation, unrelated to the V3 and V4 markets. Vote tallies, quorum and per-voter power are all denominated in AAVE, so they compare directly.
| Tool | Description |
| :---------------------------- | :----------------------------------------------------------------------------------------- |
| `search_governance_proposals` | List proposals by lifecycle state, or search them full-text |
| `get_governance_proposal` | One proposal in full, with the `quorumMet` and `differentialMet` conditions it must satisfy |
| `get_proposal_votes` | Who voted and with how much power, largest first, plus totals |
| `get_user_vote` | How one wallet voted on one proposal, or that it did not |
| `get_proposal_payloads` | What a proposal executes per target chain, and whether it has landed everywhere |
## Guidance
| Tool | Description |
| :--------------- | :-------------------------------------------------------------------------------------------- |
| `get_started` | What the server can do, for a turn where the user has not asked for anything specific |
| `get_aave_guide` | Protocol and usage guidance by topic, also readable as a resource at `aave://guide/` |
## Response Envelope
Every successful result is the same envelope, returned both as JSON text and as `structuredContent`:
```json title="Result"
{
"data": {},
"next_actions": ["get_user_summary to confirm the resulting health factor"]
}
```
Read the payload from `data` and follow `next_actions`. A result may also carry `warnings`, each with a `level`, a stable `code`, and a message:
See [Safety](/mcp/safety#warnings-that-stop-an-action) for what each `level` means.
## Chain Coverage
A read covers every chain it can and names them under `chainsCovered`, so there is no need to loop over chains by hand. Where the full sweep would be too large to return, the read narrows and names what it left out under `chainsNotCovered`, which is the only case that needs a second call.
`chainsNotServed` means something else. Those are chains this API holds no market on, so an empty result there is an absence of data rather than an answer about the chain, and asking again returns the same nothing. `get_chains` flags them too.
## Building an Action
`prepare_action` returns an execution plan, and its `__typename` says what to do next.
| `__typename` | What it means |
| :------------------------------------------------ | :--------------------------------------------------------------------------------------------- |
| `TransactionRequest` | Ready to sign and send: `to`, `from`, `data`, `value`, `chainId` |
| `Erc20ApprovalRequired` (V4), `ApprovalRequired` (V3) | The allowance is missing, and the plan carries the approval |
| `PreContractActionRequired` | Two transactions, in order: `transaction` first, then `originalTransaction`, which is the action |
| `InsufficientBalanceError` | The sender lacks the funds |
Both versions offer the same gasless route, and offer it the same way. When an approval plan carries `bySignature` permit typed data, sign that and call `prepare_action` again with `permitSignature` and `permitDeadline`, the `deadline` from the message that was signed. The call then returns the action transaction with no approval transaction at all. V4 offers this on a supply; V3 offers it on a supply, a repay or a withdraw, and not on a borrow, since nothing leaves the wallet there.
> [!NOTE]
> Send `permitSignature` only when retrying after an approval returned a permit,
> never on the first call.
A plan with no `bySignature` is a token without permit support, so the on-chain route is the only one. Submit the `byTransaction` approval and wait for it to be mined before running `prepare_action` again: the action transaction is only issued once the allowance is visible on chain, so calling again too early returns the approval step a second time.
Supplying a chain’s native gas token, with `native`, usually takes the `PreContractActionRequired` path, where the first transaction lets the native gateway act and the second performs the supply.
## Amounts
Amounts are in main, human units. `"10.5"` is 10.5 USDC, and token decimals are handled for you. The format is a plain positive decimal string, so `1e5` and hex are rejected, and `get_reserve_details` carries the decimals when a conversion is needed. 100000 base units of a 6-decimal token is `"0.1"`, not `"100"`.
- Rates and percentages carry a `Pct` suffix and are percentages rounded to four decimal places, so `"3.32"` means 3.32%. Plain ratios such as the health factor are unchanged.
- For a withdraw or a repay, `max` uses the whole balance or debt instead of an amount.
- `native` acts with the chain’s native gas token instead of its wrapped ERC-20. The two do not always combine: a V3 repay has no native `max` form, so send an explicit amount there, or drop `native` and repay the wrapped token with `max`.
- Aggregate USD figures on `get_user_summary` are rounded to four decimals, so never compare them against dust. Use the per-item principal and interest from `get_position_items`.
## Identifiers
On V4 every id is URL-safe base64 of a `::`-joined tuple, so they all look alike and several differ only in how many segments they carry.
| Id | Shape | Returned by |
| :---------------- | :------------------------------------------ | :---------------------------------------------- |
| **Spoke** | `chain::spokeAddress` | `get_user_positions` |
| **Reserve** | `chain::spokeAddress::onChainReserveId` | `get_markets`, `get_reserve_details`, `get_position_items` |
| **User position** | `chain::spokeAddress::user` | position reads |
| **Hub asset** | `chain::hubAddress::onChainHubAssetId` | `get_hubs`, `get_hub_assets` |
Carry ids verbatim from whichever tool returned them, and **never assemble one**. They are opaque by contract, the on-chain reserve id is a 256-bit number rather than a small index, and a value that was built by hand is rejected even when it looks right. The same asset also appears on several spokes at very different rates, which is why the `reserveId` matters and a symbol will not do.
V3 does not work this way. There a reserve is addressed as `market` plus `token` plus `chainId`, three plain values with no encoding, and an Aave pool address recognized from elsewhere belongs to another deployment and is rejected.
## What Can Block an Action
Four rules decide whether an action is possible at all. Each one otherwise surfaces as a different error.
1. **On V4, a supply is not collateral** unless `prepare_action` was given `enableCollateral`. On V3, a first supply of an eligible asset becomes collateral automatically. Without collateral the borrowing power is zero, so a borrow is refused, and `preview_action` reports a resulting health factor of 0, which means no borrowing power rather than liquidatable. `prepare_set_collateral` turns an existing supply into collateral.
2. **Collateral pinned by an open borrow cannot be withdrawn,** so a withdraw repays first. The `withdrawableIgnoringDebt` field reflects liquidity and caps only, and does not subtract collateral backing a borrow, so asking for all of it is refused for dropping the health factor below 1.
3. **Debt cannot be repaid to exactly zero.** Interest accrues between computing the amount and the transaction landing, so a few units always remain, and `max` is refused when the wallet holds exactly what was borrowed, because it is then one unit short. Treat a zero principal as repaid, or repay with a surplus in the wallet.
4. **The API lags the chain.** After sending a transaction, poll `get_transaction_processed` before building a dependent follow-up rather than waiting a fixed time.
See [Simulate Before Signing](/mcp/safety#simulate-before-signing) for what a clean simulation does and does not cover.
---
Source: https://aave.com/docs/mcp/skills.md
# Aave MCP Skills
A skill is a short procedure for one Aave flow, written for the model rather than for a person: which tools to call, in what order, and what a finished answer has to contain.
Aave publishes one skill per flow where the tool list alone tends to leave an agent a step short. Each is a single `SKILL.md` in the [aave/skills](https://github.com/aave/skills) repository.
## Skill Examples
## How a Client Gets Them
**As a plugin.** The skills are bundled with the Aave MCP plugin, which also connects the client to `https://mcp.aave.com`. It is published to each provider’s own marketplace, currently Claude Code and Cursor.
```text title="Claude Code"
/plugin marketplace add aave/skills
/plugin install aave-mcp@aave
```
**With the skills CLI.** Other agents can install the skills with one command. This adds the skills only, so also add the server at `https://mcp.aave.com`.
```bash
npx skills add aave/skills
```
**From the repository.** An agent that loads skills from a directory can take the `SKILL.md` files from [aave/skills](https://github.com/aave/skills) as they are.
## Using a Skill
Nothing has to be invoked by name.
1. **Install the plugin,** which connects the client to `https://mcp.aave.com` and loads the skills. [Getting Started](/mcp/getting-started) covers connecting a client on its own.
2. **Ask in plain language.** “Get my health factor up on Aave”, “did my supply go through”. A client with skill support loads the matching procedure.
3. **Review and sign.** Skills change which reads happen and what an answer covers. They grant nothing: every state change is still an unsigned transaction your own wallet approves, as described in [Safety](/mcp/safety).
## Contributing
The skills are maintained in [aave/skills](https://github.com/aave/skills). Proposals and corrections are welcome there.
---
Source: https://aave.com/docs/mcp/safety.md
# Aave MCP Safety
Aave MCP reads live protocol data and builds transactions. It never signs them, and the user’s wallet is the last gate before anything reaches a chain.
## Non-Custodial by Design
- The server holds **no private keys** and cannot move funds.
- Read tools are side-effect-free.
- A `prepare_*` tool returns an unsigned transaction, an approval step that comes first, or EIP-712 typed data to sign. None of it commits anything.
- Two tools change state. `submit_signed_order` relays an order the user has **already signed**, and `cancel_order` relays a signed cancellation. Neither can create or sign anything of its own.
- Signing happens in the user’s wallet, on every version and every action.
> [!NOTE]
> Building a transaction commits nothing, so an agent needs no permission to
> build one. Prepare it, state the action, amounts and resulting health factor,
> and let the user decide at signing.
## Warnings That Stop an Action
A result may carry `warnings`, each with a `level`, a stable `code`, and a message. The levels are not interchangeable, and `error` is the one with teeth.
| Level | What to do |
| :-------- | :--------------------------------------------------------------------------------------------------- |
| `error` | The action cannot succeed as built. Stop, fix the arguments, or tell the user. Do not build or sign past it. |
| `warning` | The action will succeed. Tell the user before they sign. |
| `info` | Context worth passing on. |
## Simulate Before Signing
`preview_action` reports what an action would leave behind, on either version, and commits nothing. Run it before a borrow, a withdraw, or a quoted order that moves a position (a leverage, a position swap or a repay-with-supply, all V4 only), and show the result next to the amount. A quoted order is simulated from its quote: the `quoteId`, with the action for the product that minted it.
A clean simulation means the position allows the action. It says nothing about token allowances, so an approval step can still be outstanding.
## Reserve Flags Block Different Things
A status flag is not uniformly disqualifying, and treating it that way pushes a user away from actions they should be taking.
| Flag | Supply | Borrow | Withdraw | Repay |
| :----------------- | :----- | :----- | :------- | :---- |
| **Frozen** | No | No | Yes | Yes |
| **Paused** | No | No | No | No |
| **Supply cap reached** | No | Yes | Yes | Yes |
| **Borrow cap reached** | Yes | No | Yes | Yes |
A frozen reserve still lets a position be unwound, so refusing a withdraw or a repay on one tells the user to abandon a position they should be closing. `get_markets` returns these flags only when set, next to the remaining liquidity. Rank reserves by rates a user can actually enter, not by APY alone.
## What a Supplier Is Exposed To
None of the following shows up in a health factor, and the server returns the fields behind each one without ranking reserves by risk.
- Supplying puts tokens in a contract. A governance-approved reserve list is curation, not a guarantee.
- A quoted APY is the rate now, not a promise. It moves with utilization, and `get_apy_history` shows how far it has actually moved.
- Getting out is not always immediate. `availableLiquidity` is what can be pulled at this moment, so a high rate on a fully utilized reserve is a rate nobody exits quickly.
- A plain supply cannot be liquidated. Once it is collateral it can, and the liquidator takes a bonus out of it.
- An isolated E-Mode category on Aave V3, or a low collateral factor on Aave V4, is the DAO pricing that asset as riskier.
- Reward and incentive rates are separate from the supply rate and can stop, so they are not part of the yield.
## An Empty Result Is Not Always an Answer
A read names the chains it covered under `chainsCovered`, and what it skipped under `chainsNotCovered`. A chain under `chainsNotServed` is one this API holds no market on, so nothing there is a statement about the chain itself.
Those fields matter most in the case that looks harmless. A wallet with no position on a chain and a chain that could not be read both come back with an empty list, and only the coverage fields tell them apart.
## Security Resources