Skip to main content
Glama

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

Docker (Recommended)

  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

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

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables querying and managing Azure Log Analytics workspaces using KQL (Kusto Query Language). Supports executing queries, managing saved queries, and exploring workspace tables and schemas with Service Principal authentication.

  1. Quick Start
    1. Docker (Recommended)
    2. Local Development
  2. Authentication
    1. MCP Configuration
      1. Tools

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/rasta26/azure_log_mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server