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
Available Tools
8 toolsbase_gas_estimateA
Get current Base L2 gas prices in Gwei with safe/recommended/fast tiers.
Inputs: no named parameters. Returns: result
base_priceB
Get current price of a token on Base L2.
Inputs: token. Returns: result
contract_auditA
Scan smart contract code for vulnerabilities on Base L2. Returns risk score + findings.
Inputs: code (required). Returns: result
dex_quoteB
Get DEX swap quote on Base L2.
Inputs: amount (required), to_token (required), from_token (required). Returns: result
generate_mnemonicA
Generate a secure BIP39 mnemonic phrase.
Inputs: no named parameters. Returns: result
token_analyzerB
Analyze a token contract for honeypot risks, mint functions, ownership patterns. Returns risk score.
Inputs: address (required). Returns: result
wallet_healthB
Analyze wallet portfolio diversification, token concentration, and recent activity. Returns health score 0-100.
Inputs: address (required). Returns: result
yield_farmA
Scan DeFi protocols on Base for highest yield opportunities. Returns pool name, APY, TVL, risk level.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: auditing contracts, getting gas prices, finding yield, analyzing token risks, assessing wallet health, generating mnemonics, fetching prices, and getting DEX quotes. There is no overlap where two tools perform the same function.
Tool names are readable but follow mixed conventions: some use verb_noun (generate_mnemonic), some noun_verb (contract_audit), some noun_noun (wallet_health, dex_quote), and some have a base_ prefix while others don't. The pattern is not consistent enough to be predictable.
With 8 tools, the server is well-scoped within the ideal 3-15 range. Each tool covers a necessary aspect of the Base L2 agent domain without redundancy or bloat.
The set covers a broad range of analytical and informational operations (audit, gas, yield, token analysis, wallet health, price quotes), but lacks actual transaction execution, wallet address derivation, or balance checks. This creates notable gaps for a complete agent workflow, though the existing tools handle a coherent subset.
Maintenance
Related MCP Connectors
23-in-1 MCP server: EVM tx simulator, funding rate arb, macro radar, swap calldata & security.
DeFi MCP fleet: oracle, security audit, treasury yield, QA attestation, and compute tools on Base.
Multi-chain wallet MCP. 18 tools: balance, swap, bridge, stake, claim. Pay-per-call USDC (x402 v2).
x402-paid MCP tools & data APIs for agents — USDC on Base + Solana
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn 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.15 npm21MIT
- AlicenseAqualityBmaintenanceEight crypto and DeFi data tools for AI agents: prices, gas, one ParaSwap route quote, GoPlus token security and top-holder samples, DefiLlama yields, Hyperliquid/dYdX funding, and observed wallet balances. Inspect prices free; pay 0.001–0.008 USDC per call on Base through x402. No API key or subscription.8107 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP (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.MIT
- AlicenseAqualityDmaintenanceReal-time DeFi analytics MCP server for AI agents. Provides token risk analysis, yield scanning, and wallet exposure checking across Base, Ethereum, and Arbitrum.318 npm1MIT