block_height

Pack: mempool-space · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/block_height for the schema, then POST the same URL with its arguments for the data.

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

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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the mempool-space pack
{
  "mcpServers": {
    "mempool-space": {
      "url": "https://gateway.pipeworx.io/mempool-space/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026