PolicyClient Claude Desktop Config
Add the PolicyClient MCP server to Claude Desktop with this ready-to-use configuration.
Setup Instructions
- Open Claude Desktop
- Go to Settings → Developer → Edit Config →
claude_desktop_config.json - Paste the JSON below into the file
- Set your credentials in the
envsection - Restart Claude Desktop
Configuration JSON
Copy the entire block into your claude_desktop_config.json
{
"mcpServers": {
"azure-com-resources-policyassignments": {
"command": "npx",
"args": [
"-y",
"@mcp/azure-com-resources-policyassignments"
],
"env": {
"POLICYCLIENT_API_KEY": "your_policyclient_api_key"
}
}
}
}Environment Variables
POLICYCLIENT_API_KEYReplace your_policyclient_api_key with your actual policyclient api key
Endpoints
GET
/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignmentsPolicyAssignments_List
GET
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignmentsPolicyAssignments_ListForResourceGroup
GET
/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignmentsPolicyAssignments_ListForResource
GET
/{policyAssignmentId}Gets a policy assignment by ID.
PUT
/{policyAssignmentId}Creates a policy assignment by ID.
DELETE
/{policyAssignmentId}Deletes a policy assignment by ID.
GET
/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}PolicyAssignments_Get
PUT
/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}Creates a policy assignment.
DELETE
/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}PolicyAssignments_Delete