cryptoapis-mcp-block-data
OfficialProvides block data capabilities for the Bitcoin blockchain, including retrieving block details by height or hash, listing transactions in a block, and getting the latest mined blocks.
Provides block data capabilities for the Bitcoin Cash blockchain, including retrieving block details by height or hash, listing transactions in a block, and getting the latest mined blocks.
Provides block data capabilities for the Dash blockchain, including retrieving block details by height or hash, listing transactions in a block, and getting the latest mined blocks.
Provides block data capabilities for the Dogecoin blockchain, including retrieving block details by height or hash, listing transactions in a block, and getting the latest mined blocks.
Provides block data capabilities for the Ethereum blockchain, including retrieving block details by height or hash, listing transactions in a block, and getting the latest mined blocks.
Provides block data capabilities for the Litecoin blockchain, including retrieving block details by height or hash, listing transactions in a block, and getting the latest mined blocks.
Provides block data capabilities for the Optimism blockchain, including retrieving block details by height or hash, listing transactions in a block, and getting the latest mined blocks.
Provides block data capabilities for the Polygon blockchain, including retrieving block details by height or hash, listing transactions in a block, and getting the latest mined blocks.
Provides block data capabilities for the XRP Ledger, including retrieving ledger details by index or hash, listing transactions in a ledger, and getting the latest closed ledger.
Provides block data capabilities for the Zcash blockchain, including retrieving block details by height or hash, listing transactions in a block, and getting the latest mined blocks.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cryptoapis-mcp-block-dataget the latest mined Ethereum block"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@cryptoapis-io/mcp-block-data
MCP server for Crypto APIs Block Data product. Get block details by height or hash for EVM, UTXO, and XRP blockchains.
API Version: Compatible with Crypto APIs version 2024-12-12
Features
Get block details by block height or block hash
List transactions by block height or block hash
Get last mined block and list latest mined blocks
Supported EVM chains: Ethereum, Ethereum Classic, BSC, Polygon, Avalanche (C-Chain), Arbitrum, Base, Optimism, Tron
Supported UTXO chains: Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, Zcash
Supported other: XRP (mainnet, testnet)
Related MCP server: @cryptoapis-io/mcp-prepare-transactions
Prerequisites
Node.js 18+
Crypto APIs account and API key (sign up | get API key)
Installation
npm install @cryptoapis-io/mcp-block-dataOr install all Crypto APIs MCP servers: npm install @cryptoapis-io/mcp
Usage
# Run with API key
npx @cryptoapis-io/mcp-block-data --api-key YOUR_API_KEY
# Or use environment variable
export CRYPTOAPIS_API_KEY=YOUR_API_KEY
npx @cryptoapis-io/mcp-block-data
# HTTP transport
npx @cryptoapis-io/mcp-block-data --transport http --port 3000 --api-key YOUR_API_KEYClaude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"cryptoapis-block-data": {
"command": "npx",
"args": ["-y", "@cryptoapis-io/mcp-block-data"],
"env": {
"CRYPTOAPIS_API_KEY": "your_api_key_here"
}
}
}
}Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"cryptoapis-block-data": {
"command": "npx",
"args": ["-y", "@cryptoapis-io/mcp-block-data"],
"env": {
"CRYPTOAPIS_API_KEY": "your_api_key_here"
}
}
}
}MCP Inspector
npx @modelcontextprotocol/inspector npx @cryptoapis-io/mcp-block-data --api-key YOUR_API_KEYn8n
Start the server in HTTP mode:
npx @cryptoapis-io/mcp-block-data --transport http --port 3000 --api-key YOUR_API_KEYIn your n8n workflow, add an AI Agent node
Under Tools, add an MCP Client Tool and set the URL to
http://localhost:3000/mcp
All servers default to port 3000. Use
--portto assign different ports when running multiple servers.
Available Tools
evm_block_data
Get EVM block details.
Action | Description |
| Get block details by block number |
| Get block details by block hash |
| List transactions in a block by block height |
| List transactions in a block by block hash |
| Get the latest mined block details |
| List the latest mined blocks |
utxo_block_data
Get UTXO block details (Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, Zcash).
Action | Description |
| Get block details by block number |
| Get block details by block hash |
| List transactions in a block by block height |
| List transactions in a block by block hash |
| Get the latest mined block details |
| List the latest mined blocks |
xrp_block_data
Get XRP block (ledger) details.
Action | Description |
| Get ledger details by ledger index |
| Get ledger details by ledger hash |
| List transactions in a block by block height |
| List transactions in a block by block hash |
| Get the latest mined block details |
| List the latest mined blocks |
CLI Arguments
Argument | Description | Default |
| Crypto APIs API key |
|
| Transport type: |
|
| HTTP host |
|
| HTTP port |
|
| HTTP path |
|
| Enable stateless HTTP mode |
|
HTTP API Key Modes
When using HTTP transport, the server supports two API key modes:
With
--api-key: The key is used for all requests.x-api-keyrequest headers are ignored.Without
--api-key: Each request must include anx-api-keyheader with a valid Crypto APIs key. This enables hosting a public server where each user provides their own key.
# Per-request key mode (multi-tenant)
npx @cryptoapis-io/mcp-block-data --transport http --port 3000
# Clients send x-api-key header with each requestStdio transport always requires an API key at startup.
Important: API Key Required
Warning: Making requests without a valid API key — or with an incorrect one — may result in your IP being banned from the Crypto APIs ecosystem. Always ensure a valid API key is configured before starting any server.
Remote MCP Server
Crypto APIs provides an official remote MCP server with all tools available via HTTP Streamable transport at https://ai.cryptoapis.io/mcp. Pass your API key via the x-api-key header — no installation required.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for Crypto APIs Blockchain Fees product, providing fee recommendations and gas estimates for UTXO, EVM, and XRP blockchains.4297MIT
- AlicenseAqualityCmaintenanceMCP server for Crypto APIs Prepare Transactions product that builds unsigned EVM transactions for native coin, fungible token (ERC-20), and NFT (ERC-721) transfers.2290MIT
- AlicenseAqualityCmaintenanceMCP server for Crypto APIs Address History product, enabling querying full blockchain address transaction history for synced addresses across EVM and UTXO blockchains.4308MIT
- Alicense-qualityCmaintenanceMCP server for Crypto APIs Transactions Data. Enables lookup of transaction details by hash across EVM, UTXO, Solana, XRP, and Kaspa blockchains.96MIT
Related MCP Connectors
MCP server for Blockscout
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Crypto intelligence MCP for market data, DeFi, wallets, security, DEX, NFTs, and Solana.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CryptoAPIs-io/cryptoapis-mcp-block-data'
If you have feedback or need assistance with the MCP directory API, please join our Discord server