Kusto MCP 服务器のロゴ

Kusto MCP 服务器

コミュニティ
johnib

MCP server for Azure Data Explorer (Kusto), enabling AI agents to explore, query, and understand telemetry using KQL.

公開者johnib
リポジトリkusto-mcp
言語TypeScript
フォーク
6
スター
7
利用可能なツール
6
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Kusto MCP 服务器は、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 6個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには7件のスターと6件のフォークがあります。

🔍 Kusto MCP Server

CI npm version npm downloads

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.

What You Can Do

  • "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.

Quick Setup

For Claude Code Users

Run this terminal command to install:

bash
claude mcp add kusto-mcp -- npx -y kusto-mcp@latest

For Cline Users

Add this to your cline_mcp_settings.json file:

json
{
  "mcpServers": {
    "github.com/johnib/kusto-mcp": {
      "command": "npx",
      "args": ["-y", "kusto-mcp@latest"],
      "env": {},
      "disabled": false,
      "autoApprove": [
        "initialize-connection",
        "show-tables",
        "show-table",
        "execute-query",
        "report-issue"
      ]
    }
  }
}

For Cursor Users

Add this to your VS Code settings.json:

json
{
  "mcp": {
    "servers": {
      "github.com/johnib/kusto-mcp": {
        "type": "stdio",
        "command": "npx",
        "args": ["-y", "kusto-mcp"]
      }
    }
  }
}

For Claude Desktop Users

Add this to your Claude Desktop configuration file:

json
{
  "mcpServers": {
    "kusto-mcp": {
      "command": "npx",
      "args": ["-y", "kusto-mcp"]
    }
  }
}

Authentication Setup

  1. Install Azure CLI (if you haven't already):

    bash
    # Windows
    winget install Microsoft.AzureCLI
    
    # macOS
    brew install azure-cli
    
    # Linux
    curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
  2. Login to Azure:

    bash
    az login
  3. That's it! Your AI assistant can now connect to your Azure Data Explorer clusters.

Test It Works

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.

Supported AI Tools

  • ✅ Claude Code - One-command setup with native MCP support
  • ✅ 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

Common Issues

🔒 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.

What's Under the Hood

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
  • Report a bug or request a feature on GitHub (report-issue)

Results are automatically formatted and sized appropriately for AI context windows, so your assistant gets the data it needs without being overwhelmed.

Reporting a Problem

Hit a bug or want a feature? Ask your AI assistant to "report a kusto-mcp issue about …" and it will call the report-issue tool.

The tool returns a pre-filled GitHub issue link — open it in a browser where you're signed in to GitHub, review the title and body, and click Submit new issue. A few things worth knowing:

  • No GitHub token is needed or stored. The server never files anything on your behalf; the issue is created under your own GitHub account when you submit the form. (You do need a GitHub account to submit.)
  • Works even when the connection is broken — it doesn't require an active Kusto connection, so it's the right tool for reporting connection problems.
  • By default a small, non-sensitive environment footer (kusto-mcp/Node/OS/MCP-client versions, whether a connection is active, response format, write mode) is appended to help triage. Pass includeDiagnostics: false to omit it. It never includes your cluster URL, database, identity, query text, or results.

Telemetry & Privacy

kusto-mcp reports anonymous usage telemetry to the maintainer's Honeycomb instance to understand how the tool is used and to diagnose failures. Telemetry is always on — using kusto-mcp means reporting anonymous usage. There is no personal or organizational data in it, and no query text or results (details below).

What is collected (traces, metrics, and operational logs via OpenTelemetry):

  • Usage: which tools are called, latency, query/command length (not text), result row counts, response sizes, outcomes, and your config/feature-flag settings.
  • Reliability: call/error counts, connection attempts/failures, and error class names (e.g. KustoQueryError) — never error messages.
  • Cohort counters: salted hashes of your Azure tenant id (company_hash) and object id (user_hash), so the maintainer can count distinct organizations and users — no raw tenant, company name, email domain, email, UPN, or user id is ever sent. Plus principal_type (user vs service principal) and account_type (personal vs enterprise); the shared personal-account tenant sends no company_hash.
  • Environment: kusto-mcp version, OS/architecture, Node.js version, MCP client name, and a random per-install identifier (machine.id).

What is NEVER collected: no company name or email domain; no raw Azure tenant id or user id; no full email, UPN, or name; no cluster, database, table, or function names; no query text, results, error messages, credentials, or tokens.

Routing to your own collector: enterprises that run their own OpenTelemetry pipeline can redirect the data with standard env vars — OTEL_EXPORTER_OTLP_ENDPOINT (your OTLP HTTP base URL) and OTEL_EXPORTER_OTLP_HEADERS (key=value,key2=value2).

Advanced Configuration

Need custom settings? Check out our Configuration Guide for:

  • Response format options (JSON vs Markdown)
  • Query timeout settings
  • Result size limiting
  • OpenTelemetry integration

For Developers

Building, testing, or contributing? See our Developer Documentation for:

  • Building from source
  • Running tests
  • Project structure
  • Contributing guidelines

License

MIT


💡 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.

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "johnib-kusto-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "kusto-mcp"
      ]
    }
  }
}

利用可能なツール

  • initialize-connection

    Creates connection to an ADX cluster

  • show-tables

    List tables in the current database

  • show-table

    Show the table schema columns

  • execute-query

    Runs KQL queries and returns results. By default, limits results to 20 rows to prevent context overflow. Use the "limit" parameter to specify a different maximum. If results are marked as partial, consider revising your query to use aggregations, filters, or summarizations.

  • show-functions

    List functions in the current database

  • show-function

    Show details of a specific function, including its code and parameters

Kusto MCP 服务器のMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Kusto MCP 服务器に接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Kusto MCP 服务器をサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Kusto MCP 服务器のMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "johnib-kusto-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "kusto-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてKusto MCP 服务器のMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Kusto MCP 服务器のMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Kusto MCP 服务器を使ってこのタスクを手伝ってもらえますか?
Kusto MCP 服务器
はい、読みました。
Kusto MCP 服务器で調べた結果をお伝えします。

よくある質問

Kusto MCP 服务器 MCPサーバーは何に使いますか?

Kusto MCP 服务器は、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでKusto MCP 服务器 MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでKusto MCP 服务器を利用できます。

TypingMindでKusto MCP 服务器 MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Kusto MCP 服务器を接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Kusto MCP 服务器 MCPをTypingMindに接続するにはどうすればよいですか?

Kusto MCP 服务器はTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでKusto MCP 服务器 MCPのどのようなツールを利用できますか?

Kusto MCP 服务器は6個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Kusto MCP 服务器 MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Kusto MCP 服务器で認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

analyze-query-perf

Analyze KQL query performance by measuring scanned extents and totalCpu impact of each query part

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇