Bring ClickHouse logs into AI assistants for live troubleshooting
logchef-mcp, by Mr Karan, is a Model Context Protocol server that connects Logchef's ClickHouse logs to AI assistants for in-chat querying and analysis. It translates natural-language requests into LogchefQL or ClickHouse SQL and exposes sources and saved queries so models can retrieve log metrics inside a conversation. Key capabilities include source discovery, natural-language query translation, admin operations, and a single-binary Go deployment. DevOps engineers and SREs gain direct observability inside AI-driven incident workflows.
What tasks can you actually use it for?
The server embeds log evidence into AI workflows, helping on-call engineers perform incident triage, extract trend data, and fetch timestamped slices without manual navigation inside a log viewer. It uses ClickHouse's speed to make queries over very large datasets practical in conversational sessions, so teams can surface spikes and volume trends quickly and iterate on queries during a chat-driven investigation.
How reliable are generated queries and results for operational decisions?
Generated queries execute as real ClickHouse or LogchefQL statements, so their correctness depends on prompt clarity and the underlying schema. Because the tool issues full SQL, model-produced queries should be validated before running against production datasets. Histogram and volume outputs provide quantitative signals, but any high-stakes conclusion requires human review of the returned rows and query logic.
What inputs, platforms, and dependencies does it require?
Deployment depends on an existing Logchef and ClickHouse stack. The server runs on platforms that support Go binaries and lists Linux, macOS, and Windows as supported hosts. It is schema-agnostic but needs a timestamp column present in tables. Compatible clients require MCP support, so an MCP-capable host application is required to surface the server inside an assistant.
Is it straightforward to deploy and fit into on-call workflows?
Deployment is compact and community-tested, shipped as a single Go binary for low operational overhead, which eases CI/CD and container packaging. The developer maintains related observability tools and the project received positive community feedback for its lightweight approach on discussion forums. Integration into existing incident playbooks is practical for teams already running Logchef and using MCP-capable assistants.
Practical bridge for teams with existing Logchef setups
The server is a practical option for DevOps teams that already operate Logchef and ClickHouse and want log context inside AI workflows; treat its model-generated queries as starting points, integrate a validation step into incident playbooks, and use the tool to accelerate evidence gathering rather than replace manual review.





