Skip to content
Cloud InfrastructureAuto-generatedScore: 34

Azure Log Analytics MCP Server

The Azure Log Analytics API is a comprehensive programmatic interface provided by Microsoft for managing and interacting with Azure Log Analytics, a cloud-based service designed for collecting, correlating, and analyzing massive volumes of log and performance data from across an organization's entire hybrid infrastructure.

Quick Start Summary

The Azure Log Analytics MCP server is a Model Context Protocol bridge that connects AI assistants — including Claude Desktop, Cursor, Windsurf, and VS Code Copilot — to the Azure Log Analytics API through natural language. It exposes 10 API endpoints as callable tools, such as Operations_List, Workspaces_ListLinkTargets, Workspaces_GetPurgeStatus, and more. No authentication is required — setup takes approximately 30 seconds. The server uses STDIO transport and can be installed by running npx -y @mcp/azure-com-operationalinsights-operationalinsights. This integration is sourced from the auto Azure Log Analytics OpenAPI specification (v2015-03-20) and has a quality score of 34/99 (fair documentation coverage).

10Endpointstools mapped
NoneAuthopen access
34/99Qualityfair
~30 secSetupno auth

Server Details

Category
Cloud Infrastructure
Authentication
None
Endpoints
10 operations
Transport
STDIO
Spec Version
v2015-03-20
Install Command
npx -y @mcp/azure-com-operationalinsights-operationalinsights

Environment Variables

AZURE_LOG_ANALYTICS_API_KEY

Example: your_azure_log_analytics_api_key

Top Endpoints

GET
/providers/Microsoft.OperationalInsights/operations

Operations_List

GET
/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/linkTargets

Workspaces_ListLinkTargets

GET
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}

Workspaces_GetPurgeStatus

POST
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/purge

Workspaces_Purge

DELETE
/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}

Workspaces_DeleteGateways

Own this API?

Verify ownership of this listing to control the description, configuration details, and documentation links. Choose between free manual verification or instant premium placement.

Option 1: Free Verification

Slow manual review. Requires creating a GitHub issue with verified documentation or domain verification.

  • • Verified badge on page
  • • Standard search sorting
  • • 2-3 business days review
Start Free Claim →
Instant & Boosted

Option 2: Featured Upgrade($9/mo)

Instant verification plus premium styling, featured badges, and directory placement boost.

  • • ★ Featured star & amber highlight border
  • • Top of directory search placement
  • • Instant activation via claim token

📖 Detailed MCP Integration Guide

A technical breakdown of capabilities, agent workflows, and security/configuration best practices.

Capabilities & Use Cases
The Azure Log Analytics API is a comprehensive programmatic interface provided by Microsoft for managing and interacting with Azure Log Analytics, a cloud-based service designed for collecting, correlating, and analyzing massive volumes of log and performance data from across an organization's entire hybrid infrastructure. This API serves as the backbone for automating and integrating Log Analytics capabilities into custom applications, IT automation workflows, and enterprise management systems. It enables developers and IT professionals to programmatically create and manage workspaces, control data lifecycle through purging, manage saved searches for repeated querying, handle gateway configurations for hybrid connectivity, and manage workspace keys for secure access. Its core value lies in transforming raw operational data into actionable intelligence, supporting critical enterprise use cases such as centralized monitoring, proactive alerting, advanced threat hunting, capacity planning, and compliance auditing by providing machine-readable access to the Log Analytics platform's engine.
🤖AI Agent Value
When this API is exposed as a toolset to an AI coding assistant through the Model Context Protocol, it significantly amplifies the assistant's utility from a code generation aide to a dynamic operational partner. The AI agent can transcend static code suggestions and execute real-world infrastructure and data management tasks directly within the developer's Azure environment. For example, instead of just generating a KQL query snippet, the assistant could use the saved search endpoints to retrieve an existing complex query, analyze its structure, and suggest optimizations. It could then programmatically update that saved search via the PUT endpoint with the refined version, automating a best-practice workflow. Furthermore, the AI could be instructed to diagnose a system issue by first listing relevant saved searches, executing a purge operation to clean old diagnostic data via the POST /purge endpoint, and then confirming the purge status—all through a sequence of natural language commands, dramatically accelerating incident response and data hygiene routines.
💬Example Workflows
Practical workflow examples showcase the profound efficiency gains. A developer could instruct the AI: "Audit and clean up all unused saved searches in workspace 'Prod-Monitoring' older than 90 days; create a new saved search named 'AnomalousLoginAttempts' that uses this KQL query, and then generate and display the access keys for this workspace so I can configure my external SIEM tool." In response, the AI agent would utilize the GET /savedSearches endpoint to list all searches, filter them based on the provided criteria, and then use the DELETE endpoint (though not listed in the provided endpoints, it's a common REST pattern; assuming it exists for savedSearches) to remove obsolete entries. It would then construct a PUT request with the provided query to create the new saved search. Finally, it would call the POST /listKeys endpoint to retrieve the workspace keys, presenting them to the user for their next configuration step. This turns high-level operational directives into a coordinated, multi-step automation sequence that reduces manual console navigation and scripting overhead.
🛡️Security & Auth
Critical to implementing this integration securely is adhering to Azure's robust authentication and authorization framework. While the API reference may note "None" for simplicity, in practice, all requests must be authenticated using either Azure Active Directory (AAD) OAuth 2.0 tokens for user/delegated access or Service Principal credentials (client ID, secret, and tenant ID) for application-to-application access. Following the principle of least privilege is paramount; the identity used by the MCP server should be granted a custom RBAC role on the Log Analytics workspace with only the specific permissions required, such as "Microsoft.OperationalInsights/workspaces/savedSearches/write" for managing searches or "Microsoft.OperationalInsights/workspaces/purge/action" for data deletion, rather than a broad contributor role. API keys retrieved via the listKeys endpoint should be treated as sensitive secrets, stored securely in a vault like Azure Key Vault, and rotated regularly using the regenerateSharedKey endpoint. Developers must also be aware of the significant impact of the purge endpoint, which permanently deletes data, and should implement safeguards like confirmation prompts or dry-run modes in their AI-driven workflows to prevent accidental data loss.

Similar APIs

Other APIs in the Cloud Infrastructure category.

Related MCP Server Integrations

Supabase API MCP Setup

Manage Supabase projects, databases, authentication, and storage through your AI agent.

Cloud InfrastructureConfigure →

Cloudflare API MCP Setup

Manage Cloudflare DNS, CDN, Workers, and security settings through your AI agent.

Cloud InfrastructureConfigure →

Vercel API MCP Setup

Deploy projects, manage domains, and monitor deployments through your AI agent.

Cloud InfrastructureConfigure →

DigitalOcean API MCP Setup

The DigitalOcean API is a comprehensive, RESTful interface provided by DigitalOcean, a leading cloud infrastructure provider focused on simplifying cloud computing for developers, startups, and enterprises. It serves as the programmatic backbone for managing the entire DigitalOcean ecosystem, enabling users to provision, configure, and control cloud resources such as Droplets (virtual private servers), Kubernetes clusters, managed databases, networks, storage volumes, and application platforms. Core capabilities include full lifecycle management of these resources, from creation and scaling to monitoring and deletion, mirroring the functionality available in the DigitalOcean control panel. Its primary use cases range from automating infrastructure setup for CI/CD pipelines and enabling infrastructure-as-code practices to supporting dynamic application scaling and resource optimization for SaaS products, e-commerce sites, and development environments. The API is designed for both developers seeking to automate their cloud operations and businesses that require programmable, scalable cloud infrastructure without the complexity of larger hyperscale providers.

Cloud InfrastructureConfigure →

Access Analyzer MCP Setup

The AWS Identity and Access Management Access Analyzer API provides a powerful, policy-as-code service that automatically identifies resources accessible from outside your AWS account or organization. At its core, the service continuously evaluates resource-based policies—such as Amazon S3 bucket policies, AWS Identity and Access Management (IAM) roles, Amazon KMS key policies, and AWS Lambda function policies—using logic-based reasoning to determine which resources grant access to unknown external principals. Its primary use case is for security and compliance teams within enterprises to proactively detect unintended data exposure, enforce least privilege principles, and audit cross-account and cross-service access. The API endpoints allow programmatic control to create, configure, and query analyzers, manage archive rules for storing findings, and generate custom policy documents, making it a foundational tool for automating cloud security posture management at scale.

Cloud InfrastructureConfigure →