block_height

Pack: mempool-space · Endpoint: https://gateway.pipeworx.io/mempool-space/mcp

Return the current chain tip block height (latest mined block number) for mainnet, testnet, signet, or liquid.

Parameters

NameTypeRequiredDescription
networkstringno

Example call

Arguments

{
  "network": "mainnet"
}

curl

curl -X POST https://gateway.pipeworx.io/mempool-space/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"block_height","arguments":{"network":"mainnet"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('block_height', {
  "network": "mainnet"
});

Response shape

Always returns: network, height

FieldTypeDescription
networkstringNetwork name
heightnumberCurrent block height
Full JSON Schema
{
  "type": "object",
  "properties": {
    "network": {
      "type": "string",
      "description": "Network name"
    },
    "height": {
      "type": "number",
      "description": "Current block height"
    }
  },
  "required": [
    "network",
    "height"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "mempool-space": {
      "url": "https://gateway.pipeworx.io/mempool-space/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026