Gas Fee Predictor

io.github.higherbeing由 GitHub 帳號 higherbeing 發布v1.0.2更新於 Oct 24, 2026

Live Ethereum and L2 gas fees: current gas, cheapest L2, forecast, ETH price, cost estimates.

已驗證Streamable HTTP可網頁執行金融資料與分析

概覽

AI 產生的概覽

唯讀 MCP 伺服器,讓助理取得以太坊與 L2 即時 Gas 費用、ETH 價格、成本估算與 Gas 預測。

可以做什麼
  • 查詢以太坊主網目前 Gas 價格,附上 ETH/USD 價格與立即送出或等待的建議
  • 比較 Arbitrum、Base、Optimism、Polygon 的即時 L2 費用並找出最便宜的一個
  • 估算 ETH 轉帳、ERC-20/USDC 轉帳、Uniswap 兌換、NFT 鑄造或自訂 Gas 單位的美元成本
  • 取得最長 24 小時的逐小時 Gas 預測與下一個較便宜的時間窗口
  • 檢視所選時間範圍內的近期 Gas 歷史,含最小值、最大值與平均值
適用情境
適合回答現在 Gas 多少錢、該現在送出還是等待、哪個 L2 最便宜,以及某個鏈上動作大約要花多少美元等問題。
執行需求
可使用託管的 streamable HTTP 端點(免安裝、免帳號),或以 stdio 執行 npm 套件 gasfeepredictor-mcp,後者需要 Node 18 以上版本。不需要 API 金鑰或驗證。可用選用變數 GASFEE_API_BASE 覆寫 API 位址。
安裝前請注意
唯讀且無需驗證,不會索取任何憑證。資料來自第三方 API,約每 30 至 60 秒更新一次,屬於估算值,不應視為保證的成交價格。npm 套件提供的工具數量少於託管端點。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Gas Fee Predictor,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.higherbeing%2Fgasfeepredictor-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "gas-fee-predictor": {
      "type": "http",
      "url": "https://api.gasfeepredictor.com/api/mcp"
    }
  }
}

README

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/mcp

Streamable 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).

Client config, if your client wants JSON rather than a URL box
json
{  "mcpServers": {    "gasfeepredictor": {      "type": "streamable-http",      "url": "https://api.gasfeepredictor.com/api/mcp"    }  }}

Verify it yourself:

bash
curl -s -X POST https://api.gasfeepredictor.com/api/mcp \  -H 'Content-Type: application/json' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

2. npm package (stdio)

For clients that speak stdio only. Requires Node ≥ 18.

json
{  "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 varDefaultPurpose
GASFEE_API_BASEhttps://api.gasfeepredictor.comOverride the API base (e.g. for self-hosting).

Tools

ToolWhat it answersHostednpm
get_current_gas"What's the Ethereum gas fee right now?" — low/avg/high Gwei, ETH price, send-now-vs-wait.✅✅
get_l2_gas"Cheapest L2 right now?" — live Arbitrum / Base / Optimism / Polygon fees.✅✅
get_eth_priceCurrent ETH/USD and 24h change.✅✅
best_time_to_transactSend now or wait? Next cheaper window + expected savings.✅✅
estimate_transaction_costUSD cost of an ETH transfer / USDC transfer / Uniswap swap / NFT mint (or custom gas), per tier.✅✅
get_gas_forecastForward-looking hourly gas forecast, up to 24h ahead.✅—
get_gas_historyRecent 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.

來源:README.md,提交 f9c8ae4

工具

7

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.

輸入參數tieraction必填gas_units

get_gas_forecast

Get the forward-looking hourly Ethereum gas forecast (up to 24 hours ahead) with the predicted cheapest window. Use for "when will gas be cheaper", "should I wait until tomorrow", or planning a transaction.

輸入參數hours

get_gas_history

Get recent historical Ethereum mainnet gas prices over a chosen window, with min/max/average. Use to answer "what has gas been doing", "was gas cheaper yesterday", or to compare the current price against a recent baseline.

輸入參數range

版本歷史

2
  1. v1.0.2最新Oct 12, 2026
  2. v1.0.1Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分