MCP
Use Tydro's MCP to query live rates, check positions, and execute onchain actions like supply, borrow, repay, and withdraw
Installation
npm install
npm run buildConfiguration
# 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
{
"mcpServers": {
"tydro": {
"command": "node",
"args": ["/path/to/tydro-mcp/build/index.js"],
"env": {
"TYDRO_NETWORK": "mainnet",
"PRIVATE_KEY": "0x..."
}
}
}
}Tools
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).
supply
Deposit assets to earn interest. Auto-approves if needed.
borrow
Borrow against collateral. Variable rate only (stable rate deprecated in Aave V3).
repay
Repay borrowed assets. Use "max" to repay full debt including accrued interest.
withdraw
Withdraw supplied assets. Use "max" to withdraw full aToken balance.
Notes
Read-only tools (
get_reserve_data,get_user_account,get_user_reserve) work withoutPRIVATE_KEYWrite tools (
supply,borrow,repay,withdraw) requirePRIVATE_KEYApprovals are checked before sending — no redundant approval transactions
Max repay/withdraw uses
type(uint256).max— Aave caps at actual balance/debtHealth factor warnings trigger below 1.5 (liquidation threshold is 1.0)
Last updated
