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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@aditya-vaish/kusto-mcp-server

v1.0.11

Published

MCP server for interacting with Kusto databases

Readme

Kusto MCP Server

An MCP (Model Context Protocol) server that connects to your Azure Data Explorer (Kusto) database, exposing table schemas as resources and providing tools for data analysis.

Features

  • Connection to Kusto Database: Securely connects to your Azure Data Explorer environment using service principal or managed identity authentication.
  • Schema Resources: Exposes table schemas and sample data as resources for AI assistants to understand your data structure.
  • KQL Query Tools: Provides tools for running read-only KQL queries against your database.
  • Data Analysis Tools: Pre-built tools for common data analysis tasks like time series analysis, anomaly detection, etc.
  • Analysis Prompts: Includes prompt templates for guiding AI assistants in performing common data analysis tasks.

Setup Instructions

Prerequisites

  • Node.js 18.0 or higher
  • Access to an Azure Data Explorer (Kusto) database
  • Proper authentication credentials (service principal or managed identity)

Installation

  1. Clone this repository or navigate to the project directory
  2. Install dependencies:
npm install
  1. Create a .env file based on the example:
cp .env.example .env
  1. Configure the environment variables in the .env file:
# Kusto Connection Settings
KUSTO_CLUSTER_URI=https://your-cluster.kusto.windows.net
KUSTO_DATABASE=your-database

# Authentication settings 
# Option 1: Azure AD App Registration (Service Principal)
AZURE_CLIENT_ID=your-client-id
AZURE_CLIENT_SECRET=your-client-secret
AZURE_TENANT_ID=your-tenant-id

# Option 2: Managed Identity (if running in Azure)
# USE_MANAGED_IDENTITY=true

# MCP Server Config
MCP_SERVER_NAME=kusto-mcp-server
MCP_SERVER_VERSION=1.0.0

Build and Run

  1. Build the TypeScript project:
npm run build
  1. Start the MCP server:
npm start

Integrating with MCP Clients

Using with Claude Desktop

  1. Configure Claude Desktop to use this MCP server by adding it to your claude_desktop_config.json file:
{
  "mcpServers": {
    "kusto-server": {
      "command": "node",
      "args": [
        "path/to/kusto-mcp-server/dist/index.js"
      ]
    }
  }
}
  1. Start Claude Desktop and the server will automatically connect.

Using with Other MCP Clients

This MCP server uses the standard stdio transport, making it compatible with any MCP client that supports this transport.

Available Resources

  • kusto://tables - Lists all available tables in the database
  • kusto://schema/{tableName} - Shows schema information for a specific table
  • kusto://sample/{tableName}/{sampleSize?} - Retrieves sample data from a specific table

Available Tools

  • executeQuery - Executes a read-only KQL query against your database
  • getTableInfo - Gets detailed schema and sample data for a specified table
  • findTables - Finds tables that match a specified name pattern
  • analyzeData - Performs various data analyses including summary statistics, time series analysis, top values analysis, outlier detection, and correlation analysis

Available Prompts

  • Explore Dataset - Guide for exploring a new dataset
  • Time Series Analysis - Analyze trends and patterns in time-based data
  • Anomaly Detection - Identify unusual patterns or outliers in data
  • Comparative Analysis - Compare data across different dimensions or time periods
  • KQL Query Assistance - Get help building and optimizing KQL queries
  • Data Quality Assessment - Evaluate and understand the quality of your data

Security Considerations

  • This server only allows read-only operations to protect your data
  • Contains basic security measures to prevent destructive operations
  • Uses Azure AD authentication for secure database access
  • Consider additional security measures depending on your specific requirements

License

ISC