AzPolicyMCP
If you are the rightful owner of AzPolicyMCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
AzPolicyMCP is a Model Context Protocol server designed to assist in creating Azure Policies for any resource type.
AzPolicyMCP is an Azure Policy Model Context Protocol (MCP) Server that enables Large Language Models (LLMs) to generate, validate, and deploy Azure custom policies effectively. It addresses the challenge of LLMs generating incorrect or non-compliant Azure policy JSON by providing tools to fetch built-in policies, validate policy structures, and manage policy assignments via the Azure REST API. The server also helps in selecting the appropriate policy effect based on user intent, such as audit/deny or remediation. The primary users are LLM applications that interact with Azure Policy definitions and assignments, providing a standardized interface for creating, validating, and deploying accurate Azure policies.
Features
- get_builtin_policies: Fetches top-level categories of Azure built-in policies from the Azure GitHub repository, allowing LLMs to discover available policy categories.
- get_policies_in_category: Fetches individual policy definition files within a specified category, enabling LLMs to find relevant policy examples.
- get_policy_content: Fetches the raw JSON content of a specific policy definition, providing LLMs with concrete examples or templates.
- deploy_policy_assignment: Creates or updates an Azure Policy Assignment using a provided policy definition and assignment parameters, enabling LLMs to deploy policies into Azure.
- query_policy_compliance: Queries the compliance state of resources within a specified scope, allowing LLMs to report on policy compliance status.
Tools
get_builtin_policies
Fetches Azure built-in policy categories.
get_policies_in_category
Fetches policy definitions within a category.
get_policy_content
Fetches raw JSON content of a policy.
deploy_policy_assignment
Deploys or updates a policy assignment.
query_policy_compliance
Queries compliance state of resources.