Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Mcp Bamm

    Model Context Protocol Server for Borrow Automated Market Maker

    1 stars
    TypeScript
    Updated Jun 24, 2025

    Table of Contents

    • Overview
    • Features
    • Installation
    • Using npx (Recommended)
    • Build from Source
    • Running with an MCP Client
    • Minimal Configuration
    • Advanced Configuration (Local Build)
    • Configuration (Environment Variables)
    • Usage Examples
    • Position Management
    • Lending & Borrowing
    • Collateral Operations
    • MCP Tools
    • ADD_COLLATERAL
    • BORROW
    • LEND
    • REMOVE_COLLATERAL
    • REPAY
    • WITHDRAW
    • Development
    • Build Project
    • Development Mode (Watch)
    • Linting & Formatting
    • Project Structure
    • Resources
    • Disclaimer
    • License

    Table of Contents

    • Overview
    • Features
    • Installation
    • Using npx (Recommended)
    • Build from Source
    • Running with an MCP Client
    • Minimal Configuration
    • Advanced Configuration (Local Build)
    • Configuration (Environment Variables)
    • Usage Examples
    • Position Management
    • Lending & Borrowing
    • Collateral Operations
    • MCP Tools
    • ADD_COLLATERAL
    • BORROW
    • LEND
    • REMOVE_COLLATERAL
    • REPAY
    • WITHDRAW
    • Development
    • Build Project
    • Development Mode (Watch)
    • Linting & Formatting
    • Project Structure
    • Resources
    • Disclaimer
    • License

    Documentation

    BAMM MCP Server

    npm version

    License: MIT

    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:

    bash
    npx @iqai/mcp-bamm

    Build from Source

    bash
    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

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

    Advanced Configuration (Local Build)

    json
    {
      "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)

    VariableRequiredDescriptionDefault
    WALLET_PRIVATE_KEYYesPrivate 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

    ADD_COLLATERAL

    Add collateral to your BAMM position

    ParameterTypeRequiredDescription
    bammAddressstringYesThe address of the BAMM contract
    amountstringYesThe amount of collateral to add
    collateralTokenstringThe address of the collateral token
    collateralTokenSymbolstringThe symbol of the collateral token (e.g., 'IQT')

    BORROW

    Borrow tokens from a BAMM position

    ParameterTypeRequiredDescription
    bammAddressstringYesThe address of the BAMM contract
    amountstringYesThe amount to borrow
    borrowTokenstringThe address of the token to borrow
    borrowTokenSymbolstringThe symbol of the token to borrow (e.g., 'IQT')

    LEND

    Lend Fraxswap LP tokens to a BAMM contract

    ParameterTypeRequiredDescription
    bammAddressstringYesThe address of the BAMM contract
    amountstringYesThe amount of LP tokens to lend

    REMOVE_COLLATERAL

    Remove collateral from your BAMM position

    ParameterTypeRequiredDescription
    bammAddressstringYesThe address of the BAMM contract
    amountstringYesThe amount of collateral to remove
    collateralTokenstringThe address of the collateral token
    collateralTokenSymbolstringThe symbol of the collateral token (e.g., 'IQT')

    REPAY

    Repay borrowed tokens to a BAMM position

    ParameterTypeRequiredDescription
    bammAddressstringYesThe address of the BAMM contract
    amountstringYesThe amount to repay
    borrowTokenstringThe address of the token to repay
    borrowTokenSymbolstringThe symbol of the token to repay (e.g., 'IQT')

    WITHDRAW

    Withdraw LP tokens from a BAMM contract by redeeming BAMM tokens

    ParameterTypeRequiredDescription
    bammAddressstringYesThe address of the BAMM contract
    amountstringYesThe amount of BAMM tokens to withdraw

    Development

    Build Project

    bash
    pnpm run build

    Development Mode (Watch)

    bash
    pnpm run watch

    Linting & Formatting

    bash
    pnpm run lint
    pnpm run format

    Project Structure

    • src/tools/: Individual tool definitions
    • src/services/: API client and business logic
    • src/lib/: Shared utilities
    • src/index.ts: Server entry point

    Resources

    • BAMM Documentation
    • Model Context Protocol (MCP)
    • Fraxtal Network

    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

    MIT

    Similar MCP

    Based on tags & features

    • 4E

      4everland Hosting Mcp

      TypeScript·
      1
    • MC

      Mcp Wave

      TypeScript00
    • GL

      Glm Mcp Server

      TypeScript·
      3
    • OP

      Openai Gpt Image Mcp

      TypeScript·
      75

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • 4E

      4everland Hosting Mcp

      TypeScript·
      1
    • MC

      Mcp Wave

      TypeScript00
    • GL

      Glm Mcp Server

      TypeScript·
      3
    • OP

      Openai Gpt Image Mcp

      TypeScript·
      75

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k