chdb-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CHDB_MCP_WRITE | No | If '1', allows INSERT/CREATE/DROP/ALTER | unset |
| CHDB_MCP_SESSION_PATH | No | Persistent session directory (default: ephemeral) | empty |
| CHDB_MCP_FILE_ALLOWLIST | No | :-separated path prefixes for opt-in isolation | empty (unrestricted) |
| CHDB_MCP_MAX_RESULT_BYTES | No | Per-tool result cap | 1048576 |
| CHDB_MCP_QUERY_TIMEOUT_SEC | No | Wall-clock cap per query | 30 |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| queryA | Execute an arbitrary SQL statement against the chDB session. Use ClickHouse SQL dialect. Common formats: Args:
sql: Any read-only SQL (SELECT/SHOW/DESCRIBE/EXPLAIN). Writes require
|
| list_databasesA | List databases visible to the chDB session. Returns one database name per line (TabSeparated format). |
| list_tablesA | List tables in a given database. Args: database: Database name. Must be a plain SQL identifier (letters, digits, underscore — no quotes, dots, or spaces). |
| describe_tableA | Return column types for a table. Args: database: Database name (plain identifier). table: Table name (plain identifier). |
| query_fileA | Query a local file (Parquet/CSV/JSON/…) as if it were a table. The literal token Example:: Args:
path: Filesystem path. If |
| get_sample_dataA | Return the first N rows of a table. Args:
database: Database name (plain identifier).
table: Table name (plain identifier).
limit: Maximum rows. Clamped to |
| list_functionsA | List SQL functions available in the chDB engine. Returns Args: pattern: Optional case-insensitive substring filter on the function name. Plain text only; SQL wildcards and quotes are escaped. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct operation: listing databases vs. tables vs. functions, describing a table, retrieving sample data, executing arbitrary queries, and querying files. No overlap in purpose.
All tool names follow a clear verb_noun pattern (list_databases, list_tables, describe_table, get_sample_data, query, query_file). The naming is predictable and uniform.
With 7 tools, the server is well-scoped for a database MCP server. It covers introspection, data querying, and file integration without being overly numerous or sparse.
The tool set covers essential database exploration and querying. The query tool can handle writes when enabled, and file querying is included. Minor missing features like a dedicated DDL tool exist but are workable via raw SQL.