Azure Log Analytics MCP Server
by MananShahTR
The Azure Log Analytics MCP Server allows large language models to query Azure Log Analytics using natural language. It converts natural language queries into KQL and executes them against Azure Log Analytics.
Last updated: N/A
What is Azure Log Analytics MCP Server?
An MCP (Model Context Protocol) server that translates natural language queries into Kusto Query Language (KQL) for execution against Azure Log Analytics, enabling LLMs to interact with log data.
How to use Azure Log Analytics MCP Server?
- Clone the repository and install dependencies. 2. Configure the required environment variables (ANTHROPIC_API_KEY) and Azure credentials. 3. Configure the
azure-service.ts
file with your Azure subscription ID, resource group, and Application Insights resource name. 4. Run the server in CLI mode or MCP server mode. 5. Integrate the MCP server into your LLM workflow by configuring the MCP settings.
Key features of Azure Log Analytics MCP Server
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
Use cases of Azure Log Analytics MCP Server
Enable LLMs to understand and respond to natural language requests for log data.
Automate log analysis and troubleshooting using natural language queries.
Integrate log data into LLM-powered applications and workflows.
Simplify the process of querying Azure Log Analytics for users without KQL expertise.
FAQ from Azure Log Analytics MCP Server
What is KQL?
What is KQL?
Kusto Query Language (KQL) is a query language used to process data in Azure Data Explorer, Azure Monitor Logs, and other Azure services.
What is an Anthropic API key?
What is an Anthropic API key?
An Anthropic API key is required to use the Claude AI model for converting natural language queries to KQL.
How do I configure Azure credentials?
How do I configure Azure credentials?
Azure credentials are obtained through Azure CLI credentials. Ensure you're logged in with az login
before running the server.
What is the purpose of the MCP server mode?
What is the purpose of the MCP server mode?
The MCP server mode allows the server to be integrated into LLM workflows by providing a standardized interface for querying Azure Log Analytics.
What parameters are available for the query_logs
tool?
What parameters are available for the query_logs
tool?
The query_logs
tool accepts the following parameters: query
(required), timeRange
(optional), and limit
(optional).