Natural Language to Kusto Query MCP Server

Natural Language to Kusto Query MCP Server

kusto-mcp•byalexneyler

A configurable MCP server that converts natural language prompts into Kusto queries and can execute them against configured Kusto databases.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Generates Kusto queries from natural language prompts against a configured table and category.
  • •Executes generated queries against Kusto and returns responses as JSON or a CSV file.
  • •Lists the supported tables defined in the settings configuration.
  • •Supports configuring multiple Kusto databases and per-table prompt guidance in a settings file.

BEST FOR

  • •Querying Kusto databases using natural language prompts through an MCP client.
  • •Environments needing configurable, database-specific query generation across several Kusto tables.

ABOUT KUSTO-MCP

Natural Language to Kusto Query MCP Server is cataloged as an MCP server attributed to alexneyler. A configurable MCP server that converts natural language prompts into Kusto queries and can execute them against configured Kusto databases. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Natural Language to Kusto Query MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server target more than one Kusto database?

Yes, multiple databases can be configured in the settings.yaml file.

What output formats can executed query responses use?

Query responses can be returned as JSON or written to a CSV file.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 454d3eeb2a33 · 采集于 2026-11-13 10:43:01 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Natural Language to Kusto Query MCP Server

A configurable MCP server that can convert natural language into kusto queries and execute the query against kusto database.

Features

  • Fully configurable: provide a settings.yaml file to give the kusto query generator the data it needs to generate queries against any database
  • Generate: returns a kusto query based on the given natural language prompt
  • Execute: generate and execute a query based on the given natural language prompt. Output responses as JSON or in a CSV file
  • Multiple databases: configure multiple databases in settings.yaml

Tools

  • list-supported-tables
    • Lists the supported tables as provided in the settings.yaml file
  • generate-kusto-query
    • Generates a kusto query against the provided table for the given prompt
    • Inputs:
      • parameters: an object containing the following parameters:
        • table (string): name of the table as configured in the settings.yaml file
        • category (string): category of the table as configured in the settings.yaml file
        • prompt (string): natural language prompt to execute against the provided database
  • execute-kusto-query
  • Generates a kusto query against the provided table for the given prompt
  • Inputs:
    • parameters: an object containing the following parameters:
      • table (string): name of the table as configured in the settings.yaml file
      • category (string): category of the table as configured in the settings.yaml file
      • prompt (string): natural language prompt to execute against the provided database
      • outputType ('Json' or 'CSV'): output type for the response

Configuration

This project is designed to interact with Kusto databases and provides tools for querying and managing resources. Below are the steps to configure the project using the settings.yaml file.

Configuration File: settings.yaml

The MCP server takes in a --settings argument that should point to a yaml file configured as follows:

Environment variable references

You can configure references to environment variables in your settings.yaml file by using the ${{ENVIRONMENT_VARIABLE_NAME}} syntax.

Model Configuration

model:
  endpoint: <Azure OpenAI Endpoint>
  deployment: <Deployment Name>
  key: <Azure Open AI key>
  • endpoint: The Azure OpenAI endpoint URL.
  • deployment: The name of the deployment to use.
  • key (optional): An optional key for the given Azure OpenAI endpoint. If a key is not provided, the tool will attempt to use the default azure credentials to execute on behalf of the user. This fallback currently only works if you run the server using dotnet run instead of docker run, and only inside of vs code.

Kusto Configuration

kusto:
  - name: <Table Name>
    category: <Category>
    database: <Database Name>
    table: <Table Name>
    endpoint: <Kusto Endpoint>
    accessToken: <Access Token>
    prompts:
      - type: <Prompt Type>
        content: |
          <Prompt Content>
  • name: The name of the Kusto table.
  • category: The category of the Kusto table (e.g., managedlabs).
  • database: The name of the Kusto database.
  • table: The name of the table in the Kusto database.
  • endpoint: The Kusto endpoint URL.
  • accessToken (optional): An optional user access token that can be used to connect to the given kusto database. If an access token is not provided, the tool will attempt to use the default azure credentials to execute on behalf of the user. This fallback currently only works if you run the server using dotnet run instead of docker run, and only inside of vs code. To generate an access token for a kusto database, you can run the following:
    az login
    az account get-access-token --resource "your-kusto-database-url" --query "accessToken"
    
  • prompts: A list of prompts used for querying the Kusto database.
    • type: The type of the prompt (e.g., system, user, assistant).
    • content: The content of the prompt, which can include KQL queries and explanations.

Example Configuration

Below is an example configuration for the settings.yaml file:

model:
  endpoint: https://my-oai-resource.openai.azure.com
  deployment: my-deployment
  key: ${{ AZURE_OPENAI_KEY }}

kusto:
  - name: mytable
    category: mycategory
    database: mydatabase
    table: table
    endpoint: https://table.kusto.windows.net
    accessToken: ${{ MYTABLE_KUSTO_ACCESS_TOKEN }}
    prompts:
      - type: system
        content: |
          The table contains the following columns:
          * Id: id of the resource
          * Name: name of the resource
          * CreationTime: timestamp when the resource was created
          * LastModified: timestamp when the resource was last modified
          * Owner: owner of the resource
      - type: user
        content: When was the resource 'my resource' created in mycategory/mytable?
      - type: assistant
        content: |
          table
          | where name == 'my resource'
          | project CreationTime
      - type: user
        content: How many resources were created after April 1st, 2025?
      - type: assistant
        content: |
          table
          | where CreationTime > datetime(2025-04-01)
          | summarize count()
      - type: user
        content: Which owner owns the most resources in mycategory/mytable?
      - type: assistant
        content: |
          table
          | summarize Resources=count() by Owner
          | order by Resources desc
          | take 1
          | project Owner

Notes

  • Ensure that the endpoint URLs are correct and accessible. Authentication is done via the currently logged in user in Windows. You may need to run az login or ensure that you are logged into to VSCode/VS to be able to authenticate
  • Update the prompts section with relevant queries and explanations as needed. The more descriptive the better.
  • Use the example configuration as a template to set up your own settings.yaml file.

Usage with VS Code

Add this to your .vscode/mcp.json:

{
  "inputs": [
    {
        "type": "promptString",
        "id": "azure-open-ai-key",
        "description": "Enter your Azure OpenAI key",
        "password": true
    },
    {
        "type": "promptString",
        "id": "kusto-token",
        "description": "Enter your Kusto token",
        "password": true
    }
  ],
  "kusto": {
    "type": "stdio",
    "command": "docker",
    "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/path/to/settings.yaml:/app/settings.yaml", // Enter path to settings.yaml file. Can use vscode variables
        // Include environment variables that are references in settings.yaml file
        "-e",
        "AZURE_OPENAI_KEY",
        "-e",
        "KUSTO_ACCESS_TOKEN",
        "alexeyler/kusto-mcp-server",
    ],
    "env": {
        "AZURE_OPENAI_KEY": "${input:azure-open-ai-key}",
        "KUSTO_ACCESS_TOKEN": "${input:kusto-token}",
    }
  }
}

Build

From repo root: docker build ./src/Server/Dockerfile src

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Natural Language to Kusto Query MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/kusto-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage