# Blockchair MCP for AI Agents AI Agent Connect

> Blockchair MCP gives your agent direct access to real-time data from over 20 blockchains, including Bitcoin and Ethereum. It lets you pull network stats, inspect wallet balances, and filter transactions using SQL-like queries without jumping between different explorers.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_5UGquZAtkUXwg20SDzhN0BLiU6oYCsjOeodEugDs/ai-agent-connect
- **Tags:** bitcoin, ethereum, blockchain-explorer, crypto-api, transaction-tracking

## Description

Blockchair provides a way to query real-time data from over 20 blockchains, including Bitcoin and Ethereum. If you're trying to track what's actually happening on the blockchain, you usually end up with twenty tabs open. You're jumping from one explorer to another, copy-pasting transaction hashes, and trying to cross-reference block heights while your coffee gets cold. This Connector changes that by giving your agent a single point of entry for decentralized data across networks like Bitcoin, Ethereum, and Litecoin. Instead of manually digging through block headers or hunting for specific transaction fees, you can just ask your agent to do the heavy lifting. It handles the messy stuff like pulling internal contract calls or digging into HD wallet history. You can pull specific datasets for research or just check a balance in seconds. Because it's hosted on Vinkius, you get this deep level of connectivity without having to manage complex API integrations yourself. It's built for when you need the ground truth of a transaction or a network's health without the friction of manual searching. You don't have to worry about the underlying request structures or the nuances of different chain protocols. Whether you're looking for a specific UTXO set or trying to verify the state of a complex smart contract, the agent pulls the data and presents it to you in plain English. It turns a tedious data-gathering mission into a simple conversation, letting you focus on the analysis rather than the navigation.

## Tools

### get_blockchain_stats
Pull general network health data like block height and difficulty.

### get_transaction
Get the specific details of a single transaction hash.

### get_xpub
Fetch and analyze data for an entire HD wallet using an extended public key.

### push_transaction
Broadcast a raw hex-encoded transaction directly to the blockchain.

### validate_address
Check if a specific address is valid for a chosen blockchain network.

### get_block
Get the full details of a specific block on the network.

### get_contract_calls
Access internal Ethereum contract transactions for deeper debugging.

### get_erc20_token_address
Check the balance of a specific ERC-20 token for any given address.

### filter_blocks
Query blocks using SQL-like filters for things like time ranges or transaction counts.

### filter_transactions
Filter transactions based on specific criteria like fees, values, or timestamps.

### get_address
Retrieve the balance, history, and UTXO set for a specific wallet address.

## Prompt Examples

**Prompt:** 
```
What's the current status of the Bitcoin network?
```

**Response:** 
```
I've retrieved the latest Bitcoin stats. Here's the current network health:

| Metric | Value |
| :--- | :--- |
| **Block Height** | 834,291 |
| **Difficulty** | 79.35T |
| **Total Transactions** | 980M+ |

The network is currently healthy and moving at a steady pace.
```

**Prompt:** 
```
Find me all Ethereum transactions from today with a fee over 0.01 ETH.
```

**Response:** 
```
I've filtered the Ethereum transactions for you. I found 14 transactions matching that fee criteria from today. 

**Top 3 Results:**
* **Tx Hash:** 0x4a5e... (Fee: 0.042 ETH)
* **Tx Hash:** 0x7b2d... (Fee: 0.038 ETH)
* **Tx Hash:** 0x1c9e... (Fee: 0.031 ETH)

Would you like me to list all 14 hashes for you?
```

**Prompt:** 
```
Check the balance for this address: 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
```

**Response:** 
```
I've checked that Ethereum address for you:

* **Current Balance:** 12.5 ETH
* **Total Transactions:** 45
* **Recent Activity:** The last transaction was a transfer of 1.2 ETH on 2024-03-15.

Let me know if you want to see the full history for this wallet.
```

## Capabilities

### Pull network health stats
Get real-time block height, difficulty, and network health for any supported chain.

### Check wallet balances and history
Retrieve the current balance and full transaction history for any specific wallet address.

### Filter transactions by fee or time
Query specific transactions using SQL-like filters for fees, values, or timestamps.

### Inspect internal Ethereum contract calls
Access deep internal transaction data for Ethereum smart contracts.

### Analyze HD wallet data via xpub
Retrieve and analyze the data for an entire HD wallet using an extended public key.

### Broadcast raw transactions
Send raw hex-encoded transactions directly to the blockchain network.

## Use Cases

### Debugging a failed contract
A developer asks the agent to check internal calls for a specific transaction using get_contract_calls to find where a smart contract failed.

### Researching fee trends
An analyst asks for all Bitcoin transactions with fees over 50,000 satoshis from the last 24 hours using filter_transactions.

### Portfolio tracking
A user wants to see the balance of a specific ERC-20 token for a list of addresses using get_erc20_token_address.

### Network monitoring
A developer needs to know the current block height and difficulty of the Litecoin network using get_blockchain_stats.

## Benefits

- Stop switching between different blockchain explorers by using a single tool for multiple chains.
- Get instant network health metrics like difficulty and block height using get_blockchain_stats.
- Analyze complex HD wallets quickly by pulling all data from an xpub with get_xpub.
- Filter through thousands of transactions using SQL-like queries in filter_transactions.
- Debug internal Ethereum contract calls directly in your IDE using get_contract_calls.
- Verify wallet balances and transaction histories for any address using get_address.

## How It Works

The bottom line is you get a universal blockchain search engine inside your AI client.

1. Subscribe to the Blockchair MCP on Vinkius.
2. Add your Blockchair API key to your configuration.
3. Ask your agent to query specific blockchain data or filter transactions.

## Frequently Asked Questions

**Can Blockchair MCP track both Bitcoin and Ethereum?**
Yes, it provides a universal way to query data across 20+ networks, including Bitcoin and Ethereum, from a single interface.

**How do I use Blockchair MCP to find high-fee transactions?**
You can simply describe the fee requirements and the time range you're interested in, and the agent will filter the blockchain data for you.

**Does Blockchair MCP support HD wallets?**
Yes, it can retrieve and analyze data for entire HD wallets by using an extended public key (xpub).

**Can I use Blockchair MCP to debug smart contracts?**
Yes, it can pull internal Ethereum contract calls, which is essential for seeing what's happening inside a smart contract transaction.

**Is Blockchair MCP good for data research?**
It's excellent for research because it supports SQL-like filtering, allowing you to extract specific datasets based on fees, values, or dates.

**How do I get network stats with Blockchair MCP?**
Just ask your agent for the stats of a specific chain, and it will return the current block height, difficulty, and other health metrics.

**Can I search across different blockchains using this server?**
Yes! You can specify the blockchain (e.g., 'bitcoin', 'ethereum', 'dogecoin') in tools like `get_blockchain_stats` or `get_address` to retrieve data from that specific network.

**How do I filter transactions by specific criteria like high fees?**
Use the `filter_transactions` tool. You can provide a query string `q` such as `fee(10000..)` to find transactions with fees over 10,000 units, and sort them using the `s` parameter.

**Can I check the balance of a specific ERC-20 token on Ethereum?**
Yes, use the `get_erc20_token_address` tool by providing the token's contract address and the wallet address you want to check.