Skip to content

💰 MCP FRAXLEND

Package: @iqai/mcp-fraxlend
Purpose: Interact with the Fraxlend lending platform

  • 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

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 assets from a specific Fraxlend pair:

  • Parameters: pairAddress (string), amount (string)
  • Requires: WALLET_PRIVATE_KEY

Add collateral to a specific Fraxlend pair:

  • Parameters: pairAddress (string), amount (string)
  • Requires: WALLET_PRIVATE_KEY

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 lent assets from a specific Fraxlend pair:

  • Parameters: pairAddress (string), amount (string)
  • Requires: WALLET_PRIVATE_KEY

Get the pair address for a specific Fraxlend pair:

  • Parameters: collateralToken (string), borrowedToken (string)
  • WALLET_PRIVATE_KEY: Required for LEND, 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.).
{
"mcpServers": {
"fraxlend-server": {
"command": "pnpm",
"args": ["dlx", "@iqai/mcp-fraxlend"],
"env": {
"WALLET_PRIVATE_KEY": "your_wallet_private_key_here"
}
}
}
}
  • “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?”

Actions return structured responses, including:

Transaction status & hash (for lending/borrowing) 🔗
Formatted asset amounts 💲
Error messages when applicable
Lending market details 📈

The plugin handles various error scenarios:

🚨 Invalid market addresses
💸 Insufficient collateral or liquidity
🔄 Transaction failures
🌐 Network issues
🛑 Input validation errors