Skip to main content
Glama
base-lp-locker-mcp

base-lp-locker-mcp

base-lp-locker-mcp

An MCP server for AI agents to lock, manage, and withdraw LP tokens on Base. Trustless liquidity locking with time-based unlock.

Install

npx -y base-lp-locker-mcp

Related MCP server: baselings-mcp

Tools

Tool

Description

lock_lp

Lock LP tokens for a specified duration (handles approval automatically)

get_lock

Get lock details by lock ID

get_user_locks

Get all locks for a wallet address

get_locker_info

Get contract info, fees, and total locks

withdraw_lp

Withdraw LP tokens after lock expires

extend_lock

Extend a lock's duration

Setup

{
  "mcpServers": {
    "base-lp-locker": {
      "command": "npx",
      "args": ["-y", "base-lp-locker-mcp"],
      "env": {
        "DEPLOYER_PRIVATE_KEY": "your-private-key"
      }
    }
  }
}

Use Cases

  • Rug-proof launches: Lock LP tokens to prove liquidity is safe

  • Vesting: Time-lock LP positions for team or investor allocations

  • Trust: Show holders that liquidity cannot be pulled

  • Extend: Add more time to existing locks without withdrawing

Fees

  • Lock fee: 0.001 ETH per lock — goes to platform treasury

  • Gas: ~150k gas per lock, ~80k per withdraw/extend

Contract

  • LPLocker: 0x32049c5B3E107737B8D00346C2241f9F21e9a154 (Base mainnet)

  • Verified on Basescan: View contract

License

MIT

Available Tools

6 tools
extend_lockA

Extend the duration of an existing LP lock. Only the lock owner can extend. Requires DEPLOYER_PRIVATE_KEY env var.

Inputs: lock_id (required), additional_days (required).

get_lockA

Get details of a specific LP lock by its lock ID. Returns owner, token, amount, unlock time, and status.

Inputs: lock_id (required).

get_locker_infoA

Get LPLocker contract info — current fee, total locks, treasury address. Use to verify the contract is live and check fees before locking.

Inputs: no named parameters.

get_user_locksA

Get all lock IDs for a given wallet address. Returns an array of lock IDs that can be queried individually with get_lock.

Inputs: address (required).

lock_lpA

Lock LP tokens in the LPLocker contract on Base. Handles ERC-20 approval automatically. Requires DEPLOYER_PRIVATE_KEY env var. Fee: 0.001 ETH per lock.

Inputs: token (required), amount (required), duration_days (required).

withdraw_lpA

Withdraw LP tokens from an expired lock. Only the lock owner can withdraw. Requires DEPLOYER_PRIVATE_KEY env var.

Inputs: lock_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a distinct purpose: locking, querying specific locks, listing user locks, checking contract info, withdrawing, and extending. No overlap or ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case (lock_lp, get_lock, get_user_locks, get_locker_info, withdraw_lp, extend_lock).

    Tool Count5/5

    Six tools is well-scoped for an LP locker management server, covering core actions without unnecessary bloat.

    Completeness5/5

    The surface covers the full LP lock lifecycle: create (lock), read (get_lock, get_user_locks, get_locker_info), update (extend_lock), and delete/terminal action (withdraw_lp). No significant gaps.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      MCP server for AI agents to play Baselings, a yield-generating pet game on Base chain. Enables agents to manage workers, claim yields, and execute strategies to earn USDC, ETH, or BTC.
      49
      18 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that provides AI agents with real-time access to DEX liquidity pool data, enabling smarter trading, analytics, and automated strategies.
      10
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that gives AI agents real-time access to DeFi across multiple chains, enabling non-custodial crypto trading, portfolio queries, and transaction execution.
      7
      MIT