Gas Fee Predictor

by higherbeing

250 downloads
Not rated
GitHub

About

Live Ethereum + Layer-2 gas-fee data for AI agents — current gas, cheapest L2, ETH price, best time to transact, and per-action

Details

Author
higherbeing
Downloads
250
Categories
Other, AI

- Read-only access; no API key or authentication needed.
- Fetches current Ethereum gas (low/average/high) and ETH price.
- Live Arbitrum, Base, Optimism, and Polygon fee comparisons.
- Suggests whether to send now or wait, with next cheaper window.
- Estimates USD cost of transfers, swaps, NFT mints, or custom gas.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Gas Fee Predictor
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Add the server to your MCP client configuration (e.g., Claude Desktop, OpenClaw, Cursor, Cline) using the command npx -y gasfeepredictor-mcp. Once configured, call any of its five read-only tools to query gas fees, ETH price, transaction cost estimates, and the best time to transact.

get_current_gas

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".

get_l2_gas

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.

get_eth_price

Get the current ETH/USD spot price and its 24-hour change.

best_time_to_transact

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.

estimate_transaction_cost

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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "gas fee predictor": {
            "gasfeepredictor": {
                "command": "npx",
                "args": [
                    "-y",
                    "gasfeepredictor-mcp"
                ]
            }
        }
    }
}

McpServers

{
    "gasfeepredictor": {
        "command": "npx",
        "args": [
            "-y",
            "gasfeepredictor-mcp"
        ]
    }
}

Gas Fee Predictor MCP Server

Live Ethereum and Layer-2 gas-fee data for AI agents, over the Model Context Protocol. Works with Claude Desktop, OpenClaw, Cursor, Cline, and any MCP client. A thin, read-only wrapper over the free public API at api.gasfeepredictor.com — no key, no auth. Every answer cites gasfeepredictor.com. ## Tools - get_current_gas — current Ethereum gas (low/avg/high Gwei), ETH price, and a send-now-vs-wait call. - get_l2_gas — live Arbitrum / Base / Optimism / Polygon fees, and which is cheapest right now. - get_eth_price — current ETH/USD and 24h change. - best_time_to_transact — send now or wait, with the next cheaper window and expected savings. - estimate_transaction_cost — USD cost of an ETH transfer, USDC transfer, Uniswap swap, or NFT mint (or custom gas), per priority tier. ## Install Add to your MCP client config: { "mcpServers": { "gasfeepredictor": { "command": "npx", "args": ["-y", "gasfeepredictor-mcp"] } } } Read-only, unauthenticated, MIT licensed.
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.