logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mcp-azure-loganalytics

Retrieves Azure activity logs and executes Kusto Query Language queries on Log Analytics workspaces. Provides tools for error analysis and activity log summarization through predefined prompts.

Author

mcp-azure-loganalytics logo

DominicBut

MIT License

Quick Info

GitHub GitHub Stars 1
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

azureloganalyticslogsazure loganalyticsazure activityloganalytics retrieves

Azure Log Analytics MCP Server

This project implements an MCP server in Python that leverages Azure services to provide tools and prompts for log analysis. The server performs the following functions:

  • Azure Activity Logs Retrieval: Uses the Azure Monitor Management client to obtain Azure activity logs within a specified time range.
  • Log Analytics Query: Uses the Azure Monitor Query client to run Kusto Query Language (KQL) queries against a Log Analytics workspace.
  • LLM Prompts: Exposes two prompts to help with common log analysis tasks:
  • Analyze Log Errors: Generates a prompt for an LLM to analyze error patterns in raw log data.
  • Summarize Activity Logs: Creates a prompt for summarizing the activity logs.

Prerequisites

  • Python 3.8+
  • An Azure subscription with appropriate permissions
  • Azure credentials (using any method supported by DefaultAzureCredential)
  • Environment variables set for:
  • AZURE_SUBSCRIPTION_ID
  • AZURE_LOG_ANALYTICS_WORKSPACE_ID

See Also

`