EntraIDSAFE
MCP server for interacting with EntraID through Microsoft Graph API.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
This project provides a modular, resource-oriented FastMCP server for interacting with Microsoft Graph API. It is designed for extensibility, maintainability, and security, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.
Features
- Modular Resource Structure:
- Each resource (users, sign-in logs, MFA, etc.) is implemented in its own module under
src/msgraph_mcp_server/resources/. - Easy to extend with new resources (e.g., groups, devices).
- Centralized Graph Client:
- Handles authentication and client initialization.
- Shared by all resource modules.
- Comprehensive User Operations:
- Search users by name/email.
- Get user by ID.
- List all privileged users (directory role members).
- Full Group Lifecycle & Membership Management:
- Create, read, update, and delete groups.
- Add/remove group members and owners.
- Search and list groups and group members.
- Application & Service Principal Management:
- List, create, update, and delete applications (app registrations).
- List, create, update, and delete service principals.
- View app role assignments and delegated permissions for both applications and service principals.
- Sign-in Log Operations:
- Query sign-in logs for a user for the last X days.
- MFA Operations:
- Get MFA status for a user.
- Get MFA status for all members of a group.
- Password Management:
- Reset user passwords directly with custom or auto-generated secure passwords.
- Option to require password change on next sign-in.
- Permissions Helper:
- Suggest appropriate Microsoft Graph permissions for common tasks.
- Search and explore available Graph permissions.
- Helps implement the principle of least privilege by recommending only necessary permissions.
- Error Handling & Logging:
- Consistent error handling and progress reporting via FastMCP context.
- Detailed logging fo
350709c0f22cOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add entraid-mcp-server --env CLIENT_SECRET=${CLIENT_SECRET} -- uvx entraid-mcp-server{
"mcpServers": {
"entraid-mcp-server": {
"command": "uvx",
"args": [
"entraid-mcp-server"
],
"env": {
"CLIENT_SECRET": "${CLIENT_SECRET}"
}
}
}
}Exposed tools (41)
27 read · 8 write · 6 destructive. Blast radius: 6 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
add_group_member | write | Add a member to a group. |
add_group_owner | write | Add an owner to a group. |
create_application | write | Create a new application (app registration). |
create_group | write | Create a new group in Microsoft Graph. |
create_service_principal | write | Create a new service principal. |
delete_application | destructive | Delete an application (app registration) by its object ID. |
delete_group | destructive | Delete a group from Microsoft Graph. |
delete_service_principal | destructive | Delete a service principal by its object ID. |
get_all_graph_permissions | read | Get all Microsoft Graph permissions directly from the Microsoft Graph API. |
get_all_groups | read | Get all groups (up to the specified limit, with paging). |
get_all_managed_devices | read | Get all managed devices (optionally filter by OS). |
get_application_by_id | read | Get a specific application by its object ID. |
get_conditional_access_policies | read | Get all conditional access policies. |
get_conditional_access_policy_by_id | read | Get a single conditional access policy by its ID with comprehensive details. |
get_group_by_id | read | Get a specific group by its ID. |
get_group_members | read | Get members of a group by group ID (up to the specified limit, with paging). |
get_group_mfa_status | read | Get MFA status for all members of a group. |
get_managed_devices_by_user | read | Get all managed devices for a specific userId. |
get_privileged_users | read | Get all users who are members of privileged directory roles. |
get_service_principal_by_id | read | Get a specific service principal by its object ID. |
get_user_audit_logs | read | Get all relevant directory audit logs for a user by user_id within the last N days (default 30). |
get_user_by_id | read | Get a specific user by their ID. |
get_user_groups | read | Get all groups (including transitive memberships) for a user by user ID. |
get_user_mfa_status | read | Get MFA status and methods for a specific user. |
get_user_password_method | read | Get a specific password authentication method for a user. |
get_user_roles | read | Get all directory roles assigned to a user by user ID. |
get_user_sign_ins | read | Get sign-in logs for a specific user within the last N days. |
list_applications | read | List all applications (app registrations) in the tenant, with paging. |
list_permission_categories_and_tasks | read | List all available categories and tasks for permission suggestions. |
list_service_principals | read | List all service principals in the tenant, with paging. |
list_user_password_methods | read | List a user |
remove_group_member | destructive | Remove a member from a group. |
remove_group_owner | destructive | Remove an owner from a group. |
reset_user_password_direct | destructive | Reset a user |
search_groups_by_name | read | Search for groups by display name (case-insensitive, partial match, with paging). |
search_permissions | read | Search for Microsoft Graph permissions by keyword. |
search_users | read | Search for users by name or email. |
suggest_permissions_for_task | read | Suggest Microsoft Graph permissions for a specific task based on common mappings. |
update_application | write | Update an existing application (app registration). |
update_group | write | Update an existing group in Microsoft Graph. |
update_service_principal | write | Update an existing service principal. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (2 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (2)
delete_application, delete_group, delete_service_principal, remove_group_member, remove_group_owner, reset_user_password_direct
Gates applied: no_behavioural_pass, no_license.
350709c0f22cfull audit observations/trust-audit/mcp-server/hieuttmmo__entraid.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 350709c0f22c | SAFE | B | 89 | first audit |
Questions
What is the EntraID MCP server?
MCP server for interacting with EntraID through Microsoft Graph API.
What tools does EntraID expose?
41 in total: 27 read-only, 8 that write, and 6 that can delete or overwrite (delete_application, delete_group, delete_service_principal, remove_group_member, remove_group_owner). Every one is listed on this page with its risk.
Is EntraID safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 6 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does EntraID need?
It reads CLIENT_SECRET from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How current is this page?
The grade is for one exact copy of the source (350709c0f22c), read on 2026-10-08. The repository is watched and re-audited when it changes.