Skip to main content
Glama
dockndevai

mcp-clickhouse

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CLICKHOUSE_URLYesThe URL of the ClickHouse server, e.g. http://clickhouse:8123
CLICKHOUSE_MODENoAccess mode: read-only, read-write, or adminread-only
CLICKHOUSE_USERYesThe username for the ClickHouse connection
CLICKHOUSE_DRY_RUNNoWhen true, write/destructive statements are validated and logged but not executedfalse
CLICKHOUSE_MAX_ROWSNoHard cap on the number of rows returned to the model1000
CLICKHOUSE_PASSWORDYesThe password for the ClickHouse connection
CLICKHOUSE_AUDIT_LOGNoEmits a JSON audit line to stderr for each guarded operationtrue
CLICKHOUSE_ALLOW_DELETENoWhether destructive SQL statements (DROP, TRUNCATE, DELETE) are allowedfalse
CLICKHOUSE_DATABASE_ALLOWLISTNoComma-separated list of databases that the server is allowed to operate on
CLICKHOUSE_PROTECTED_DATABASESNoComma-separated list of databases that are read-only and can never be mutatedsystem,information_schema

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_databasesA

List databases and their engines.

list_tablesB

List tables in a database with engine, row count, and size.

describe_tableA

Column names, types, defaults, and comments for a table.

show_create_tableB

Return the full CREATE TABLE statement (schema, engine, settings) for a table.

table_statsB

Part count, row count, on-disk size, and time range from system.parts.

running_queriesA

Currently executing queries from system.processes (id, user, elapsed, memory).

server_metricsA

Non-zero metrics from system.metrics (connections, merges, memory, etc.).

cluster_infoA

Cluster topology from system.clusters (shards, replicas, hosts).

queryA

Run a SELECT/SHOW/DESCRIBE query and return rows. Non-read statements are refused here — use execute (read-write mode) for those. Results are capped at CLICKHOUSE_MAX_ROWS.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 9 tools

Disambiguation4/5

Each tool targets a fairly distinct area: table listing, column metadata, DDL, stats, and system introspection. The main overlap is that `query` can also run SHOW/DESCRIBE and thus partially duplicates `describe_table`, `show_create_table`, `list_databases`, and `list_tables`, though dedicated tools provide clearer structured output.

Naming Consistency3/5

All names are snake_case, but the conventions are mixed: verb_noun forms (`list_tables`, `describe_table`, `show_create_table`), noun phrases (`table_stats`, `cluster_info`, `running_queries`, `server_metrics`), and a lone verb (`query`). Readable but not a predictable pattern.

Tool Count5/5

Nine tools is well-scoped for a ClickHouse introspection and query server. Each tool has a clear place, and there is no obvious bloat or missing category within the read-oriented surface.

Completeness3/5

Read-side coverage is solid (databases, tables, schema, stats, queries, cluster, metrics). However, the `query` description explicitly says non-read statements must use an `execute` tool, which is absent, leaving writes/DDL as a dead end and creating an inconsistent tool surface.

Maintenance

ActivityMaintained
ResponsivenessUnresponsive