Blockscout MCP

get_block_number

Retrieves the block number and timestamp for a specific date/time or the latest block. Use when you need a block height for a specific point in time (e.g., "block at 2024-01-01") or the current chain tip. If `datetime` is provided, finds the block immediately preceding that time. If omitted, returns the latest indexed block.

Remote blockscout/mcp-server

Other tools also called get_block_number? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "chain_id": {
      "type": "string",
      "title": "Chain Id",
      "description": "The ID of the blockchain"
    },
    "datetime": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Datetime",
      "default": null,
      "description": "The date and time (ISO 8601 format, e.g. 2025-05-22T23:00:00.00Z) to find the block for. If omitted, returns the latest block."
    }
  }
}