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 | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/chdb-io/chdb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server