KustoQueryCli

ericwastaken/KustoQueryCli Checked 13 hours ago

A python command line utility to run Kusto queries against an Azure Data Explorer instance and return data in various formats.

Query Azure Data Explorer (ADX) from an MCP client or a command line. The CLI produces JSON or CSV; the MCP server exposes query, authentication, proxy, and contract-discovery tools. Both use Azure CLI authentication. Native use requires Python 3.12+ and Azure CLI. Docker includes both. You need an Azure identity authorized for your cluster and the cluster URL/database to query. Docker launchers build locally by default. They can also select an existing image explicitly with KQC_IMAGE=ghcr.io/ericwastaken/kustoquerycli:2.0.0. Releases publish Linux AMD64 and ARM64 images to GHCR.

Summary extracted from the README.

Kusto Query CLI

Query Azure Data Explorer (ADX) from an MCP client or a command line. The CLI produces JSON or CSV; the MCP server exposes query, authentication, proxy, and contract-discovery tools. Both use Azure CLI authentication.

Choose your task

I want to... Start here
Connect an AI client using MCP, natively or in Docker Use MCP
Run queries and export JSON/CSV, natively or in Docker Use the CLI
Run an existing container image Use a container image
Build my own container image Build a container image
Use the one-shot JSON action interface Use the wrapper
Change Python behavior Development setup, Python development
Change Docker builds or launchers Container development
Prepare a release Release workflow
Work on or consume this project as an agent Agent instructions

Native use requires Python 3.12+ and Azure CLI. Docker includes both. You need an Azure identity authorized for your cluster and the cluster URL/database to query.

Docker launchers build locally by default. They can also select an existing image explicitly with KQC_IMAGE=ghcr.io/ericwastaken/kustoquerycli:2.0.0. Releases publish Linux AMD64 and ARM64 images to GHCR. See the image guide.

Shared guidance

Application changes are recorded in CHANGELOG.md. Canonical action contracts and payloads remain in schemas/, examples/, and docs/reference/action-contract.md.

Repository layout

  • kusto_query_cli/: Python implementation and runtime assets.
  • docker/: image builds, Compose definitions, and CLI/MCP launchers.
  • docs/: consumer, developer, and reference guides.
  • scripts/: release preparation, validation, and publishing.
  • tests/: unit, protocol integration, and manual Azure tests.
  • Root Python scripts and lib/: compatibility entry points and imports.

Docker launcher paths have moved. See the path migration table when updating an existing checkout or MCP client configuration.