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

Capabilities

Features and capabilities supported by this server

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/reiple/clickhouse-mcp1'

If you have feedback or need assistance with the MCP directory API, please join our Discord server