Kusto MCP Server
An MCP (Model Context Protocol) server that provides tools for interacting with Azure Data Explorer (Kusto) clusters.
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.toolsNuGet 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": ["-y", "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 -y kusto-mcp-server
Verify it's connected:
claude mcp list
VS Code with GitHub Copilot
Add to your VS Code settings.json (or .vscode/mcp.json in your workspace):
{
"mcp": {
"servers": {
"kusto": {
"command": "npx",
"args": ["-y", "kusto-mcp-server"],
"env": {
"KUSTO_CLI_PATH": "~/.nuget/packages/microsoft.azure.kusto.tools/14.0.3/tools/net8.0/Kusto.Cli.dll"
}
}
}
}
}
Or use the VS Code command palette:
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run "MCP: Add Server"
- Select "Command (stdio)"
- Enter command:
npx -y kusto-mcp-server - Enter server ID:
kusto
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
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.