Skip to main content
Glama
Azure Log Analytics MCP Server

Azure Log Analytics MCP Server

by rasta26

Azure Log Analytics MCP Server (Node.js)

Node.js MCP server for Azure Log Analytics with Docker support and Service Principal authentication.

Quick Start

  1. Create .env file:

cp .env.example .env
# Edit .env with your Service Principal credentials
  1. Run with Docker Compose:

docker-compose up --build

Local Development

  1. Install dependencies:

npm install
  1. Set environment variables:

export AZURE_CLIENT_ID="your-client-id"
export AZURE_CLIENT_SECRET="your-client-secret"  
export AZURE_TENANT_ID="your-tenant-id"
  1. Run server:

npm start

Related MCP server: MCP KQL Server

Authentication

Service Principal (SPN):

  • Set AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID

  • Fallback to DefaultAzureCredential if SPN not configured

MCP Configuration

Add to Q CLI config:

{
  "mcpServers": {
    "azure-logs": {
      "command": "docker",
      "args": ["run", "-i", "--env-file", ".env", "azure-logs-mcp"]
    }
  }
}

Tools

  • query_logs - Execute KQL with formatting

  • save_query / list_saved_queries / run_saved_query - Query management

  • list_tables - List workspace tables

  • get_table_schema - Get table schema

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables natural language exploration of Azure environments by generating and executing KQL queries against Azure Resource Graph. Supports multi-tenant configurations, subscription scoping, and provides direct access to Azure resource information through conversational interactions.
      8
      3
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables intelligent KQL query execution against Azure Data Explorer clusters with AI-powered schema caching and natural language to KQL conversion. Provides automated schema discovery and context-aware query assistance for enhanced data exploration.
      75 PyPI
      24
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to query and analyze data in Azure Data Explorer, Log Analytics, and Microsoft Sentinel using Kusto Query Language (KQL) through tools, resources, and prompts.
      6
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Exposes Azure Log Analytics workspace data with tools for querying AuditLogs and AzureActivity tables, supporting custom KQL queries, time range filters, and pagination.
      -