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)
Create
.env
file:
Run with Docker Compose:
Local Development
Install dependencies:
Set environment variables:
Run 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:
Tools
query_logs
- Execute KQL with formattingsave_query
/list_saved_queries
/run_saved_query
- Query managementlist_tables
- List workspace tablesget_table_schema
- Get table schema
This server cannot be installed
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.