Fraxlend MCP Server

Fraxlend MCP Server

mcp-fraxlend•byiqaicom

An MCP server that lets LLM agents interact with the Fraxlend DeFi lending protocol on Fraxtal to discover pools, lend, borrow, manage collateral, repay loans and withdraw funds.

License: MIT•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Discovers and filters Fraxlend pools by asset and collateral tokens, with options to sort results by APR.
  • •Supports lending assets to earn yield and borrowing assets against collateral from Fraxlend pools.
  • •Provides tools to add or remove collateral, repay borrowed assets and withdraw lent funds.
  • •Tracks lending and borrowing positions across pools and exposes them through a dedicated tool.

BEST FOR

  • •Agents that need to query Fraxlend pool availability and current positions.
  • •Users wanting to lend or borrow assets in Fraxlend pools via an LLM client.
  • •Managing an existing borrowing position, such as adding collateral or repaying a loan.

ABOUT MCP-FRAXLEND

Fraxlend MCP Server is cataloged as an MCP server attributed to iqaicom. An MCP server that lets LLM agents interact with the Fraxlend DeFi lending protocol on Fraxtal to discover pools, lend, borrow, manage collateral, repay loans and withdraw funds. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Fraxlend MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the Fraxlend MCP server require a wallet private key?

Yes, the WALLET_PRIVATE_KEY environment variable is required for signing transactions.

Is this project affiliated with Frax Finance?

No, the project describes itself as an unofficial tool not directly affiliated with Frax Finance.

上游原版 README

在 GitHub 查看同一版本原文

README.md · d77f73b5cb37 · 采集于 2026-11-13 11:39:27 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Fraxlend MCP Server

npm version License: MIT

Overview

The Fraxlend MCP Server enables AI agents to interact with Fraxlend, a DeFi lending protocol on Fraxtal. This server provides comprehensive access to lending pools, allowing agents to view statistics, lend assets, borrow, manage collateral, repay loans, and withdraw funds.

By implementing the Model Context Protocol (MCP), this server allows Large Language Models (LLMs) to interact with Fraxlend pools, manage positions, and execute DeFi operations directly through their context window.

Features

  • Pool Discovery: Search and filter FraxLend pools by asset and collateral tokens.
  • Lending Operations: Lend assets to earn yield from borrowers.
  • Borrowing: Borrow assets against collateral from FraxLend pools.
  • Collateral Management: Add or remove collateral from lending positions.
  • Position Tracking: Monitor your lending and borrowing positions across pools.
  • Loan Repayment: Repay borrowed assets to reduce debt.

Installation

To use this server without installing it globally:

npx @iqai/mcp-fraxlend

Build from Source

git clone https://github.com/IQAIcom/mcp-fraxlend.git
cd mcp-fraxlend
pnpm install
pnpm run build

Running with an MCP Client

Add the following configuration to your MCP client settings (e.g., claude_desktop_config.json).

Minimal Configuration

{
  "mcpServers": {
    "fraxlend": {
      "command": "npx",
      "args": ["-y", "@iqai/mcp-fraxlend"],
      "env": {
        "WALLET_PRIVATE_KEY": "your_wallet_private_key_here"
      }
    }
  }
}

Advanced Configuration (Local Build)

{
  "mcpServers": {
    "fraxlend": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-fraxlend/dist/index.js"],
      "env": {
        "WALLET_PRIVATE_KEY": "your_wallet_private_key_here"
      }
    }
  }
}

Configuration (Environment Variables)

VariableRequiredDescriptionDefault
WALLET_PRIVATE_KEYYesYour wallet private key for signing transactions-

Security Note: Handle your private key with extreme care. Ensure it is stored securely and only provided to trusted MCP client configurations.

Usage Examples

Pool Discovery

  • "What FraxLend pools are available for FRAX?"
  • "Find pools where I can use ETH as collateral."
  • "Show me the highest APR lending pools."

Lending & Borrowing

  • "Lend 1000 FRAX to the FRAX/sfrxETH pool."
  • "Borrow 500 FRAX using my sfrxETH as collateral."
  • "What are my current positions in FraxLend?"

Position Management

  • "Add more collateral to my borrowing position."
  • "Remove excess collateral from my position."
  • "Repay my loan in the FRAX pool."
  • "Withdraw my lent assets from the pool."

MCP Tools

FRAXLEND_ADD_COLLATERAL

Add collateral to a FraxLend position

ParameterTypeRequiredDescription
pairAddressstringYesThe contract address of the asset to add as collateral.
amountstringYesThe amount for the asset to add as collateral in the FraxLend pool.

FRAXLEND_BORROW

Borrow assets from a FraxLend pool

ParameterTypeRequiredDescription
pairAddressstringYesThe contract address of the agent token to sell.
receiverstringYesThe address to receive the borrowed assets.
collateralAmountstringYesThe amount for the collateral asset to deposit in the FraxLend pool.
borrowAmountstringYesThe amount for the asset to borrow from the FraxLend pool.

FRAXLEND_GET_PAIR_ADDRESS

Get FraxLend pair addresses and pool information

ParameterTypeRequiredDescription
assetSymbolstringThe symbol of the asset token.
collateralSymbolstringThe symbol of the collateral token.
sortByAprstringSort the results by APR, either highest or lowest.

FRAXLEND_GET_POSITIONS

Get your positions in FraxLend pools

ParameterTypeRequiredDescription
addressstringThe address of the user to get the positions for

FRAXLEND_LEND

Lend assets to a FraxLend pool

ParameterTypeRequiredDescription
pairAddressstringYesThe contract address of the asset to lend.
amountstringYesThe amount for the asset to lend in the FraxLend pool.

FRAXLEND_REMOVE_COLLATERAL

Remove collateral from a FraxLend position

ParameterTypeRequiredDescription
pairAddressstringYesThe contract address of the asset to remove as collateral.
amountstringYesThe amount for the asset to remove collateral from the FraxLend pool.

FRAXLEND_REPAY

Repay borrowed assets to a FraxLend pool

ParameterTypeRequiredDescription
pairAddressstringYesThe contract address of the asset to repay.
amountstringYesThe amount for the asset to repay in the FraxLend pool.

FRAXLEND_WITHDRAW

Withdraw assets from a FraxLend pool

ParameterTypeRequiredDescription
pairAddressstringYesThe contract address of the asset to withdraw.
amountstringYesThe amount for the asset to withdraw from the FraxLend pool.

Development

Build Project

pnpm run build

Development Mode (Watch)

pnpm run watch

Linting & Formatting

pnpm run lint
pnpm run format

Project Structure

  • src/tools/: Individual tool definitions
  • src/services/: Business logic and blockchain interactions
  • src/lib/: Shared utilities
  • src/index.ts: Server entry point

Resources

Disclaimer

This project is an unofficial tool and is not directly affiliated with Frax Finance. It interacts with DeFi protocols and blockchain transactions. Users should exercise caution, verify all data independently, and understand the risks involved in lending, borrowing, and managing collateral in DeFi protocols.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Fraxlend MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-fraxlend)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics