MCP.so
登录

AzPolicyMCP MCP Server

@Jitha-afk

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

Jitha-afk

关于 AzPolicyMCP MCP Server

Simple MCP server to help create Azure Policies for any resource type.

#azpolicymcp#azure-policies#mcp-server

AzPolicyMCP MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

AzPolicyMCP MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is AzPolicyMCP?

AzPolicyMCP is a Model Context Protocol server that empowers Large Language Models (LLMs) to generate, validate, and deploy Azure custom policies. It provides a standardized interface for LLM applications to interact with Azure Policy definitions and assignments, ensuring correctness and compliance.

How to use AzPolicyMCP?

Configure Azure authentication via environment variables (TENANT_ID, CLIENT_ID, CLIENT_SECRET) and run the server. The LLM client invokes MCP tools such as get_builtin_policies, get_policies_in_category, get_policy_content, deploy_policy_assignment, query_policy_compliance, delete_policy_assignment, and create_policy_definition to manage the full policy lifecycle.

Key features of AzPolicyMCP

  • Fetches built-in Azure policy categories from GitHub
  • Retrieves individual policy definitions by category
  • Validates policy JSON structure against official schema (disabled)
  • Deploys policy assignments via Azure REST API
  • Queries and reports policy compliance states
  • Creates and manages policies and assignments end-to-end

Use cases of AzPolicyMCP

  • Generate custom Azure policies for any resource type
  • Validate generated policies against official Azure schema
  • Deploy validated policies directly into an Azure subscription
  • Monitor compliance status of deployed policy assignments
  • Clean up policy assignments through deletion

常见问题

1

What is the purpose of AzPolicyMCP?

It enables LLMs to assist users in generating, validating, and deploying accurate Azure custom policies, preventing incorrect policy JSON.

2

What Azure authentication is required?

The server requires environment variables `TENANT_ID`, `CLIENT_ID`, and `CLIENT_SECRET` for Azure AD authentication via the MSAL library.

3

Which tools are implemented?

Implemented tools: `get_builtin_policies`, `get_policies_in_category`, `get_policy_content`, `deploy_policy_assignment`, `query_policy_compliance`, `delete_policy_assignment`, and `create_policy_definition`.

4

Is the policy validation tool working?

`verify_policy_structure` is temporarily disabled due to issues with the schema validation library. It is intended to validate JSON against the official Azure Policy schema.

5

Where does the data live?

Built-in policy data is fetched from the `Azure/azure-policy` GitHub repository. Deployment and compliance data live in the target Azure subscription.

评论

其他 分类下的更多 MCP 服务器