# mcp-block-data [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/CryptoAPIs-io/cryptoapis-mcp-block-data  
**GitHub Stars:** 0  
**npm Downloads (last month):** 697  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-block-data

## Description
MCP server for retrieving block-level data from EVM, UTXO, and XRP blockchains via Crypto APIs

## Tools
Capabilities this server exposes over MCP:

- **evm_block_data** — Get EVM block details.
- **utxo_block_data** — Get UTXO block details (Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, Zcash).
- **xrp_block_data** — Get XRP block (ledger) details.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-block-data": {
    "command": "npx",
    "args": ["-y","@cryptoapis-io/mcp-block-data"],
    "env": {
      "CRYPTOAPIS_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `CRYPTOAPIS_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-block-data does

mcp-block-data exposes Crypto APIs Block Data operations through the Model Context Protocol. It covers three blockchain data models:

- EVM networks: Ethereum, Ethereum Classic, BSC, Polygon, Avalanche C-Chain, Arbitrum, Base, Optimism, and Tron.
- UTXO networks: Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, and Zcash.
- XRP mainnet and testnet, represented through ledger data.

Each model has a dedicated MCP tool: `evm_block_data`, `utxo_block_data`, or `xrp_block_data`. The server is compatible with Crypto APIs version 2024-12-12.

## How it works

The tools accept actions for looking up a block by height or hash and for listing transactions from a block using either identifier. They also provide an action for retrieving the last mined block and another for listing the latest mined blocks. For XRP, height-based lookups use the ledger index and hash-based lookups use the ledger hash.

The package can communicate with MCP clients through stdio or HTTP. Stdio is the default transport and is intended for local process-based integrations. HTTP listens on `127.0.0.1` by default, uses port 3000 unless changed, and exposes the MCP endpoint at `/mcp` unless another path is configured.

## Setup and configuration

Install the package with npm:

```bash
npm install @cryptoapis-io/mcp-block-data
```

Node.js 18 or newer and a Crypto APIs account with an API key are required. Supply the key with `--api-key` or set `CRYPTOAPIS_API_KEY`. Stdio requires an API key when the process starts.

For HTTP mode, run the server with `--transport http`. A startup API key applies to all requests. If no startup key is supplied, each request must provide a valid `x-api-key` header, which supports per-request key handling. Configure `--host`, `--port`, `--path`, and `--stateless` as needed.

When binding HTTP to a non-loopback address, use `--allowed-hosts` for the Host header allowlist and protect access with a bearer token through `MCP_AUTH_TOKEN` or `--auth-token` when using a startup API key. Prefer the environment variable for the token because command-line arguments can appear in the process list.

Claude Desktop and Cursor can launch the package with `npx` and pass `CRYPTOAPIS_API_KEY` in their MCP configuration. The HTTP endpoint can also be added to an n8n MCP Client Tool. MCP Inspector can launch the stdio server for testing.

## Tools and capabilities

`evm_block_data` supports block lookup by number or hash, transaction listing by either identifier, the latest mined block, and a list of latest mined blocks across the supported EVM networks.

`utxo_block_data` provides the same action set for Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, and Zcash.

`xrp_block_data` provides equivalent block-data actions for XRP ledgers. Height-based operations use a ledger index, while hash-based operations use a ledger hash. The tool supports XRP mainnet and testnet.

## Limitations and notes

A valid Crypto APIs key is necessary before making requests. Requests made without a valid key may result in an IP ban from the Crypto APIs ecosystem. HTTP mode defaults to local-only access; accepting connections from other machines or containers requires an explicit host binding and appropriate authentication settings.

The package is licensed under MIT. Crypto APIs also provides a hosted remote MCP endpoint at `https://ai.cryptoapis.io/mcp`, which accepts the API key through the `x-api-key` header and avoids local installation.

_Full upstream README: https://allmcps.com/mcp/mcp-block-data/readme_

