Blocknative MCP Server

An MCP server that provides real-time gas price predictions across multiple blockchains.

Local serverstdioPython

What is the Blocknative MCP Server?

An MCP server that provides real-time gas price predictions across multiple blockchains.

The short version

  • predict_gas_price: Fetches gas price predictions for a specified chain (default: Ethereum Mainnet, chain_id=1), including base fee and a table with confidence levels, price, max priority fee, and max fee
  • estimate_gas_cost: Estimates transaction costs based on gas limit, confidence level, and chain ID, returning costs in Gwei and ETH
  • get_supported_chains: Lists supported blockchains in a table with chain ID, system, and network
  • gas_price_query: A prompt template for querying gas prices at a specific confidence level and chain ID
  • Asynchronous — Uses httpx for non-blocking HTTP requests to Blocknative's Gas Price and Chains APIs
  • Optional API Key — Supports low-frequency access without a Blocknative API key; high-frequency use requires setting BLOCKNATIVE_API_KEY

What it needs from you

  • Python: Version 3.10 - uv: For dependency management and running the project (installation guide) - Blocknative API Key (optional): Required for high-frequency API access. Sign up at Blocknative to obtain a free API key.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Python: Version 3.10 - uv: For dependency management and running the project (installation guide) - Blocknative API Key (optional): Required for high-frequency API access. Sign up at Blocknative to obtain a free API key.
VariableDescriptionRequired
BLOCKNATIVE_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Blocknative to Example.”
  • “Use Blocknative to Tools.”
  • “Use Blocknative to Prompts.”

Frequently asked questions

The default blockchain is Ethereum Mainnet, with chain_id=1. Other chains can be specified via the chain_id parameter.