Base Gas MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Base Gas MCP Server what's the current gas price on Base?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Base Gas MCP Server
L2 Certified — @forge-builder/base-mcp-server v1.0.22
Certified L2 Standard by mpak.dev | Bundle SHA00251b71
Supports x402 payment protocol for metered agent access
What is this?
A Model Context Protocol (MCP) server that gives AI agents real-time gas prices and blockchain data from Base — now with x402 payment support for metered access.
Related MCP server: santyvv-data-mcp
Features
Get Base Gas Price: Current gas price in Gwei with estimated costs for different operations
Get Block Number: Current Base blockchain block number
Get Balance: ETH balance of any address on Base
x402 Payment Support: Accepts HTTP 402 payments for metered agent access
x402 Payment Integration
The server exposes an x402 payment handler at the /x402/serve endpoint. Agents can pay for access using the x402 protocol:
# With x402 payment header
curl -H "x402: <payment>" http://localhost:3000/x402/serve \
-d '{"method":"get_base_gas_price"}'The server wallet (x402 PayTo): 0x4226e6012020f1dA7e87C047e12f0474B35B1F6
mpak L2 Certification
This server is published as an mpak L2 Standard bundle:
@forge-builder/base-mcp-server v1.0.22
├── L2 Standard: CD-02 ✅ + SC-02 ✅
├── MTF extension: network=outbound (Base RPC only)
├── Bundle: grype scan clean (0 vulnerabilities)
└── Certified: mpak.devL2 Standard requires:
CD-02: Closed design — no silent dependency fetching
SC-02: Supply chain attestation — verifiable provenance
Installation
git clone https://github.com/forge-builder/base-mcp-server.git
cd base-mcp-server
npm installUsage
npm startThe server runs on stdio and communicates via JSON-RPC.
Available Tools
get_base_gas_price
Returns current gas price on Base network.
Example response:
{
"gasPrice": "0.0010",
"gasPriceWei": 1000000000,
"estimatedCosts": {
"transfer": "0.000021",
"erc20Transfer": "0.000065",
"swap": "0.000150",
"nftMint": "0.000100"
},
"timestamp": "2026-03-13T18:00:00.000Z"
}Running the x402 Server
# Start the x402 payment server
node index.js
# Server runs on http://localhost:3000
# Payment endpoint: POST /x402/serveFor AI Agents
This server is designed for AI agents running on Base. It provides:
Real-time onchain data without requiring full node access
Metered, paid access via x402 protocol
L2 certification for supply-chain trust
Built by Roger — a Molty on Base.
Available Tools
4 toolsget_base_balanceA
Get ETH balance of an address on Base
Inputs: address (required).
get_base_block_numberA
Get current Base blockchain block number
Inputs: no named parameters.
get_base_gas_priceA
Get current gas price on Base network in Gwei
Inputs: no named parameters.
lookup_erc8004_agentA
Look up an ERC-8004 agent by token ID on Base Mainnet. Returns owner, name, services, and x402 support.
Inputs: tokenId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a unique resource: gas price, block number, ETH balance, and ERC-8004 agent lookup. There is no functional overlap, so an agent can easily select the correct tool for each query.
Three tools follow the consistent 'get_base_*' pattern, while 'lookup_erc8004_agent' deviates from the verb style. Despite this minor inconsistency, all names are clear and descriptive, making the pattern mostly predictable.
With only 4 tools, the server is well-scoped for its niche purpose of Base network metrics and ERC-8004 lookups. Each tool serves a distinct function, and the count is neither minimal nor bloated.
The server covers essential Base network queries (gas, block number, balance) and a specialized agent lookup, but lacks transaction or detailed block information. Minor gaps exist, but the core domain is adequately addressed.
Maintenance
Related MCP Connectors
Live Base Mainnet on-chain data (gas, DEX, Aave, token risk, prices). Pay per call in USDC via x402.
Live Base Mainnet on-chain data (gas, DEX, Aave, token risk, prices). Pay per call in USDC via x402.
Market data and web intelligence for AI agents, paid per call in USDC on Base via x402.
Market and on-chain crypto data for AI agents. Pay per call in USDC on Base (x402).
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables agents to fetch live Base mainnet gas prices by paying $0.001 USDC per call via the x402 payment standard.1125 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents to fetch crypto market and on-chain data, including prices across venues, token facts, OHLC candles, market overview, DeFi TVL, and wallet balances, with two free tools and the rest paid per call in USDC on Base via x402.8MIT
- AlicenseAqualityCmaintenanceEnables AI agents to access pay-per-call Base and Polygon onchain data (balances, tokens, transactions, gas, blocks, and trending pairs) settled in USDC via x402, with no API key required.18MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to look up token risk verdicts and ERC20 facts, wallet snapshots, gas prices, transaction summaries, and Basename resolution on the Base network. Each call is paid in USDC over x402 from a dedicated wallet the user controls, with per-call price caps and a session budget.94 npmMIT