modelscope·@clumsynonono/aave-liquidation-mcp
暂无描述。
A Model Context Protocol (MCP) server for analyzing Aave V3 liquidation opportunities on Ethereum mainnet. This tool enables AI assistants like Claude to interact with Aave protocol data, monitor user positions, and identify liquidation opportunities.
Unlike existing liquidation bots that execute liquidations, this MCP server focuses on:
Clone or download this repository
Install dependencies:
npm install
Configure environment variables:
cp .env.example .env
# Edit .env and add your Ethereum RPC URL
Build the project:
npm run build
Create a .env file in the project root:
# Required: Ethereum RPC endpoint
ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY
# Optional: Health factor warning threshold (default: 1.05)
HEALTH_FACTOR_THRESHOLD=1.05
You can get a free Ethereum RPC endpoint from:
Add this server to your Claude Desktop configuration file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"aave-liquidation": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/aave-liquidation-mcp/build/index.js"],
"env": {
"ETHEREUM_RPC_URL": "https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY"
}
}
}
}
Replace /ABSOLUTE/PATH/TO/ with the actual path to your installation.
Test the server functionality without MCP configuration:
# Get current ETH price
npm run demo:price
# View all Aave reserves (categorized)
npm run demo:reserves
# Run comprehensive connection test
npm run test:real-data
get_user_healthGet health factor and account data for a specific address.
Input:
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}
Output:
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"healthFactor": "1.234",
"totalCollateralUSD": "150000.00",
"totalDebtUSD": "100000.00",
"availableBorrowsUSD": "20000.00",
"liquidationThreshold": "0.85",
"ltv": "0.80",
"isLiquidatable": false,
"isAtRisk": false,
"status": "HEALTHY"
}
analyze_liquidationAnalyze a position for liquidation opportunity with detailed breakdown.
Input:
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}
Output:
{
"userAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"healthFactor": "0.98",
"totalCollateralUSD": "150000.00",
"totalDebtUSD": "140000.00",
"riskLevel": "HIGH",
"potentialProfit": "7000.00",
"collateralAssets": [...],
"debtAssets": [...]
}
get_user_positionsGet detailed collateral and debt positions for an address.
Input:
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}
get_aave_reservesGet list of all available Aave V3 reserves with their configurations.
Input: None required
Output: List of all reserves with LTV, liquidation threshold, liquidation bonus, etc.
get_asset_priceGet current USD price for a specific asset from Aave oracle.
Input:
{
"assetAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
get_protocol_statusGet Aave V3 protocol status and current block number.
Input: None required
batch_check_addressesCheck multiple addresses at once for liquidation opportunities (max 20 addresses per request).
Input:
{
"addresses": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"0xAnotherAddress...",
"0xYetAnotherAddress..."
]
}
Output:
{
"totalChecked": 3,
"liquidatable": 1,
"atRisk": 1,
"healthy": …
一座通过模型控制协议(Model Control Protocol)将Dune Analytics区块链数据连接到人工智能应用的桥梁,使大型语言模型(LLMs)能够通过自然语言交互访问链上数据。
暂无描述。
暂无描述。
暂无描述。
暂无描述。
贸易代理