ClickHouse HTTP interface batch insert

domain: clickhouse.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Confirm the ClickHouse HTTP interface is enabled; by default it listens on port 8123.
  2. Prepare the insert payload as a newline-delimited block in a supported format such as TabSeparated, CSV, or JSONEachRow.
  3. POST the data to http://{clickhouse_host}:8123/?query=INSERT+INTO+{database}.{table}+FORMAT+{FormatName} with the data as the request body; pass credentials via URL parameters user and password or via X-ClickHouse-User and X-ClickHouse-Key headers.
  4. A 200 OK response with an empty body indicates success; any non-200 response body contains an error message.
  5. For large inserts, consider enabling async_insert mode by adding the setting async_insert=1 to the query string to allow server-side batching.

Known gotchas

Related routes

Bulk insert data into ClickHouse and deduplicate rows using ReplacingMergeTree
clickhouse · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans