Get the FREE Ultimate OpenClaw Setup Guide →

mcp

MCP server from GetBlock-io/mcp-server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio getblock-io-mcp-server node dist/server.js \
  --env ETH_ACCESS_TOKEN="your_eth_access_token_here" \
  --env SOLANA_ACCESS_TOKEN="your_solana_access_token_here"

How to use

This MCP server provides an interface to the GetBlock.io API for interacting with Ethereum and Solana networks. It exposes tools such as get-chain-info, get-wallet-balance, get-transaction, get-latest-blocks, get-solana-account, and get-eth-gas-price. You can invoke these tools via MCP-compliant clients (including Claude Desktop) or through the MCP I/O channel described by the Model Context Protocol. Tokens for authenticating with GetBlock are supplied through environment variables (ETH_ACCESS_TOKEN and SOLANA_ACCESS_TOKEN) or a .env file, with a priority order that favors env vars over .env values and then defaults if not provided. Use the tools to query chain metadata, check balances, fetch transaction details, obtain the latest blocks, or retrieve Solana account information and Ethereum gas prices.

How to install

Prerequisites:

  • Node.js (recommended LTS) installed on your machine
  • npm or yarn for package management

Option A: Standard Node.js installation

  1. Install dependencies
npm install
  1. Build the TypeScript sources
npm run build
  1. Create a .env file (optional) with access tokens for different blockchains
# Access tokens for different blockchains
ETH_ACCESS_TOKEN=your_eth_access_token_here
SOLANA_ACCESS_TOKEN=your_solana_access_token_here
  1. Start the server
npm start

Option B: Using Docker

  1. Build the Docker image
docker build -t mcp/getblock:latest .
  1. Run the container with environment variables
docker run -i --rm \
  -e ETH_ACCESS_TOKEN=your_eth_access_token_here \
  -e SOLANA_ACCESS_TOKEN=your_solana_access_token_here \
  mcp/getblock:latest

Additional notes

Environment-based configuration is supported via ETH_ACCESS_TOKEN and SOLANA_ACCESS_TOKEN. If you encounter API connection issues, verify tokens are correctly exported in your environment or provided in a .env file. The server uses MCP to register tools; ensure your client is configured to call one of the available tools (get-chain-info, get-wallet-balance, get-transaction, get-latest-blocks, get-solana-account, get-eth-gas-price). If you plan to use Claude Desktop or similar tooling, you can configure either direct Node.js startup or the Docker container in your claude_desktop_config.json. Remember to restart clients after updating tokens or environment settings.

Related MCP Servers

Sponsor this space

Reach thousands of developers