Kusto and Log Analytics MCP server help you execute a KQL (Kusto Query Language) query within an AI prompt, analyze, and visualize the data.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add kql -- python -m mcp_kql_server --transport http --host 127.0.0.1 --port 8000 --http-path /mcp --stateless-http~/.codex/config.toml
[mcp_servers.kql]
command = "python"
args = ["-m", "mcp_kql_server", "--transport", "http", "--host", "127.0.0.1", "--port", "8000", "--http-path", "/mcp", "--stateless-http"]
# codex mcp add kql -- python -m mcp_kql_server --transport http --host 127.0.0.1 --port 8000 --http-path /mcp --stateless-http~/.cursor/mcp.json
{
"mcpServers": {
"kql": {
"command": "python",
"args": [
"-m",
"mcp_kql_server",
"--transport",
"http",
"--host",
"127.0.0.1",
"--port",
"8000",
"--http-path",
"/mcp",
"--stateless-http"
]
}
}
}.vscode/mcp.json
{
"servers": {
"kql": {
"type": "stdio",
"command": "python",
"args": [
"-m",
"mcp_kql_server",
"--transport",
"http",
"--host",
"127.0.0.1",
"--port",
"8000",
"--http-path",
"/mcp",
"--stateless-http"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"kql": {
"command": "python",
"args": [
"-m",
"mcp_kql_server",
"--transport",
"http",
"--host",
"127.0.0.1",
"--port",
"8000",
"--http-path",
"/mcp",
"--stateless-http"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"kql": {
"command": "python",
"args": [
"-m",
"mcp_kql_server",
"--transport",
"http",
"--host",
"127.0.0.1",
"--port",
"8000",
"--http-path",
"/mcp",
"--stateless-http"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"kql": {
"command": "python",
"args": [
"-m",
"mcp_kql_server",
"--transport",
"http",
"--host",
"127.0.0.1",
"--port",
"8000",
"--http-path",
"/mcp",
"--stateless-http"
]
}
}
}