BaseGuard-402
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
BaseGuard-402
Ultra-Low-Cost Remote MCP & x402 Pre-Trade Firewall on Base ($0.003??0.005 USDC, Zero API Keys): Real-time EVM calldata phishing firewall, on-chain swap preflight simulation, honeypot detector, and edge-cached liquidity scanner with ready-to-use Coinbase AgentKit, ElizaOS, and Claude/Cursor plugins.
Why BaseGuard-402?
Autonomous trading bots on Base lose millions to unlimited approve(MAX_UINT256) drainers, EIP-2612 permit phishing, and honeypot tokens?”while legacy security APIs charge $0.01??0.05/call or gate access behind API keys and subscriptions.
BaseGuard-402 undercuts the market with stateless x402 micro-payments on Base L2:
Zero API keys, zero signups, zero external npm dependencies (pure Node.js ES Modules + Web Standard
fetch).Stateless Base Mainnet USDC verification: Every paid request sends
X-Payment-Tx: <0x_base_tx_hash>, verified directly against Base Mainnet RPC (status === "0x1", USDCTransferlog to0x6137ED1A93c8CFF1a6C3112A14bE04883f58E5F7, and 600-second anti-replay block timestamp check).Vercel Hobby-Tier Quota Protected: Free
?demo=truepreviews enforceCache-Control: public, s-maxage=60, stale-while-revalidate=120; paidX-Payment-Txcalls bypass demo throttling and edge-cache upstream DexScreener/GoPlus responses for 15s (s-maxage=15).
Related MCP server: Tollbooth MCP Server
Aggressive Micro-Pricing (Base USDC)
Endpoint | MCP Tool | Price (USDC) | Base Units | Engine |
|
| $0.003 |
| Deterministic EVM ABI & selector decoder (0 external API calls) |
|
| $0.005 |
| Direct Base RPC |
|
| $0.005 |
| Edge-cached (15s) DexScreener + GoPlus Security aggregator |
| ?? | Free |
| Live Base RPC latency, uptime, pricing & quota optimization status |
Live Deployment:
https://baseguard-402.vercel.appRemote MCP Endpoint:
https://baseguard-402.vercel.app/mcpx402 Pay-To Wallet (Base USDC):
0x6137ED1A93c8CFF1a6C3112A14bE04883f58E5F7Base USDC Asset:
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
10-Second Copy-Paste Integrations
1. Claude Desktop / Cursor / Windsurf (Remote MCP)
Add to your MCP config (claude_desktop_config.json or .cursor/mcp.json):
{
"mcpServers": {
"baseguard-402": {
"url": "https://baseguard-402.vercel.app/mcp"
}
}
}2. Coinbase AgentKit Pre-Swap Hook (examples/coinbase_agentkit_guard.ts)
import { assertSafeBaseTrade } from "./examples/coinbase_agentkit_guard";
// Screen calldata ($0.003 USDC) & token preflight ($0.005 USDC) before signing
await assertSafeBaseTrade({
calldata: tx.data,
to: tx.to,
tokenAddress: targetToken,
tradeAmountUsd: 1500,
wallet: agentKitWallet // auto-pays x402 challenge in Base USDC
});3. ElizaOS / ai16z Trading Agent Plugin (examples/elizaos_guard_action.ts)
import { baseGuardElizaPlugin } from "./examples/elizaos_guard_action";
const character = {
name: "BaseAlphaBot",
plugins: [baseGuardElizaPlugin]
};4. LangChain / AutoGPT Python Wrapper (examples/langchain_x402_tool.py)
from examples.langchain_x402_tool import baseguard_x402_request
verdict = baseguard_x402_request(
"/api/v1/calldata-firewall",
{"calldata": "0x095ea7b3000000000000000000000000deadbeefdeadbeefdeadbeefdeadbeefdeadbeeeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"},
demo=True, # Pass pay_usdc_fn=... in production
)
print(verdict["verdict"]) # -> {"action": "BLOCK", "severity": "CRITICAL", "riskScore": 80}Instant CLI Verification (Zero Cost)
# Test against live Vercel deployment
BASE_URL="https://baseguard-402.vercel.app" node test_x402.mjsQuick curl Demo (Catches Unlimited approve(MAX_UINT256) Drainer)
curl -s "https://baseguard-402.vercel.app/api/v1/calldata-firewall?demo=true"Discovery Manifests (CORS *)
/.well-known/x402.json??Machine-readable x402 payment & endpoint spec/.well-known/mcp.json??Remote MCP capability manifest/llms.txt??LLM-optimized agent directory summary/openapi.json??OpenAPI 3.1 specification
License
MIT ??see LICENSE. Maintained by meer9374-a11y.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pre-trade token and wallet safety for trading agents. 14 tools, pay per call (x402, USDC on Base).
x402 contract tools and premium portfolio scans for AI agents on Base.
Free token-safety scans + paid x402 verdicts, signals, radar & EVM swap quotes for AI agents.
Free token-safety scans + paid x402 verdicts, signals, radar & EVM swap quotes for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenancePay-per-use AI security and research tools for autonomous agents on Base, enabling honeypot detection, risk assessment, wallet analysis, and yield optimization via the x402 protocol.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to resolve tokens, get quotes, check for honeypots/rug pulls, build swaps, and retrieve receipts via x402 micropayments.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to run honeypot and owner-power safety checks on Base tokens and to read wallet ETH and USDC balances, with every answer sourced from real chain data and paid per call in USDC via x402.MIT
- AlicenseAqualityBmaintenanceEnables AI coding assistants and trading bots to verify smart contracts, test honeypot traps, assess DEX liquidity, and check wallet counterparty risk before deploying or trading capital on Base. It exposes preflight clearance, token audits, KYA reputation, and web-scraping tools with free and paid x402 tiers.9374 npmMIT