mcpField
B
Base L2 Agent Kit

Base L2 Agent Kit

Local
mcp.soAI & Agents0Updated 12w ago

About Base L2 Agent Kit

Base L2 Agent Kit is an MCP server for AI agents performing DeFi operations on Base L2. It combines wallet and liquidity tools with transaction simulation, gas checks, and slippage protection.

Key features

  1. 01Check wallet balances and transaction history
  2. 02Send transactions and swap tokens
  3. 03Add or remove liquidity
  4. 04Fetch token prices and read contracts
  5. 05Run Aave V3 flash-loan arbitrage
  6. 06Simulate transactions and protect against slippage

Use cases

  1. 01Review Base wallet assets and transactions
  2. 02Swap tokens on Base
  3. 03Manage Uniswap V3 liquidity
  4. 04Run flash-loan arbitrage

MCP support

As an MCP server, it exposes nine tools for Base L2 wallet, token, liquidity, and contract operations to AI agents.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Base L2 Agent Kit

MCP server providing Base L2 DeFi tools for AI agents. Wallet management, token swaps, liquidity provision, price feeds, contract interaction, and flash loan arbitrage.

License: MIT Base MCP

Overview

Base L2 Agent Kit is an MCP server with 9 tools for Base L2 operations. Enables AI agents to manage wallets, swap tokens, provide liquidity, read price feeds, and execute flash loan arbitrage — all via typed tool calls.

Why Base L2?
  • Low gas — ~$0.01-0.05 per transaction
  • Fast finality — ~2 seconds
  • Deep liquidity — Uniswap V3, Aerodrome, Curve
  • Coinbase backed — Reliable infrastructure

Tools

ToolDescriptionx402 Price
get_wallet_balanceCheck ETH, USDC, any ERC20Free
get_transaction_historyRecent transactionsFree
send_transactionSimple transfersFree
swap_tokensDEX aggregation (1inch/Uniswap)$0.01
add_liquidityUniswap V3 concentrated positions$0.03
remove_liquidityExit + collect fees$0.03
get_token_priceChainlink + DEX aggregation$0.001
call_contractRead contract state$0.001
execute_flash_loanAave V3 flash loan arbitrage$0.05

Installation

Via Smithery (Recommended)
npx -y @smithery/cli install @ajcheasty2/base-l2-agent-kit
Manual (MCP Client)
{
  "mcpServers": {
    "base-l2-agent-kit": {
      "command": "npx",
      "args": ["-y", "@manteclaw/base-l2-agent-kit"],
      "env": {
        "ALCHEMY_API_KEY": "your-alchemy-key",
        "PRIVATE_KEY": "0x..."
      }
    }
  }
}
Docker
docker run -i --rm \
  -e ALCHEMY_API_KEY=your-key \
  -e PRIVATE_KEY=0x... \
  ghcr.io/manteclaw/base-l2-agent-kit:latest

Quick Start

// Check wallet balance
const balance = await client.callTool("get_wallet_balance", {
  address: "0x...",
  token: "USDC"
});

// Swap ETH → USDC
const swap = await client.callTool("swap_tokens", {
  fromToken: "ETH",
  toToken: "USDC",
  amount: "0.1",
  slippage: 0.5
});

// Flash loan arbitrage
const arb = await client.callTool("execute_flash_loan", {
  token: "USDC",
  amount: "10000",
  profitThreshold: 0.5
});

Safety

  • 🔒 Never store keys in plaintext — Use Bankr, encrypted keystores, or hardware wallets
  • 🧪 All transactions simulated before execution
  • ⛽ Gas checks — abort if > $0.10
  • 🛡️ Slippage protection — revert if exceeded
  • 🚫 No infinite approvals — exact-amount permits only
  • 🧪 Dry-run mode available

Revenue Model

  • x402 micropayments — $0.001-0.05 per tool call
  • MCP Market — subscription or per-call pricing
  • Enterprise — custom integration pricing

Links

License

MIT © manteclaw

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.