Gas Fee Predictor
This MCP server provides read-only, unauthenticated Ethereum and Layer-2 gas-fee/ETH price data for AI agents.
Get current Ethereum mainnet gas prices (low/average/high Gwei), ETH/USD price, and send-now-vs-wait advice.
Compare live L2 gas fees on Arbitrum, Base, Optimism, and Polygon and find the cheapest.
Fetch ETH/USD spot price and 24-hour change.
Decide whether to transact now or wait, including expected savings and the next cheaper gas window.
Estimate USD gas costs for ETH transfers, ERC-20/USDC transfers, Uniswap swaps, NFT mints, or custom gas units at low/average/high tiers.
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., "@Gas Fee Predictor What's the current Ethereum gas fee?"
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.
Gas Fee Predictor — MCP Server
Live Ethereum + Layer-2 gas-fee data for AI agents, via the Model Context Protocol. Read-only, no API key, no account. Every answer carries a citation back to gasfeepredictor.com.
There are two ways to connect. Prefer the hosted one — there is nothing to install.
1. Hosted endpoint (recommended)
If your client supports remote MCP servers — ChatGPT and Claude connectors, Cursor, VS Code, and most current clients do — paste this URL and you are done:
https://api.gasfeepredictor.com/api/mcpStreamable HTTP, unauthenticated, no install, no config file, nothing to keep updated.
It exposes 7 tools — two more than the npm package (get_gas_forecast and
get_gas_history).
{
"mcpServers": {
"gasfeepredictor": {
"type": "streamable-http",
"url": "https://api.gasfeepredictor.com/api/mcp"
}
}
}Verify it yourself:
curl -s -X POST https://api.gasfeepredictor.com/api/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Related MCP server: Base Gas MCP Server
2. npm package (stdio)
For clients that speak stdio only. Requires Node ≥ 18.
{
"mcpServers": {
"gasfeepredictor": {
"command": "npx",
"args": ["-y", "gasfeepredictor-mcp"]
}
}
}Claude Desktop keeps that file at
~/Library/Application Support/Claude/claude_desktop_config.json on macOS.
Restart the client, then ask: "What's the Ethereum gas fee right now, and is it
cheaper on an L2?"
Env var | Default | Purpose |
|
| Override the API base (e.g. for self-hosting). |
Tools
Tool | What it answers | Hosted | npm |
| "What's the Ethereum gas fee right now?" — low/avg/high Gwei, ETH price, send-now-vs-wait. | ✅ | ✅ |
| "Cheapest L2 right now?" — live Arbitrum / Base / Optimism / Polygon fees. | ✅ | ✅ |
| Current ETH/USD and 24h change. | ✅ | ✅ |
| Send now or wait? Next cheaper window + expected savings. | ✅ | ✅ |
| USD cost of an ETH transfer / USDC transfer / Uniswap swap / NFT mint (or custom gas), per tier. | ✅ | ✅ |
| Forward-looking hourly gas forecast, up to 24h ahead. | ✅ | — |
| Recent historical mainnet gas over a chosen window, with min/max/avg. | ✅ | — |
Notes
Read-only and unauthenticated — it only reads public gas data.
Upstream data refreshes every ~30–60s.
Served from
api.gasfeepredictor.com, not the apex, so automated clients are not challenged by the CDN's bot protection.MIT licensed.
Changelog
1.1.0 — get_current_gas and estimate_transaction_cost now fall back to
/api/eth-price when the dashboard payload returns ethPrice: null (upstream price
cooldown). Previously they rendered ETH ≈ $undefined or failed outright while the
price endpoint was serving fine.
Available Tools
5 toolsbest_time_to_transactAInspect
Find out whether to send a transaction now or wait — returns the current recommendation, expected savings, and when the next cheaper gas window is predicted.
Inputs: no named parameters.
estimate_transaction_costAInspect
Estimate the current USD gas cost of a specific Ethereum mainnet action (ETH transfer, ERC-20/USDC transfer, Uniswap swap, or NFT mint), or a custom gas-units amount, at the chosen priority tier.
Inputs: action (required), gas_units, tier.
get_current_gasAInspect
Get the current Ethereum mainnet gas price (low / average / high, in Gwei) plus the live ETH/USD price and a send-now-vs-wait recommendation. Use this to answer "what is the gas fee right now".
Inputs: no named parameters.
get_eth_priceAInspect
Get the current ETH/USD spot price and its 24-hour change.
Inputs: no named parameters.
get_l2_gasAInspect
Compare live Layer-2 gas fees across Arbitrum, Base, Optimism, and Polygon (Gwei and the estimated wallet fee in USD for a standard transfer), and identify the cheapest right now. Use for "cheapest L2" / "L2 gas fees" questions.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct aspect of gas fees: timing advice, cost estimation for specific actions, current gas prices, ETH price, and L2 comparison. There is no overlapping functionality.
All tool names follow a consistent snake_case pattern with clear verb_noun structures (e.g., get_current_gas, estimate_transaction_cost, best_time_to_transact).
With 5 tools, the server is well-scoped for its purpose of gas fee prediction. It covers all essential queries without being overly minimal or bloated.
The tools cover current gas, cost estimation, timing, ETH price, and L2 comparison. Missing historical gas data or support for non-Ethereum L1s, but covers the core domain well.
Maintenance
Related MCP Connectors
Live crypto prices, conversion, gas tracker, portfolio tools, and calculators for AI agents.
Verified EVM, Aptos and finance tools for AI agents; gas for 14 chains. Pay per call (x402).
Live gas prices (slow/average/fast gwei) for Base, Ethereum and more. x402, 0.002 per call.
Live Base Mainnet on-chain data (gas, DEX, Aave, token risk, prices). Pay per call in USDC via x402.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI applications to retrieve on-chain context from EVM-compatible blockchains via the Model Context Protocol.-
- AlicenseAqualityDmaintenanceProvides AI agents with real-time gas prices and blockchain data from Base, with metered access via x402 payment protocol.4MIT
- AlicenseAqualityCmaintenanceEnables agents to fetch live Base mainnet gas prices by paying $0.001 USDC per call via the x402 payment standard.1125 npmMIT
- AlicenseNot gradedqualityCmaintenanceLive gas prices with gwei tiers, USD cost estimates, and congestion level. Time your transactions perfectly with pay-per-call via x402.MIT