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. To connect Claude, ChatGPT or Copilot to ClickHouse, add Nexatron from Claude’s connector directory, or by its MCP server URL in ChatGPT and Copilot. Then connect it in Nexatron. Users sign in with their own ClickHouse account (or your 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?
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 own ClickHouse account (or your 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 own ClickHouse account, or sign in through your SSO, the first time they ask. Queries run in ClickHouse, with no warehouse to load.
ClickHouse in Claude’s connector directory
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.
- Connect ClickHouse to your Nexatron workspace.
- In Claude, add Nexatron from Claude’s connector directory. In ChatGPT or Copilot, add a custom MCP connector with Nexatron’s server URL.
- Sign in with your own 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
- What does the open-source ClickHouse MCP server do?
- ClickHouse publishes an open-source MCP server that lets an assistant list databases and run read-only SELECT queries with a configured user. Nexatron’s MCP server adds governance on top: business definitions, a recorded query and source for every answer, and access rules set in Nexatron on who can use the connection.
- 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.
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.
ClickHouse is a trademark of its owner.