npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

kusto-mcp-server

v1.0.0

Published

MCP server for Azure Data Explorer Kusto CLI - Query and manage Kusto clusters with AI assistants

Readme

Kusto MCP Server

An MCP (Model Context Protocol) server that provides tools for interacting with Azure Data Explorer (Kusto) clusters. Query, manage connections, and explore schemas using AI assistants like Claude and GitHub Copilot.

Features

  • Execute KQL queries and scripts
  • Manage multiple cluster connections
  • Explore database schemas
  • Full Azure authentication support
  • Works with Claude Desktop, Claude Code CLI, and VS Code with GitHub Copilot

Prerequisites

  • Node.js 18+
  • .NET 8 Runtime
  • Kusto CLI (microsoft.azure.kusto.tools NuGet package)
  • Azure CLI (for authentication)

Install Kusto CLI

dotnet tool install -g Microsoft.Azure.Kusto.Tools

Or via NuGet:

nuget install microsoft.azure.kusto.tools -Version 14.0.3

Installation

Via npm (recommended)

npm install -g kusto-mcp-server

Via npx (no installation required)

npx kusto-mcp-server

Usage with AI Assistants

Claude Desktop

Add to your Claude Desktop configuration:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/claude/claude_desktop_config.json
{
  "mcpServers": {
    "kusto": {
      "command": "npx",
      "args": ["@yeshsurya/kusto-mcp-server"],
      "env": {
        "KUSTO_CLI_PATH": "~/.nuget/packages/microsoft.azure.kusto.tools/14.0.3/tools/net8.0/Kusto.Cli.dll"
      }
    }
  }
}

Claude Code (CLI)

claude mcp add kusto -- npx kusto-mcp-server

Verify it's connected:

claude mcp list

VS Code with GitHub Copilot

Add to your VS Code settings.json:

{
  "mcp": {
    "servers": {
      "kusto": {
        "command": "npx",
        "args": ["@yeshsurya/kusto-mcp-server"],
        "env": {
          "KUSTO_CLI_PATH": "~/.nuget/packages/microsoft.azure.kusto.tools/14.0.3/tools/net8.0/Kusto.Cli.dll"
        }
      }
    }
  }
}

Authentication

Before using the server, authenticate with Azure:

az login

Available Tools

Query Tools

| Tool | Description | |------|-------------| | kusto_query | Execute KQL queries (primary tool) | | kusto_execute | Advanced execution with full CLI options | | kusto_script | Execute script files |

Connection Management

| Tool | Description | |------|-------------| | kusto_connection_add | Add/update a named connection | | kusto_connection_list | List all configured connections | | kusto_connection_test | Test connectivity | | kusto_connection_remove | Remove a connection | | kusto_connection_set_default | Set the default connection |

Schema & Help

| Tool | Description | |------|-------------| | kusto_schema | Get database schema information | | kusto_help | Get help and CLI options |

Usage Examples

Add a Connection

kusto_connection_add({
  name: "my-cluster",
  cluster: "https://mycluster.kusto.windows.net",
  database: "MyDatabase",
  authMethod: "azcli",
  isDefault: true
})

Execute a Query

kusto_query({
  query: "StormEvents | summarize count() by State | top 10 by count_",
  connectionName: "my-cluster"
})

Get Schema

kusto_schema({
  scope: "tables",
  connectionName: "my-cluster"
})

Execute Multiple Commands

kusto_execute({
  commands: [
    ".show tables",
    "StormEvents | count"
  ],
  connectionName: "my-cluster"
})

Configuration

Environment variables:

| Variable | Description | Default | |----------|-------------|---------| | KUSTO_CLI_PATH | Path to Kusto.Cli.dll | Auto-detected | | KUSTO_DEFAULT_TIMEOUT | Default query timeout (ms) | 60000 | | KUSTO_MAX_ROWS | Default max rows | 10000 |

Development

# Clone the repository
git clone https://github.com/yeshsurya/kusto-mcp-server.git
cd kusto-mcp-server

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run dev

# Run tests
npm test

Publishing

# Dry run to verify package contents
npm publish --dry-run

# Publish to npm
npm publish --access public

License

MIT