MCP Server
Native MCP server integration for AI-powered blockchain interactions
The 256 Blocks MCP (Model Context Protocol) server enables AI agents to interact with blockchain networks directly. All MCP tool calls are converted to standard RPC requests and evaluated against your existing policies.
How It Works
- AI agent calls an MCP tool (e.g.,
eth_getBalance) - The request is reformatted as a standard RPC request
- Your policies are evaluated: Platform → Organization → API Key
- If allowed, the request is executed and results returned
This means any policies you've configured for RPC access also apply to MCP tool calls—no additional configuration required.
Supported Chains
See Blockchain Support for the full list of supported networks.
Available Tools
eth_blockNumber
Get the current block number.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
eth_call
Execute a read-only contract call.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
to | string | Yes | - |
data | string | Yes | - |
block | string | No | latest |
from | string | No | - |
gas | string | No | - |
gasPrice | string | No | - |
value | string | No | - |
eth_chainId
Get the chain ID.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
eth_gasPrice
Get the current gas price.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
eth_getBalance
Get the native token balance of an address.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
address | string | Yes | - |
block | string | No | latest |
eth_getBlockByHash
Get block information by block hash.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
block_hash | string | Yes | - |
full_transactions | boolean | No | false |
eth_getBlockByNumber
Get block information by block number.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
block_number | string | Yes | - |
full_transactions | boolean | No | false |
eth_getCode
Get the bytecode of a contract.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
address | string | Yes | - |
block | string | No | latest |
eth_getLogs
Query event logs for a specific block. Only single-block queries are supported.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
block_hash | string | One of these | - |
block_number | string | One of these | - |
address | string | No | - |
topics | array | No | - |
Block specification:
block_hashandblock_numberare mutually exclusive—use one or the otherblock_numberaccepts hex format (0x100) or tags (latest,finalized,safe,pending,earliest)
eth_getStorageAt
Read contract storage at a specific slot.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
address | string | Yes | - |
position | string | Yes | - |
block | string | No | latest |
eth_getTransactionByHash
Get transaction details by hash.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
tx_hash | string | Yes | - |
eth_getTransactionCount
Get the transaction count (nonce) for an address.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
address | string | Yes | - |
block | string | No | latest |
eth_getTransactionReceipt
Get transaction receipt by hash.
| Parameter | Type | Required | Default |
|---|---|---|---|
chain | string | Yes | - |
tx_hash | string | Yes | - |