kukapay/blocknative-mcp
FreeNot checkedReal-time gas price predictions across multiple blockchains from Blocknative.
About
Real-time gas price predictions across multiple blockchains from Blocknative.
README
An MCP server that provides real-time gas price predictions across multiple blockchains, powered by Blocknative.
Features
- Tools:
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.
- Prompt:
gas_price_query: A prompt template for querying gas prices at a specific confidence level and chain ID.
- Asynchronous: Uses
httpxfor 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.
Prerequisites
- 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.
Installation
Clone the Repository:
git clone https://github.com/kukapay/blocknative-mcp.git cd blocknative-mcpSet Up the Project with
uv:uv syncSet the Blocknative API Key (Optional):
- For high-frequency access, set the environment variable:
export BLOCKNATIVE_API_KEY="your-api-key-here" - For low-frequency access, skip this step.
- For high-frequency access, set the environment variable:
Usage
The server provides three tools and one prompt, accessible via the FastMCP framework. You can run the server in development mode, execute it directly, or integrate it with Claude Desktop.
Running the Server
Development Mode with MCP Inspector:
uv run mcp dev blocknative-mcpThis opens the MCP Inspector, a web interface for testing tools and prompts interactively.
Direct Execution:
uv run blocknative-mcpClaude Desktop Integration:
uv run mcp install blocknative-mcp --name "Blocknative MCP Server"This installs the server for use with Claude Desktop.
Tools
predict_gas_price(chain_id: int = 1) -> str: Fetches gas price predictions for a chain (default: Ethereum Mainnet). Returns base fee and a Markdown table with confidence levels, price, max priority fee, and max fee.- Example:
Gas Price Predictions for Chain ID 1 (ethereum/main): - Base Fee Per Gas: 0.382910791 Gwei | Confidence | Price (Gwei) | Max Priority Fee (Gwei) | Max Fee (Gwei) | |------------|--------------|-------------------------|----------------| | 99% | 0.52 | 0.14 | 0.9 | | 95% | 0.48 | 0.094 | 0.86 | | 90% | 0.47 | 0.089 | 0.85 | | 80% | 0.46 | 0.079 | 0.84 | | 70% | 0.45 | 0.069 | 0.83 |
- Example:
estimate_gas_cost(gas_limit: int, confidence: int = 99, chain_id: int = 1) -> str: Estimates transaction costs based on gas limit, confidence level, and chain ID. Returns costs in Gwei and ETH.- Example:
Estimated Gas Cost (Confidence 90%, Chain ID 1): - Gas Limit: 21000 - Max Fee Per Gas: 0.85 Gwei - Total Cost: 17850 Gwei (0.00001785 ETH)
- Example:
get_supported_chains(ctx: Optional[Context] = None) -> str: Lists supported chains in a Markdown table with chain ID, system, and network.- Example:
Supported Chains: | Chain ID | System | Network | |------------|----------|-----------| | 1 | ethereum | main | | 137 | polygon | mainnet | | 8453 | base | mainnet | | 11155111 | ethereum | sepolia |
- Example:
Prompts
gas_price_query(confidence: int, chain_id: int = 1) -> List[base.Message]: A prompt template for querying gas prices at a specific confidence level and chain ID.- Example:
- User: What is the current gas price for chain ID 1 transactions with 90% confidence? - Assistant: Let me fetch the gas price predictions for chain ID 1.
- Example:
License
This project is licensed under the MIT License. See the LICENSE file for details.
Installing kukapay/blocknative-mcp
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/kukapay/blocknative-mcpFAQ
Is kukapay/blocknative-mcp MCP free?
Yes, kukapay/blocknative-mcp MCP is free — one-click install via Unyly at no cost.
Does kukapay/blocknative-mcp need an API key?
No, kukapay/blocknative-mcp runs without API keys or environment variables.
Is kukapay/blocknative-mcp hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install kukapay/blocknative-mcp in Claude Desktop, Claude Code or Cursor?
Open kukapay/blocknative-mcp on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Stripe
Payments, customers, subscriptions
by Stripemalamutemayhem/unclick-agent-native-endpoints
110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n
by malamutemayhemwhiteknightonhorse/APIbase
API hub covering travel (Amadeus, Sabre), Polymarket prediction markets, crypto and weather, paid per call via x402 in USDC.
by whiteknightonhorsetrackerfitness729-jpg/sitelauncher-mcp-server
Deploy live HTTPS websites on subdomains or custom .xyz domains, paid in USDC on Base, with templates for crypto tokens and AI agent profiles.
embeddedlayers/mcp-analytics
Statistical analysis, forecasting and ML on CSV files or live data from Shopify, Stripe, GA4 and more, with interactive HTML reports.
by embeddedlayerscarrierone/verilexdata-mcp
Pay-per-query x402 datasets: NPI healthcare, SEC filings, OFAC sanctions, crypto whales, Polymarket signals, patents and economic indicators.
by carrieroneparacetamol951/P-Link-MCP
HTTP 402 (Payment Required) implementation using Solana.
by paracetamol951tipdotmd/tip-md-x402-mcp-server
Cryptocurrency tipping using the x402 payment protocol and CDP Wallet.
by tipdotmdlaundromatic/shopgraph
Structured product data from the open web — Schema.org + AI extraction for e-commerce enrichment. Pay per call via Stripe. [shopgraph.dev](https://shopgraph.dev
by laundromaticmrslbt/xendit-mcp
Xendit payment gateway for Southeast Asia: invoices, disbursements, balance checks and bank transfers.
by mrslbtCompare kukapay/blocknative-mcp with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All finance MCPs
