Skip to main content
Glama
dockndevai

mcp-clickhouse

by dockndevai

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_tablesA

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

describe_tableB

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

show_create_tableA

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_metricsB

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

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/dockndevai/mcp-clickhouse'

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