API & MCP

Everything a person can do on Gas Fee Intelligence Explorer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://gasfeeintelligenceexplorer.usefulweb.site/api/v1/calculate – run Gas Fee Intelligence Explorer
  • GET https://gasfeeintelligenceexplorer.usefulweb.site/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Gas Fee Intelligence Explorer

Pulls eth_feeHistory (last 100 blocks, 10th/50th/90th percentile tips) and eth_gasPrice from Ethereum, Base, Arbitrum, OP Mainnet, Polygon, Avalanche and BNB Chain, prices the native tokens via DefiLlama and shows what a native transfer, ERC-20 transfer and swap cost on each chain — ranked cheapest first, with OP Stack L1 data fees as an upper bound.

Inputs of Gas Fee Intelligence Explorer
FieldTypeDefaultDescription
modeselect (live, pasted)"live"Data source
chainsmultiselect (ethereum, base, arbitrum, optimism, polygon, avalanche, bsc)["ethereum","base","arbitrum","optimism","polygon","avalanche","bsc"]Chains
blocksinteger100Blocks of fee history
pastedtextarea—Pasted JSON. {"prices":{"ETH":2400},"chains":{"ethereum":{"feeHistory":{…eth_feeHistory result…},"gasPrice":"0x…","l1FeeUpperBoundWei":{"erc20-transfer":"0x…"}}}}

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://gasfeeintelligenceexplorer.usefulweb.site/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: gas_fee_intelligence_explorer
  • Local stdio connector: node src/mcp-stdio.ts --tool=gas-fee-intelligence-explorer
{
  "mcpServers": {
    "gas-fee-intelligence-explorer": { "type": "http", "url": "https://gasfeeintelligenceexplorer.usefulweb.site/mcp" }
  }
}