💰 MCP FRAXLEND
Package: @iqai/mcp-fraxlend
Purpose: Interact with the Fraxlend lending platform
✨ Features
Section titled “✨ Features”- Interact with the Fraxlend lending platform
- Fetch statistics for a specific Fraxlend pair
- Lend assets to a specific Fraxlend pair
- Borrow assets from a specific Fraxlend pair
- Add collateral to a specific Fraxlend pair
- Remove collateral from a specific Fraxlend pair
- Repay borrowed assets to a specific Fraxlend pair
- Withdraw lent assets from a specific Fraxlend pair
- Get the pair address for a specific Fraxlend pair
🔧 Available Tools
Section titled “🔧 Available Tools”LENDING_STATS
Section titled “LENDING_STATS”Fetch statistics for a specific Fraxlend pair:
- Parameters:
pairAddress(string)
Lend assets to a specific Fraxlend pair:
- Parameters:
pairAddress(string),amount(string) - Requires:
WALLET_PRIVATE_KEY
BORROW
Section titled “BORROW”Borrow assets from a specific Fraxlend pair:
- Parameters:
pairAddress(string),amount(string) - Requires:
WALLET_PRIVATE_KEY
ADD_COLLATERAL
Section titled “ADD_COLLATERAL”Add collateral to a specific Fraxlend pair:
- Parameters:
pairAddress(string),amount(string) - Requires:
WALLET_PRIVATE_KEY
REMOVE_COLLATERAL
Section titled “REMOVE_COLLATERAL”Remove collateral from a specific Fraxlend pair:
- Parameters:
pairAddress(string),amount(string) - Requires:
WALLET_PRIVATE_KEY
Repay borrowed assets to a specific Fraxlend pair:
- Parameters:
pairAddress(string),amount(string) - Requires:
WALLET_PRIVATE_KEY
WITHDRAW
Section titled “WITHDRAW”Withdraw lent assets from a specific Fraxlend pair:
- Parameters:
pairAddress(string),amount(string) - Requires:
WALLET_PRIVATE_KEY
PAIR_ADDRESS
Section titled “PAIR_ADDRESS”Get the pair address for a specific Fraxlend pair:
- Parameters:
collateralToken(string),borrowedToken(string)
Environment Variables
Section titled “Environment Variables”WALLET_PRIVATE_KEY: Required forLEND,BORROW,ADD_COLLATERAL,REMOVE_COLLATERAL,REPAY,WITHDRAW- The private key of the wallet to be used for interacting with the Fraxlend platform (e.g., signing transactions for lending, borrowing, etc.).
Configuration Example
Section titled “Configuration Example”{ "mcpServers": { "fraxlend-server": { "command": "pnpm", "args": ["dlx", "@iqai/mcp-fraxlend"], "env": { "WALLET_PRIVATE_KEY": "your_wallet_private_key_here" } } }}💬 Usage Examples
Section titled “💬 Usage Examples”- “Show my current FraxLend positions”
- “I want to lend 100 FRAX to the FRAX-ETH pool at 0x123…abc”
- ”Borrow 1000 FRAX using 2 ETH as collateral from the pool at 0x123…abc”
- ”What’s the pair address for FRAX-ETH pool with the highest APR?”
📜 Response Format
Section titled “📜 Response Format”Actions return structured responses, including:
✔ Transaction status & hash (for lending/borrowing) 🔗
✔ Formatted asset amounts 💲
✔ Error messages when applicable ⚠
✔ Lending market details 📈
❌ Error Handling
Section titled “❌ Error Handling”The plugin handles various error scenarios:
🚨 Invalid market addresses
💸 Insufficient collateral or liquidity
🔄 Transaction failures
🌐 Network issues
🛑 Input validation errors