# Infura MCP for AI Agents AI Agent Connect

> Infura MCP lets you query the Ethereum blockchain using natural language. Query blocks, check balances, estimate gas fees, and interact with smart contracts directly through your AI client. It connects your Infura account to any MCP-compatible tool so you can get real-time on-chain data without manual API calls.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_zcNhs7HfyaJLv7DnNOLkkLSXrkYErjMJsAu5BLC2/ai-agent-connect
- **Tags:** ethereum, web3, rpc-node, blockchain-data, smart-contracts

## Description

This Infura MCP connects your account to Infura's high-performance RPC nodes, letting you interact with the Ethereum blockchain using plain English. Instead of jumping between the Etherscan website, your terminal, and your code editor to piece together what's happening on-chain, you can just ask your AI agent. You can ask for a specific transaction's status, check how much ETH is in a wallet, or see what the current gas prices are before you push a contract update. It handles the heavy lifting of the RPC calls so you can stay focused on the logic of your dApp or your research. If you're debugging a contract, you can pull the current state or check the code at a specific address without leaving your chat window. Because it's hosted on Vinkius, you get a centralized way to manage this connection alongside your other tools, making it easy to swap between different blockchain queries without reconfiguring your entire setup. You just need your Infura Project ID to get started and start pulling real-time data into your workflow.

## Tools

### eth_blockNumber
Get the number of the most recent block. This helps you stay synced with the latest chain activity.

### eth_call
Execute a new message call immediately. Use this to test smart contract functions without spending gas.

### eth_gasPrice
Get the current gas price for the network. This is useful for checking real-time costs for standard transactions.

### eth_getBalance
Check the current balance of any Ethereum address. It returns the balance in wei for precise tracking.

### eth_getBlockByHash
Get detailed information about a block using its hash. This is great for deep-diving into specific history.

### eth_getCode
Retrieve the compiled code at a specific address. Use this to inspect the logic of a deployed smart contract.

### eth_getTransactionReceipt
Get the receipt for a completed transaction. Use this to see if a call succeeded and how much gas it cost.

### eth_chainId
Identify the current chain ID for the network. This confirms which network your agent is currently looking at.

### eth_estimateGas
Calculate the gas needed for a transaction. This helps you plan your deployment costs before you send them.

### eth_feeHistory
Retrieve a history of transaction fees. Use this to analyze how network costs fluctuate over time.

### eth_getBlockByNumber
Retrieve block data based on a specific block number. Use this to look up data from a known point in time.

### eth_getBlockTransactionCountByHash
Count the transactions within a specific block by hash. This helps you audit block density.

### eth_getBlockTransactionCountByNumber
Count the transactions within a specific block by number. This is a quick way to see how busy a block was.

### eth_getFilterChanges
Get updates for a specific filter. This helps you stay updated on specific blockchain events.

### eth_getLogs
Fetch logs that match a specific filter. This is essential for tracking specific smart contract events.

### eth_getTransactionByHash
Get full details for a transaction using its hash. Use this to see the inputs and status of a specific move.

### eth_getTransactionCount
Get the number of transactions sent from an address. This is the standard way to check a wallet's nonce.

### eth_newFilter
Create a new filter for polling data. This sets up a way to listen for new blockchain activity.

### eth_sendRawTransaction
Send a signed transaction to the network. This is the final step for pushing your signed data to the chain.

### get_suggested_gas_fees
Get suggested gas fees based on EIP-1559. This helps you set the right priority and base fees for your tx.

## Prompt Examples

**Prompt:** 
```
What's the current gas price on Ethereum?
```

**Response:** 
```
### Current Network Gas Prices

| Metric | Value | Notes |
| :--- | :--- | :--- |
| **Base Fee** | 15 Gwei | Current network average |
| **Priority Fee** | 1.5 Gwei | Suggested for standard tx |
| **Total Suggested** | 16.5 Gwei |

*Note: These prices can fluctuate rapidly based on network demand.*
```

**Prompt:** 
```
Check the balance of 0x742d35Cc6634C0532925a3b844Bc454e4438f44e at the latest block.
```

**Response:** 
```
The balance for that address is **1.0 ETH** (0xde0b6b3a7640000 wei).

*This was verified against the most recent block.*
```

**Prompt:** 
```
Give me the transaction receipt for 0x11B560F.
```

**Response:** 
```
### Transaction Receipt

*   **Status:** Success
*   **Block Number:** 18568719
*   **Gas Used:** 21,000
*   **Transaction Hash:** 0x11B560F
*   **Logs:** 2 events detected

The transaction was confirmed successfully.
```

## Capabilities

### Check wallet balances
Get the current ETH balance for any specific wallet address instantly.

### Estimate transaction gas
Calculate the gas needed for a transaction or get current network fee suggestions.

### Query smart contract code
Retrieve the compiled code for a contract at a given address.

### Fetch transaction receipts
Get the final status and details of a completed transaction using its hash.

### Monitor block data
Pull the latest block numbers, details, and transaction counts.

### Execute read-only calls
Run immediate message calls to smart contracts to check their current state.

## Use Cases

### Debugging a failed transaction
A developer asks why a contract call failed. The agent uses eth_getTransactionReceipt to show the specific error and gas usage.

### Real-time gas price monitoring
A trader asks for current fees before a swap. The agent uses eth_gasPrice to provide a live update on network congestion.

### Smart contract auditing
A researcher asks to see the code at a specific address. The agent uses eth_getCode to display the compiled contract logic.

### Blockchain data analysis
An analyst needs to know how many transactions were in a specific block. The agent uses eth_getBlockTransactionCountByNumber to find out.

## Benefits

- Stop manually checking Etherscan for transaction statuses by using eth_getTransactionReceipt to get instant updates in your chat.
- Save time on gas calculations by using eth_estimateGas and get_suggested_gas_fees to plan your deployments without guessing.
- Debug smart contracts faster by pulling code with eth_getCode and checking states with eth_call without leaving your editor.
- Analyze network trends easily by pulling historical data with eth_feeHistory and eth_gasPrice for your research reports.
- Monitor wallet activity in real-time by using eth_getBalance and eth_getTransactionCount to track specific addresses automatically.
- Simplify your dev workflow by using eth_getBlockByNumber to quickly pull data from any point in the Ethereum history.

## How It Works

The bottom line is you get direct, natural language access to the Ethereum blockchain without writing a single line of fetch code.

1. Subscribe to the Infura MCP on the Vinkius Marketplace.
2. Input your Infura Project ID and select your target network.
3. Ask your AI client questions like 'What is the current gas price?'

## Frequently Asked Questions

**How do I use the Infura MCP to check balances?**
You can simply ask your AI agent to check the balance of any Ethereum address. The Connector will query the blockchain and return the current ETH balance in your chat window instantly.

**Can the Infura MCP help with gas estimation?**
Yes, it can tell you exactly how much gas a transaction will likely cost. It also provides live suggestions for base and priority fees based on current network conditions.

**Does the Infura MCP support smart contract calls?**
It supports read-only calls to smart contracts. This means you can check the current state of a contract or run a function to see what it returns without spending any gas.

**How do I connect my Infura account to the Connector?**
Once you subscribe to the Connector on Vinkius, you just need to provide your Infura Project ID. This connects your account to the RPC nodes so your AI client can start querying data.

**Can I use the Infura MCP to see transaction history?**
Yes, you can ask the agent to pull details for a specific transaction hash. It will return the receipt, including status, gas used, and block information.

**Is the Infura MCP good for real-time data?**
Yes, because it connects to Infura's high-performance RPC nodes, it provides live data for gas prices, block numbers, and account balances as they happen on the chain.

**Can I check the balance of any Ethereum wallet address?**
Yes. Use the `eth_getBalance` tool with the target address. You can also specify the block parameter (e.g., 'latest') to get the most up-to-date balance in wei.

**How do I find out the current gas price for a transaction?**
You can use the `eth_gasPrice` tool to get the current price in wei, or use `getSuggestedGasFees` for a more detailed recommendation on priority and base fees.

**Can I inspect the details of a specific block using its number?**
Absolutely. Use the `eth_getBlockByNumber` tool. Provide the hex-encoded block number or a tag like 'latest', and set `full_tx` to true if you want to see all transaction objects within that block.