Skip to main content
Glama
reiple

clickhouse-mcp-server

by reiple

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CLICKHOUSE_HOSTNoClickHouse hostlocalhost
CLICKHOUSE_PORTNoHTTP port8123
CLICKHOUSE_USERNoUsernamedefault
CLICKHOUSE_SECURENotrue for HTTPS (usually port 8443)false
CLICKHOUSE_DATABASENoDefault databasedefault
CLICKHOUSE_PASSWORDNoPassword

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": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_databasesA

List all databases available on the ClickHouse server.

list_tablesA

List tables in a database (defaults to the connection's default database).

Returns table name, engine, and total row count for each table.

describe_tableB

Describe the columns of a table: name, type, default expression, comment.

run_select_queryA

Run a read-only SQL query (SELECT/SHOW/DESCRIBE/EXISTS/...) against ClickHouse.

Results are capped at max_rows (default 1000, hard cap 10000) and the response's "truncated" field reports whether rows were cut off. Data-modifying statements are rejected before reaching the server, and the connection is additionally opened in ClickHouse's server-side readonly mode as a second layer of enforcement.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a unique and clearly defined purpose. There is no overlap; an agent can easily distinguish between describing a table, listing databases, listing tables, and running arbitrary queries.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (describe, list, list, run). The naming is predictable and intuitive.

Tool Count5/5

With four tools, the server is well-scoped for its read-only metadata and querying purpose. Each tool is essential and provides a distinct function without unnecessary bloat.

Completeness4/5

The tool set covers the core operations for inspecting a ClickHouse server's schema and executing queries. While some advanced metadata operations (e.g., listing table engines) are missing, the generic run_select_query tool can compensate for many gaps, making the surface reasonably complete.

Maintenance

ActivityStale
ResponsivenessNo issues