base-gas-mcp
v0.4.0Live Base gas, tx cost in USD, 4-chain comparison and gas history.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_base_gas Live Base gas and transaction cost
Live Base mainnet gas: EIP-1559 base fee, low/medium/high priority fees in gwei, the cost of a transaction in USD, ETH and gwei, and ready-to-sign maxFeePerGas / maxPriorityFeePerGas. Costs about $0.002. Each call makes a real USDC micropayment on Base mainnet via x402 from BUYER_PRIVATE_KEY; payments above MAX_USD_PER_CALL are refused. Do not call it in loops.
| Parameter | Type | Description |
|---|---|---|
gasLimit | integer | Gas units to price. 21000 ETH transfer (default), ~65000 ERC-20 transfer, ~85000 NFT mint, ~180000 Uniswap swap, ~1500000 contract deploy. |
get_gas_advice Send now or wait on Base
Should I send my Base transaction now or wait? Returns send_now or wait, the reason, the USD cost now and ready-to-sign EIP-1559 fees. Use before sending any transaction on Base. Costs about $0.003. Each call makes a real USDC micropayment on Base mainnet via x402 from BUYER_PRIVATE_KEY; payments above MAX_USD_PER_CALL are refused. Do not call it in loops.
| Parameter | Type | Description |
|---|---|---|
gasLimit | integer | Gas units to price. 21000 ETH transfer (default), ~65000 ERC-20 transfer, ~85000 NFT mint, ~180000 Uniswap swap, ~1500000 contract deploy. |
compare_gas_costs Compare gas costs across Base, OP, Arbitrum and Ethereum
Live cost of the same transaction on Base, OP Mainnet, Arbitrum One and Ethereum, in USD and ETH, ranked cheapest first. Costs about $0.01. Each call makes a real USDC micropayment on Base mainnet via x402 from BUYER_PRIVATE_KEY; payments above MAX_USD_PER_CALL are refused. Do not call it in loops.
| Parameter | Type | Description |
|---|---|---|
gasLimit | integer | Gas units to price. 21000 ETH transfer (default), ~65000 ERC-20 transfer, ~85000 NFT mint, ~180000 Uniswap swap, ~1500000 contract deploy. |
get_gas_history Base gas history and verdict
Base gas sampled every 5 minutes over a lookback window (default 24h): min/max/average/median and whether gas is cheap, normal, expensive or flat right now. Costs about $0.01. Each call makes a real USDC micropayment on Base mainnet via x402 from BUYER_PRIVATE_KEY; payments above MAX_USD_PER_CALL are refused. Do not call it in loops.
| Parameter | Type | Description |
|---|---|---|
hours | integer | Lookback window in hours, 1 to 168. Default 24. |
get_cheapest_window When to transact on Base
From 7 days of Base gas history: the hours of day to avoid, the cheapest hour (UTC), and the saving versus the average hour in percent and USD. Says so plainly when timing saves nothing. Costs about $0.02. Each call makes a real USDC micropayment on Base mainnet via x402 from BUYER_PRIVATE_KEY; payments above MAX_USD_PER_CALL are refused. Do not call it in loops.
| Parameter | Type | Description |
|---|---|---|
hours | integer | Lookback window in hours, 1 to 168. Default 168. |
get_service_status Service status and history coverage (free)
Free, no wallet needed. Reports whether the gas service is up and how much gas history it has collected, so you can decide whether the history tools are worth paying for.