Skip to content

Databases & warehouses

ClickHouse MCP: ask your MergeTree tables in your own words

ClickHouse is an open-source columnar database for real-time analytics, run self-managed or as ClickHouse Cloud. Engineering, product and observability teams use it for event analytics, logs, traces, metrics and customer-facing dashboards that scan billions of rows in seconds. Tables usually use the MergeTree engine family, with materialized views that aggregate data as it arrives.

ClickHouse

Available now: Nexatron answers ClickHouse questions with user-level access that inherits your existing ClickHouse permissions.

Updated

Can Claude, ChatGPT or Copilot access ClickHouse data?

Yes. Connect ClickHouse to Claude, ChatGPT and Copilot with Nexatron’s MCP server: add Nexatron from Claude’s connector directory, or by its server URL in ChatGPT and Copilot, then connect ClickHouse in Nexatron. Ask ClickHouse about MergeTree tables, materialized views and query logs. Users sign in with their existing ClickHouse account or SSO, and Nexatron inherits their existing permissions.

What ClickHouse data a question reads

Databases and MergeTree tables
Event, log and fact tables ordered by an ORDER BY key and often partitioned by month or day, such as events, page_views or otel_logs.
Materialized views and AggregatingMergeTree
Incremental rollups computed on insert, such as hourly counts or uniqState aggregates per customer, which answer most dashboard questions cheaply.
Projections and dictionaries
Alternate sort orders stored with a table, and in-memory dictionaries that map IDs to names or attributes at query time.
system.tables and system.parts
Row counts, compressed and uncompressed bytes, and active part counts per table and partition.
system.query_log
Every query with user, duration, read rows, read bytes, memory usage and exception, used for query load and cost questions.
Users, roles and row policies
Access entities that grant SELECT on databases and tables and filter rows, for example by tenant_id.

ClickHouse questions people ask

  • How many unique users triggered the checkout_started event each day this month, by country?
  • What share of API requests returned errors per endpoint over the last 24 hours?
  • Which customers’ event volume dropped more than 40 percent week over week?
  • What is the p99 latency for the search service from the traces table since Monday?
  • Which tables use the most compressed disk, and how many active parts does each have?
  • Which users ran the queries that read the most bytes yesterday?
  • Which materialized views took longest to run in system.query_views_log this week?

Ask these questions of your ClickHouse data

Bring the questions your team asks and the report you check them against today. We reply within one business day.

Who asks ClickHouse questions

Product and growth analysts
Funnels, retention and event counts from raw event tables, without waiting for a dashboard tile to be built.
Observability and SRE
Error rates, latency percentiles and log volume by service from logs and traces stored in ClickHouse.
Database owners
Disk usage, part counts, heavy queries and who is running them, from the system tables.

How Nexatron connects to ClickHouse

API and sign-in
The ClickHouse HTTP interface (ports 8123 and 8443) or native TCP protocol, with SQL-managed users authenticated by password, TLS certificate or LDAP. ClickHouse Cloud adds console sign-in and API keys for the Cloud management API.
User-level access
Users sign in with their existing ClickHouse account or SSO, and Nexatron inherits their existing permissions. Users only see data they are already authorized to see.
Read-only
Questions only read ClickHouse; asking a question never changes ClickHouse data.
Setup
An administrator enables ClickHouse in Nexatron. Users link their existing ClickHouse account, or sign in through your company’s SSO, the first time they ask. Queries run in ClickHouse, with no warehouse to load.

How to connect ClickHouse to Claude, ChatGPT and Copilot

Nexatron is listed in Claude’s MCP connector directory, so a Claude user can add it without a custom server URL. Its hosted MCP server answers ClickHouse questions for Claude, ChatGPT and Microsoft Copilot with user-level access, and the same governed answer as the Nexatron app. It is Nexatron’s own server, not one published by the vendor.

  1. Connect ClickHouse to your Nexatron workspace.
  2. In Claude, add Nexatron from Claude’s connector directory. In ChatGPT or Copilot, add a custom MCP connector with Nexatron’s server URL.
  3. Sign in with your existing Nexatron identity (OAuth 2.1), then ask your ClickHouse questions.

Server URL for a custom connector: https://api.nexatron.io/api/v1/mcp

ClickHouse questions and answers

Can ClickHouse connect to Claude, ChatGPT, Gemini or Mistral?
Yes. Nexatron works in Claude, ChatGPT, Copilot and any MCP-capable assistant or agent, Gemini- and Mistral-based ones included. Ask ClickHouse about MergeTree tables, materialized views and query logs. Users sign in with their existing ClickHouse account or SSO, and Nexatron inherits their existing permissions.
How is p95 latency defined when ClickHouse holds raw request events?
It follows an approved definition that a named person on your SRE or platform team reviews, for example the 95th percentile of request duration by service over successful requests only. Each answer states the reading it used, with other meanings one click away, such as a version that includes timeouts. Users sign in with their own ClickHouse user (or your SSO; optional), Nexatron inherits their existing roles and row policies, and questions only read data.
Which tools do teams put in front of ClickHouse for dashboards?
Teams commonly use Grafana with the ClickHouse data source, Superset, Metabase or the SQL console in ClickHouse Cloud. Fast dashboards usually read from materialized views or projections instead of the raw event table.
Why use materialized views in ClickHouse?
A ClickHouse materialized view runs on every insert and writes aggregated rows to a target table, so dashboards read a small rollup instead of scanning raw events. Nexatron prefers such rollups when they match a question’s grain.
What does system.query_log show?
One row per query start and finish, with the user, query text, duration, rows and bytes read, memory used and any exception. It is the usual source for questions about query load and expensive users.
How is Nexatron different from a standalone ClickHouse MCP server?
A standalone ClickHouse MCP server connects an assistant to ClickHouse alone, and teams can use both. Nexatron adds one governed layer across all your systems. Questions that read Databases and MergeTree tables, or Materialized views and AggregatingMergeTree, use your approved business definitions, and one question can combine ClickHouse with Snowflake or Google BigQuery. Users sign in with their existing ClickHouse account or SSO, and Nexatron inherits their existing permissions. Governed answers are written to an audit trail, and the same answers reach Claude, ChatGPT, Copilot and Gemini together.

Try Nexatron with your ClickHouse

Tell us the ClickHouse questions you want answered and who asks them, and we plan the demo around them. Do not include credentials or confidential records.

  • SOC 2 Type I
  • ISO 27001 Certified
  • GDPR Aligned

Security and compliance documents are available on request through the Trust Center.

ClickHouse is a trademark of its owner.