Base L2 Agent Kit
Provides RPC access to the Base L2 blockchain via Alchemy, enabling all on-chain operations including balance queries, transactions, swaps, liquidity provision, and contract calls.
Supplies decentralized price feeds for accurate token pricing in the get_token_price tool.
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.
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
Related MCP server: x402-api
Tools
Tool | Description | x402 Price |
| Check ETH, USDC, any ERC20 | Free |
| Recent transactions | Free |
| Simple transfers | Free |
| DEX aggregation (1inch/Uniswap) | $0.01 |
| Uniswap V3 concentrated positions | $0.03 |
| Exit + collect fees | $0.03 |
| Chainlink + DEX aggregation | $0.001 |
| Read contract state | $0.001 |
| Aave V3 flash loan arbitrage | $0.05 |
Installation
Via Smithery (Recommended)
npx -y @smithery/cli install @ajcheasty2/base-l2-agent-kitManual (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:latestQuick 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
Maintenance
Related MCP Servers
- Alicense-qualityCmaintenanceAn MCP server that enables fee-free USDC transfers on the Base blockchain network using Coinbase CDP MPC Wallet integration, with support for ENS and BaseName domain resolution.Last updated921MIT
- AlicenseAqualityDmaintenanceMCP server for pay-per-call DeFi and crypto data via x402 micropayments on Base. 8 endpoints: token prices, TVL, funding rates, token security, gas tracker, whale monitoring, wallet profiling, and yield scanning.Last updated850MIT
- Alicense-qualityDmaintenanceMCP (Model Context Protocol) server for the MAIN DEX on Base. Provides AI agents (Claude, Cursor, etc.) with tools to interact with the protocol: swap tokens, manage liquidity, enter/exit ALM strategies(10% APY), and more.Last updatedMIT
- Alicense-qualityDmaintenanceReal-time DeFi analytics MCP server for AI agents. Provides token risk analysis, yield scanning, and wallet exposure checking across Base, Ethereum, and Arbitrum.Last updated271MIT
Related MCP Connectors
32 paid x402 endpoints for crypto, Zora & on-chain analysis. 10 MCP tools. USDC on Base.
Multi-aggregator swap router for AI agents on Base. 10 bps fee. MCP-native, non-custodial.
Agent-commerce MCP server for x402/USDC payments and affiliate splits on Base.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/manteclaw/base-l2-agent-kit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server