BAMM (Fraxtal DeFi)▌

by iqaicom
Manage BAMM positions and leverage DeFi on Fraxtal with tools for lending Fraxswap LP tokens and borrowing against colla
Enables DeFi operations on Fraxtal blockchain by providing tools for managing BAMM positions, lending Fraxswap LP tokens, and borrowing against collateral
best for
- / DeFi traders managing BAMM positions
- / LP token holders seeking yield opportunities
- / AI agents automating Fraxtal DeFi strategies
capabilities
- / View and manage BAMM positions across pools
- / Lend Fraxswap LP tokens to earn yield
- / Borrow tokens against collateral
- / Add or remove collateral from positions
- / Access BAMM pool analytics and statistics
what it does
Connects AI agents to BAMM (Borrow Automated Market Maker) contracts on Fraxtal blockchain for DeFi operations. Manage positions, lend LP tokens, and borrow against collateral through natural language commands.
about
BAMM (Fraxtal DeFi) is a community-built MCP server published by iqaicom that provides AI assistants with tools and capabilities via the Model Context Protocol. Manage BAMM positions and leverage DeFi on Fraxtal with tools for lending Fraxswap LP tokens and borrowing against colla It is categorized under finance.
how to install
You can install BAMM (Fraxtal DeFi) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
BAMM (Fraxtal DeFi) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
BAMM MCP Server
Overview
The BAMM MCP Server enables AI agents to interact with Borrow Automated Market Maker (BAMM) contracts on the Fraxtal blockchain. This server provides comprehensive access to BAMM positions, lending, borrowing, and collateral management operations.
By implementing the Model Context Protocol (MCP), this server allows Large Language Models (LLMs) to manage BAMM positions, borrow against LP tokens, and perform other operations related to the BAMM protocol directly through their context window.
Features
- Position Management: View and manage your active BAMM positions across all pools.
- Lending Operations: Lend Fraxswap LP tokens to BAMM contracts to earn yield.
- Borrowing: Borrow tokens against your collateral from BAMM positions.
- Collateral Management: Add or remove collateral from your BAMM positions.
- Pool Analytics: Access statistics for all BAMM pools.
Installation
Using npx (Recommended)
To use this server without installing it globally:
npx @iqai/mcp-bamm
Build from Source
git clone https://github.com/IQAIcom/mcp-bamm.git
cd mcp-bamm
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": {
"bamm": {
"command": "npx",
"args": ["-y", "@iqai/mcp-bamm"],
"env": {
"WALLET_PRIVATE_KEY": "your_wallet_private_key_here"
}
}
}
}
Advanced Configuration (Local Build)
{
"mcpServers": {
"bamm": {
"command": "node",
"args": ["/absolute/path/to/mcp-bamm/dist/index.js"],
"env": {
"WALLET_PRIVATE_KEY": "your_wallet_private_key_here"
}
}
}
}
Configuration (Environment Variables)
| Variable | Required | Description | Default |
|---|---|---|---|
WALLET_PRIVATE_KEY | Yes | Private key of the wallet 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
Position Management
- "What are my current BAMM positions?"
- "Show me the stats for all BAMM pools."
Lending & Borrowing
- "Lend 100 LP tokens to the BAMM at address 0x..."
- "Borrow 50 FRAX from my BAMM position."
- "Repay 25 FRAX to my BAMM position."
Collateral Operations
- "Add 100 FRAX as collateral to my BAMM position."
- "Remove 50 USDC collateral from my position."
- "Withdraw my LP tokens from the BAMM."
MCP Tools
<!-- AUTO-GENERATED TOOLS START -->ADD_COLLATERAL
Add collateral to your BAMM position
| Parameter | Type | Required | Description |
|---|---|---|---|
bammAddress | string | Yes | The address of the BAMM contract |
amount | string | Yes | The amount of collateral to add |
collateralToken | string | The address of the collateral token | |
collateralTokenSymbol | string | The symbol of the collateral token (e.g., 'IQT') |
BORROW
Borrow tokens from a BAMM position
| Parameter | Type | Required | Description |
|---|---|---|---|
bammAddress | string | Yes | The address of the BAMM contract |
amount | string | Yes | The amount to borrow |
borrowToken | string | The address of the token to borrow | |
borrowTokenSymbol | string | The symbol of the token to borrow (e.g., 'IQT') |
LEND
Lend Fraxswap LP tokens to a BAMM contract
| Parameter | Type | Required | Description |
|---|---|---|---|
bammAddress | string | Yes | The address of the BAMM contract |
amount | string | Yes | The amount of LP tokens to lend |
REMOVE_COLLATERAL
Remove collateral from your BAMM position
| Parameter | Type | Required | Description |
|---|---|---|---|
bammAddress | string | Yes | The address of the BAMM contract |
amount | string | Yes | The amount of collateral to remove |
collateralToken | string | The address of the collateral token | |
collateralTokenSymbol | string | The symbol of the collateral token (e.g., 'IQT') |
REPAY
Repay borrowed tokens to a BAMM position
| Parameter | Type | Required | Description |
|---|---|---|---|
bammAddress | string | Yes | The address of the BAMM contract |
amount | string | Yes | The amount to repay |
borrowToken | string | The address of the token to repay | |
borrowTokenSymbol | string | The symbol of the token to repay (e.g., 'IQT') |
WITHDRAW
Withdraw LP tokens from a BAMM contract by redeeming BAMM tokens
| Parameter | Type | Required | Description |
|---|---|---|---|
bammAddress | string | Yes | The address of the BAMM contract |
amount | string | Yes | The amount of BAMM tokens to withdraw |
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 definitionssrc/services/: API client and business logicsrc/lib/: Shared utilitiessrc/index.ts: Server entry point
Resources
Disclaimer
This project interacts with blockchain smart contracts and handles cryptocurrency transactions. Users should exercise caution, verify all data independently, and understand the risks involved in DeFi operations.
License
FAQ
- What is the BAMM (Fraxtal DeFi) MCP server?
- BAMM (Fraxtal DeFi) is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for BAMM (Fraxtal DeFi)?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
BAMM (Fraxtal DeFi) is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated BAMM (Fraxtal DeFi) against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: BAMM (Fraxtal DeFi) is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
BAMM (Fraxtal DeFi) reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend BAMM (Fraxtal DeFi) for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: BAMM (Fraxtal DeFi) surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
BAMM (Fraxtal DeFi) has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, BAMM (Fraxtal DeFi) benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired BAMM (Fraxtal DeFi) into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
BAMM (Fraxtal DeFi) is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.