Logchef

Analytics and monitoring

Self-hosted log analytics for ClickHouse, VictoriaLogs and Grafana Loki: LogchefQL search, dashboards, alerts, audit log and an MCP server in a single binary.

Your AI app calls the Logchef MCP server, which does the analytics and monitoring work and sends the result back to the chat.

About Logchef

Logchef is a community MCP server from mr-karan, filed in our directory under analytics and monitoring. Self-hosted log analytics for ClickHouse, VictoriaLogs and Grafana Loki: LogchefQL search, dashboards, alerts, audit log and an MCP server in a single binary.

At a glance

Publisher
mr-karan (community)
Runs
See the README for setup
Written in
Go
License
AGPL-3.0
GitHub stars
953

How to set up Logchef

  1. Follow the install steps in the Logchef README; it is written in Go, so have that toolchain ready.
  2. Check the Logchef README for keys or settings; the registry lists none that Logchef requires.
  3. Add Logchef to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Logchef tools to confirm the connection.
  5. Run one read-only task with Logchef first, and keep your app asking before each tool call until the results look right.

Logchef compared with similar servers

  • Retentioneering Tools by retentioneering has fewer GitHub stars than Logchef (949 against 953); both are community servers, and both run locally.
  • Buggregator Server by buggregator has more GitHub stars than Logchef (1.1k against 953); both are community servers, and both run locally.
  • Tidewave Phoenix by tidewave-ai has fewer GitHub stars than Logchef (868 against 953); both are community servers, and both run locally.

Before you connect Logchef

  • Give Logchef its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Logchef tool call until you trust what it does with them.
  • Treat text that Logchef fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Logchef on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Logchef

How marketing and sales teams put Logchef to work, by company size. Pick the size closest to yours and start Logchef on one use case.

Small business

  • A small business can ask Logchef where this month's customers came from and which channel is worth more budget.
  • Owners can use Logchef to get a weekly traffic and conversion summary in plain words, without learning the analytics tool.
  • Logchef runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Logchef to answer attribution and funnel questions in a chat, then save the useful ones as reports.
  • Growth teams can have Logchef flag drops in signups or conversion the day they happen, with the page or source that changed.
  • Start Logchef on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can expose governed metrics through Logchef, so every team's AI answers use the same definitions as finance.
  • Large analytics teams can use Logchef to triage anomalies across regions and products before the weekly business review.
  • Logchef is a community server, so have security review the code and pin a version before Logchef touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Logchef README

From mr-karan/logchef on GitHub, shared under its AGPL-3.0 license. Images are left out; the original has them.

README.md

The open-source log workspace for ClickHouse and VictoriaLogs.
Search, live tail, dashboards, alerts, and access control in one self-hosted binary.

Try Demo · Read Documentation · What's new in v2.0

Logchef is a lightweight, self-hosted log analytics and observability platform for teams that want a strong query and control plane on top of the log backends they already run. Connect ClickHouse, VictoriaLogs, or both. Logchef gives them one workflow for exploration, dashboards, saved queries, alerting, and access control, without moving or reshaping your data.

If you are evaluating VictoriaLogs specifically, start with the VictoriaLogs guide.

Logchef 2.0

Version 2.0 is a major expansion of what Logchef can sit in front of and what teams can do once it is there:

  • VictoriaLogs is a first-class datasource. Use the same LogchefQL search workflow across backends, drop into native LogsQL when you need it, and carry source-level auth, tenant headers, and immutable scope through every query.
  • Build real operational dashboards. Mix ClickHouse and VictoriaLogs panels on one grid, drag and resize them in place, and choose time series, stat, breakdown, or table views.
  • Follow incidents as they unfold. Live tail streams matching rows into the explorer and CLI on both backends, including native VictoriaLogs tailing.
  • Run without an identity provider. Built-in email and password authentication works on its own or alongside OIDC; OIDC deployments can also auto-provision new users safely.
  • Investigate from the terminal. The CLI understands both backends and includes query, native SQL/LogsQL, explain, histogram, fields, history, tail, doctor, and browser hand-off workflows.
  • Ship it with more confidence. v2 adds dashboard caching, ClickHouse query guardrails, opt-in rate limiting, streaming for large ClickHouse results, and a broad security and reliability pass.

Read the v2.0 release notes or try the live demo.

Features

  • Query-first log exploration: Fast filtering with LogchefQL plus native SQL or LogsQL depending on the source.
  • Live tail: Stream matching logs in real time from the explorer.
  • Dashboards: Multi-panel views (time series, stat, breakdown, table) on a shared time range, with a direct-manipulation grid editor.
  • AI Query Assistant: Turn natural language into LogchefQL, ClickHouse SQL, or LogsQL.
  • Scheduled alerting: Evaluate source-aware rules and send email or webhook notifications.
  • OIDC or local auth + RBAC: SSO out of the box, or run without an external identity provider using built-in email+password authentication.
  • Datasource-first: Connect ClickHouse tables, VictoriaLogs instances, or both without reshaping your storage layer.
  • Single binary: One executable, no runtime dependencies.
  • Pluggable metadata store: Zero-config SQLite by default; opt into Postgres for multi-replica high availability.
  • Comprehensive metrics: Prometheus metrics for usage and performance.
  • MCP integration: Built-in Model Context Protocol endpoint for AI assistants, with OAuth sign-in (docs (logchef.app/integration/mcp-server)).
  • CLI: Query logs from your terminal with syntax highlighting and multi-context support (query, explain, histogram, tail, doctor, and more).

Quick Start

Docker

# Download the Docker Compose file
curl -LO https://raw.githubusercontent.com/mr-karan/logchef/refs/heads/main/deployment/docker/docker-compose.yml

# Start the services
docker compose up -d

Access the Logchef interface at http://localhost:8125.

Helm

A chart for Kubernetes (Logchef, Dex, and ClickHouse via the Altinity operator) lives in deployment/helm:

helm install logchef ./deployment/helm --namespace logchef --create-namespace

See deployment/helm/values.yaml for options and requirements.

CLI

Logchef includes a cross-platform CLI for querying and investigating logs directly from your terminal.

Install

Find the latest CLI version on the releases page, then set CLI_VERSION and download the build for your platform:

# Set to the latest cli-v* version from the releases page
CLI_VERSION="0.2.1"
BASE=https://github.com/mr-karan/logchef/releases/download/cli-v${CLI_VERSION}

# macOS (Apple Silicon)
curl -LO $BASE/logchef-cli_${CLI_VERSION}_macos-aarch64.tar.gz

# macOS (Intel)
curl -LO $BASE/logchef-cli_${CLI_VERSION}_macos-x86_64.tar.gz

# Linux (x86_64)
curl -LO $BASE/logchef-cli_${CLI_VERSION}_linux-x86_64-musl.tar.gz

# Linux (ARM64)
curl -LO $BASE/logchef-cli_${CLI_VERSION}_linux-aarch64-musl.tar.gz

# Extract and install
tar -xzf logchef-cli_*.tar.gz
sudo mv logchef /usr/local/bin/

Usage

# Authenticate with your Logchef server
logchef auth --server https://logs.example.com

# Query logs with LogchefQL
logchef query 'level="error"' --since 1h

# See the generated SQL/LogsQL without running it
logchef explain 'level="error"'

# Counts over time (terminal bar chart)
logchef histogram 'level="error"' --since 1h

# Diagnose your setup (config, auth, server, defaults)
logchef doctor

# Execute a raw native query (SQL for ClickHouse, LogsQL for VictoriaLogs)
logchef sql "SELECT * FROM logs.app WHERE level='error' LIMIT 10"
logchef sql 'level:="error" | fields _time, _msg, service'

For full documentation, see the CLI Guide.

Documentation

For comprehensive documentation, including setup guides, configuration options, and API references, please visit logchef.app.

Contributing

We welcome contributions! To get started:

  1. Development Setup: See our Development Setup Guide:

    just sqlc-generate
    just dev-docker
    just build
    
  2. Read the Guidelines: Check CONTRIBUTING.md for detailed contribution guidelines

  3. Find an Issue: Look for issues labeled good first issue or help wanted

  4. Make Your Changes: Follow our coding standards and run just check before submitting

For questions or help, open an issue or start a discussion on GitHub.

Screenshots

License

Logchef is distributed under the terms of the AGPLv3 License.

Credits

The Logchef logo was designed by Namisha Katira.

Questions about Logchef

What is the Logchef MCP server?

Self-hosted log analytics for ClickHouse, VictoriaLogs and Grafana Loki: LogchefQL search, dashboards, alerts, audit log and an MCP server in a single binary. Logchef is maintained by mr-karan on GitHub at mr-karan/logchef, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Logchef MCP server?

Logchef doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (mr-karan/logchef). Like most servers, Logchef ends with a command or URL you paste into your AI app's MCP config.

Does Logchef need an API key?

The registry lists no required keys for Logchef. Check the Logchef README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Logchef an official MCP server?

No. Logchef is a community server maintained by mr-karan. Community servers can be excellent; read the code and the open issues before you give Logchef access to company data.

What license is Logchef under?

Logchef is released under the AGPL-3.0 license, according to its GitHub repository. The license covers the code of Logchef; the service it connects to has its own terms.