Base L2 Agent Kit

Base L2 Agent Kit

MCP server for Base L2 DeFi — wallets, swaps, liquidity, price feeds, flash loans

Category
Visit Server

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

Tool Description x402 Price
get_wallet_balance Check ETH, USDC, any ERC20 Free
get_transaction_history Recent transactions Free
send_transaction Simple transfers Free
swap_tokens DEX aggregation (1inch/Uniswap) $0.01
add_liquidity Uniswap V3 concentrated positions $0.03
remove_liquidity Exit + collect fees $0.03
get_token_price Chainlink + DEX aggregation $0.001
call_contract Read contract state $0.001
execute_flash_loan Aave 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured