Kusto (Azure Data Explorer) MCP server

Integrates with Azure Data Explorer to enable read-only querying, table listing, and schema retrieval for large-scale telemetry data analysis.
Back to servers
Setup instructions
Provider
ZZZHDW
Release date
Dec 12, 2024
Language
Python
Stats
1 star

The Kusto MCP Server provides access to Azure Data Explorer (ADX) clusters through a Model Context Protocol interface. It allows you to list tables, execute queries, and retrieve schema information from both internal and external tables in your ADX cluster.

Installation

You need to have the MCP server installed on your system to use it with Claude Desktop or other compatible applications.

Prerequisites

  • Python environment with uv package manager
  • Access to an Azure Data Explorer cluster or ADX Emulator
  • Authentication credentials (for Azure ADX clusters)

Configuration

Setting up with Claude Desktop

To configure the Kusto MCP Server with Claude Desktop, edit your claude_desktop_config.json file and add the server configuration:

{
  "mcpServers": {
    "kusto": {
      "command": "uv",
      "args": [
        "--directory",
        "{{PATH_TO_PROJECT}}\\mcp-server-kusto\\src\\mcp_server_kusto",
        "run",
        "mcp-server-kusto",
        "--cluster",
        "{{ADX_CLUSTER_URL}}",
        "--authority_id",
        "{{TENANT_ID}}",
        "--client_id",
        "{{CLIENT_ID}}",
        "--client_secret",
        "{{CLIENT_SECRET}}"
      ]
    }
  }
}

Replace the placeholder values:

  • {{PATH_TO_PROJECT}}: Path to the project directory
  • {{ADX_CLUSTER_URL}}: Your Azure Data Explorer cluster URL
  • {{TENANT_ID}}: Your Azure tenant ID
  • {{CLIENT_ID}}: Your client/application ID
  • {{CLIENT_SECRET}}: Your client secret

Using with ADX Emulator

If you're using the Azure Data Explorer emulator locally, you can use a simplified configuration without authentication credentials:

{
  "mcpServers": {
    "kusto": {
      "command": "uv",
      "args": [
        "--directory",
        "{{PATH_TO_PROJECT}}\\mcp-server-kusto\\src\\mcp_server_kusto",
        "run",
        "mcp-server-kusto",
        "--cluster",
        "https://localhost:8082"
      ]
    }
  }
}

Available Tools

The Kusto MCP Server provides several tools for interacting with your ADX cluster:

List Tables Tools

  • list_internal_tables: Lists all internal tables in the cluster
  • list_external_tables: Lists all external tables in the cluster
  • list_materialized_views: Lists all materialized views in the cluster

Query Execution Tools

  • execute_query_internal_table: Executes a query on an internal table or materialized view
  • execute_query_external_table: Executes a query on an external table

Schema Retrieval Tools

  • get_internal_table_schema: Gets the schema of an internal table or materialized view
  • get_external_table_schema: Gets the schema of an external table

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "kusto" '{"command":"uv","args":["--directory","{{PATH_TO_PROJECT}}\\mcp-server-kusto\\src\\mcp_server_kusto","run","mcp-server-kusto","--cluster","{{ADX_CLUSTER_URL}}","--authority_id","{{TENANT_ID}}","--client_id","{{CLIENT_ID}}","--client_secret","{{CLIENT_SECRET}}"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "kusto": {
            "command": "uv",
            "args": [
                "--directory",
                "{{PATH_TO_PROJECT}}\\mcp-server-kusto\\src\\mcp_server_kusto",
                "run",
                "mcp-server-kusto",
                "--cluster",
                "{{ADX_CLUSTER_URL}}",
                "--authority_id",
                "{{TENANT_ID}}",
                "--client_id",
                "{{CLIENT_ID}}",
                "--client_secret",
                "{{CLIENT_SECRET}}"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "kusto": {
            "command": "uv",
            "args": [
                "--directory",
                "{{PATH_TO_PROJECT}}\\mcp-server-kusto\\src\\mcp_server_kusto",
                "run",
                "mcp-server-kusto",
                "--cluster",
                "{{ADX_CLUSTER_URL}}",
                "--authority_id",
                "{{TENANT_ID}}",
                "--client_id",
                "{{CLIENT_ID}}",
                "--client_secret",
                "{{CLIENT_SECRET}}"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later