block-quote On this pagechevron-down
GitBook Assistant Ask chevron-down Developers Agent MCP (New) Use Tydro's MCP with any AI agent to query live rates, check positions, and execute onchain actions like supply, borrow, repay, and withdraw.
Copy npm install
npm run build
Copy # Required: network (mainnet only for now)
export TYDRO_NETWORK=mainnet
# Optional: only needed for write operations (supply/borrow/repay/withdraw)
export PRIVATE_KEY=0x... Usage with Claude Desktop
Copy {
"mcpServers": {
"tydro": {
"command": "node",
"args": ["/path/to/tydro-mcp/build/index.js"],
"env": {
"TYDRO_NETWORK": "mainnet",
"PRIVATE_KEY": "0x..."
}
}
}
} get_reserve_data
Get supply/borrow APYs, liquidity, and utilization for any reserve.
get_user_account
Get overall health factor, collateral, debt, and borrow capacity.
get_user_reserve
Get a user's position for a specific asset (supplied, borrowed, collateral status).
Deposit assets to earn interest. Auto-approves if needed.
Borrow against collateral. Variable rate only (stable rate deprecated in Aave V3).
Repay borrowed assets. Use "max" to repay full debt including accrued interest.
Withdraw supplied assets. Use "max" to withdraw full aToken balance.
Read-only tools (get_reserve_data, get_user_account, get_user_reserve) work without PRIVATE_KEY
Write tools (supply, borrow, repay, withdraw) require PRIVATE_KEY
Approvals are checked before sending — no redundant approval transactions
Max repay/withdraw uses type(uint256).max — Aave caps at actual balance/debt
Health factor warnings trigger below 1.5 (liquidation threshold is 1.0)
Last updated 1 minute ago