# EVM block number (x402)

> EVM block number (x402) is an MCP server for crypto and web3. Pay-per-call MCP server returning the latest block number for Base and other EVM chains. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Contact sales
- **Platforms:** API, CLI
- **Website:** https://store.agentexchange.work
- **MCP Registry name:** work.agentexchange/block-number
- **Categories:** [crypto and web3](https://ai-powered.com/categories/crypto-and-web3)
- **Listing updated:** 2026-11-20

## About

This server gives AI clients a single tool to fetch the current block number on Base, Ethereum and other EVM-compatible networks. It is served over streamable HTTP, so an agent connects to the endpoint directly without installing anything locally.

Each call is priced at a fraction of a dollar in USDC on Base through the x402 payment protocol. There is no account, API key or subscription; the agent pays per request as it goes.

It suits agents and developers who need fresh chain state inside a workflow, such as checking whether a transaction has been confirmed or timing an on-chain action, without running their own node.

## Features

- **Latest block number:** Returns the current block height for Base, Ethereum and other supported EVM chains.
- **Pay per call:** Each request is settled in USDC on Base via x402, with no signup or key.
- **Streamable HTTP transport:** Connects to MCP clients over a remote endpoint with no local install.
- **Single focused tool:** Exposes one tool, get_chain_block_number, for a narrow and predictable interface.

## Good for

- Confirm a transaction has reached a recent block before triggering the next step in an agent workflow
- Check current chain height on Base or Ethereum from inside an AI assistant
- Add on-chain block context to monitoring or reporting agents without running a node

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http block-number 'https://store.agentexchange.work/chain/mcp?tools=get_chain_block_number'
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://store.agentexchange.work/chain/mcp?tools=get_chain_block_number
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "block-number": {
      "url": "https://store.agentexchange.work/chain/mcp?tools=get_chain_block_number"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "block-number": {
      "type": "http",
      "url": "https://store.agentexchange.work/chain/mcp?tools=get_chain_block_number"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "block-number": {
      "serverUrl": "https://store.agentexchange.work/chain/mcp?tools=get_chain_block_number"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://store.agentexchange.work/chain/mcp?tools=get_chain_block_number
```

Enter a Name (for example "EVM block number (x402)"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "block-number": {
      "type": "http",
      "url": "https://store.agentexchange.work/chain/mcp?tools=get_chain_block_number"
    }
  }
}
```

## Tools

All 1 tool say they're read-only. From the server's own tool annotations; not verified by us.

- `get_chain_block_number` (says read-only): The current chain tip (latest block height) via eth_blockNumber, across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. The freshness read settlement, indexing and trading agents poll to know where the chain is. Live public RPC; one paid call.

## FAQ

### How much does a call cost?

Each call is listed at 0.001 USD, paid in USDC on Base via x402.

### Do I need an account or API key?

No. The agent pays for each call directly, with no account or key required.

### Which chains are supported?

Base, Ethereum and other EVM chains are named in the listing; the tool returns the latest block number for them.

### How do I add EVM block number (x402) to Claude Code?

Run this command in your terminal: claude mcp add --transport http block-number 'https://store.agentexchange.work/chain/mcp?tools=get_chain_block_number'

### What are the best alternatives to EVM block number (x402)?

The closest alternatives to EVM block number (x402) are ERC-20 balance (x402), Native balance (x402), Chain reads (x402), Chain gas price (x402) and Prime-Agent x402 Intelligence.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 21 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [ERC-20 balance (x402)](https://ai-powered.com/mcp/erc-20-balance-x402): ERC-20 balance (x402) is a paid MCP server for finance and payments.
- [Native balance (x402)](https://ai-powered.com/mcp/native-balance-x402): Native balance (x402) is a paid MCP server for crypto and web3.
- [Chain reads (x402)](https://ai-powered.com/mcp/chain-reads-x402): Chain reads (x402) is a paid MCP server for crypto and web3.
- [Chain gas price (x402)](https://ai-powered.com/mcp/chain-gas-price-x402): Chain gas price (x402) is a paid MCP server for crypto and web3.
- [Prime-Agent x402 Intelligence](https://ai-powered.com/mcp/prime-agent-x402-intelligence): Prime-Agent x402 Intelligence is a paid MCP server for crypto and web3.
- [BRAINIAC Base Chain Data](https://ai-powered.com/mcp/brainiac-base-chain-data): BRAINIAC Base Chain Data is a paid MCP server for crypto and web3.
- [Crypto price, market cap, volume (x402)](https://ai-powered.com/mcp/crypto-price-market-cap-volume-x402): Crypto price, market cap, volume (x402) is a paid MCP server for finance and payments.
- [Base whale transfers (x402)](https://ai-powered.com/mcp/base-whale-transfers-x402): Base whale transfers (x402) is a paid MCP server for crypto and web3.

---
Source: https://ai-powered.com/mcp/evm-block-number-x402
