- Home
- MCP servers
- Infura
Infura
- typescript
1
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"deflang-infura-mcp": {
"command": "npx",
"args": [
"-y",
"infura-mcp"
],
"env": {
"INFURA_API_KEY": "your-api-key-here",
"WRITE_TOOLS_ENABLED": "false"
}
}
}
}infura-mcp is a MCP server that lets you query Ethereum blockchain data using Infura APIs. It translates natural language requests into on-chain data access, enabling you to fetch balances, blocks, transactions, and other Ethereum data through MCP-compatible endpoints with simple tooling.
How to use
You connect to the MCP server from a client that supports MCP endpoints. You’ll run a local or remote MCP server process that exposes the Ethereum data you need. You can enable read-only tools by default and, if you need write capabilities, toggle that option in the environment to unlock additional endpoints. When you query, you’ll access standard Ethereum data like account balances, blocks, transactions, logs, and more through the MCP interface.
How to install
Prerequisites: ensure you have Node.js and npm installed on your machine.
# Install dependencies
npm install
# Start the development server
npm run dev
Notes and usage details
Using the MCP with Claude Desktop or Docker is supported. You can run a local, self-contained MCP server via a simple command, or deploy via Docker to expose the service on port 3000. Make sure you provide your Infura API key or other required credentials, as shown in the example configuration.
{
"mcpServers": {
"everything": {
"command": "npx",
"args": [
"-y",
"infura-mcp"
],
"env": {
"INFURA_API_KEY": "your-api-key-here",
"WRITE_TOOLS_ENABLED": false
}
}
}
}
Available tools
eth_get_accounts
Return a list of accounts managed by the node or environment.
eth_get_balance
Return the balance of a given address at the latest block or a specified block.
eth_get_blob_base_fee
Retrieve the base fee per gas for blob storage operations (if supported).
eth_get_block_by_hash
Fetch a block given its hash.
eth_get_block_by_number
Fetch a block given its number (or latest/pending).
eth_get_block_number
Get the number of the most recent block.
eth_get_block_receipts
Get receipts for all transactions in a block.
eth_get_block_transaction_count_by_hash
Get the number of transactions in a block by hash.
eth_get_block_transaction_count_by_number
Get the number of transactions in a block by number.
eth_get_code
Get the code at a specific address.
eth_get_fee_history
Retrieve historical fee data for blocks.
eth_get_gas_estimate
Estimate the gas required for a transaction.
eth_get_gas_price
Get the current gas price.
eth_get_logs
Query logs matching given filters.
eth_get_proof
Generate a Merkle proof for account/ storage data.
eth_get_storage_at
Get storage data at a given slot for an address.
eth_get_transaction_by_block_hash_and_index
Fetch a transaction by its block hash and index.
eth_get_transaction_by_block_number_and_index
Fetch a transaction by its block number and index.
eth_get_transaction_by_hash
Get a transaction by its hash.
eth_get_transaction_count
Get the number of transactions sent from an address.
eth_get_transaction_receipt
Get the receipt for a transaction.
eth_get_uncle_by_block_hash_and_index
Fetch an uncle by block hash and index.
eth_get_uncle_by_block_number_and_index
Fetch an uncle by block number and index.
eth_get_uncle_count_by_block_hash
Get the number of uncles in a block by hash.
eth_get_uncle_count_by_block_number
Get the number of uncles in a block by number.
eth_get_work
Get mining work package.
eth_get_hashrate
Get the current hashrate of the network.
eth_max_priority_fee_per_gas
Get the max priority fee per gas.
eth_get_mining_status
Check if the node is currently mining.
eth_get_protocol_version
Get the Ethereum protocol version.
eth_send_raw_transaction
Submit a raw transaction for broadcast.
eth_get_simulated_transactions
Retrieve simulated transactions for testing.
eth_submit_work
Submit work for mining.
eth_get_sync_status
Check the node’s sync status.
eth_get_web3_client_version
Get the client version of the Web3 interface.