Turn your AI assistant into a data analyst in 2 minutes.
Connect Cline, Cursor, Claude Desktop, or any AI tool to Azure Data Explorer. Ask questions in plain English, get insights from your data instantly - no KQL knowledge required.
- "Show me error logs from the last hour" → Get instant insights from telemetry data
- "Which customers generated the most revenue this month?" → Analyze business metrics effortlessly
- "Find all failed authentication attempts" → Investigate security incidents with AI help
- "Summarize system performance trends" → Get automated analysis of monitoring data
No more writing complex KQL queries. Just ask your AI assistant natural questions about your data.
Add this to your cline_mcp_settings.json
file:
{
"mcpServers": {
"github.com/johnib/kusto-mcp": {
"command": "npx",
"args": ["-y", "kusto-mcp"],
"env": {},
"disabled": false,
"autoApprove": [
"initialize-connection",
"show-tables",
"show-table",
"execute-query"
]
}
}
}
Add this to your VS Code settings.json
:
{
"mcp": {
"servers": {
"github.com/johnib/kusto-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "kusto-mcp"]
}
}
}
}
Add this to your Claude Desktop configuration file:
{
"mcpServers": {
"kusto-mcp": {
"command": "npx",
"args": ["-y", "kusto-mcp"]
}
}
}
-
Install Azure CLI (if you haven't already):
# Windows winget install Microsoft.AzureCLI # macOS brew install azure-cli # Linux curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
-
Login to Azure:
az login
-
That's it! Your AI assistant can now connect to your Azure Data Explorer clusters.
Ask your AI assistant:
"Connect to my Azure Data Explorer cluster at
https://your-cluster.kusto.windows.net
and show me the available tables"
You should see your AI successfully connect and list your database tables.
- ✅ Cline - Full support with auto-approval
- ✅ Cursor - Complete integration
- ✅ Claude Desktop - Native MCP support
- ✅ VS Code with MCP - Built-in compatibility
- ✅ Any MCP-compatible tool - Universal support
🔒 Permission denied?
- Run
az login
and make sure you have access to the Azure Data Explorer cluster - Verify you're logged into the correct Azure tenant
🔌 Can't connect to cluster?
- Double-check the cluster URL format:
https://your-cluster.kusto.windows.net
- Ensure the cluster is accessible from your network
❓ AI doesn't see the tools?
- Restart your AI assistant after adding the configuration
- Check that the JSON configuration is valid (use a JSON validator)
Still stuck? → Open an issue or check our troubleshooting guide.
This MCP server provides your AI assistant with tools to:
- Initialize connections to Azure Data Explorer clusters
- Browse database tables and schemas
- Execute KQL queries with intelligent result limiting
- Handle authentication securely through Azure CLI
Results are automatically formatted and sized appropriately for AI context windows, so your assistant gets the data it needs without being overwhelmed.
Need custom settings? Check out our Configuration Guide for:
- Response format options (JSON vs Markdown)
- Query timeout settings
- Result size limiting
- OpenTelemetry integration
Building, testing, or contributing? See our Developer Documentation for:
- Building from source
- Running tests
- Project structure
- Contributing guidelines
💡 Pro tip: Start by asking your AI to "show me the tables in my database" to explore what data you have available, then ask natural language questions about specific tables.