Azure Log Analytics MCP Server

by MananShahTR

392 downloads Not rated yet
GitHub

About

MCP server for querying Azure Log Analytics using natural language

Explore

- Convert natural language queries to KQL using Claude AI
- Execute KQL queries against Azure Log Analytics
- Format results for easy consumption by LLMs
- CLI mode for direct interactions and MCP server mode for LLM integrations

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Azure Log Analytics MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Prerequisites

- Node.js 18.x or higher
- An Azure subscription with Log Analytics workspace
- An Anthropic API key for Claude AI
- Azure CLI configured with appropriate credentials

query_logs

Query Azure Log Analytics using natural language

query

Natural language query about trace logs (required)

timeRange

Optional time range (e.g., "last 24 hours", "past week")

limit

Maximum number of results to return

ANTHROPIC_API_KEY=your_key_here node build/index.js
``

Once connected, the MCP server provides the following tool:

- query_logs: Query Azure Log Analytics using natural language
- Parameters:
-
query: Natural language query about trace logs (required)
-
timeRange: Optional time range (e.g., "last 24 hours", "past week")
-
limit`: Maximum number of results to return

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "azure log analytics mcp server": {
            "azure-log-analytics-mcp": {
                "command": "node",
                "args": [
                    "build/index.js"
                ],
                "env": {
                    "ANTHROPIC_API_KEY": "your_key_here"
                }
            }
        }
    }
}

McpServers

{
    "azure-log-analytics-mcp": {
        "command": "node",
        "args": [
            "build/index.js"
        ],
        "env": {
            "ANTHROPIC_API_KEY": "your_key_here"
        }
    }
}

An MCP (Model Context Protocol) server for querying Azure Log Analytics using natural language. This server allows large language models to convert natural language queries into KQL (Kusto Query Language) and execute them against Azure Log Analytics.

Features

- Convert natural language queries to KQL using Claude AI
- Execute KQL queries against Azure Log Analytics
- Format results for easy consumption by LLMs
- CLI mode for direct interactions and MCP server mode for LLM integrations

Prerequisites

- Node.js 18.x or higher
- An Azure subscription with Log Analytics workspace
- An Anthropic API key for Claude AI
- Azure CLI configured with appropriate credentials

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.