# Microsoft Entra SCIM [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/darrenjrobinson/entra-scim-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 328  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/microsoft-entra-scim

## Description
Microsoft Entra SCIM 2.0 Provisioning API: user and group lifecycle, with a local mock.

## Tools
Capabilities this server exposes over MCP:

- **get_service_provider_config** — One-shot capability discovery. Static per API version — fetch once and reuse.
- **list_resource_types** — Enumerate SCIM resource types (User, Group).
- **list_schemas** — Enumerate SCIM schemas and Entra extensions, with each attribute's type, mutability and default-return. Check a patch path here before building it.
- **list_users** — List users; supports the API's restricted filter (eq/ew, and-only, `not()` around `ew`) and cursor pagination up to 999 per page. Also how you resolve a `userName` to the object id every other user tool wants, and how you list a group's members (`groups.value eq "<groupId>"`).
- **get_user** — Read a single user by id with optional attribute projection. Neither CSAs nor group membership are ever included.
- **provision_user** — Create a user with the required attribute set enforced (userName, password, displayName, name.givenName, name.familyName). `mailNickname` is optional; Entra derives it from `userName` when omitted.
- **update_user** — PATCH a user; blocks `remove` of mailNickname and enforces `[type eq "work"]` on address paths.
- **deprovision_user** — DELETE a user. Soft-deleted for 30 days, restorable only via Graph; also strips every group membership.
- **update_user_lifecycle** — Set lifecycle attrs (e.g. `employeeLeaveDateTime`) — which Lifecycle Workflows can fire off. Requires `User-LifeCycleInfo.ReadWrite.All`.
- **get_user_custom_security_attributes** — Read a user's CSAs, projected by attribute set. `attributeSets` is **required** — the API rejects the bare extension URN, and CSAs never come back from a plain `get_user`.
- **update_user_custom_security_attributes** — PATCH CSAs on a user. `remove`, or `replace` with an empty array, deletes an assignment.
- **list_groups** — List groups with the API's restricted filter set. A `members.value` filter is the only way to read membership.
- **get_group** — Read a single group (members are NOT returned — list them with `list_users` filtered on `groups.value`).
- **create_group** — POST a group. Sets `mailEnabled`, `securityEnabled`, `mailNickname`, `description` via the Entra extension. `displayName` is not unique.
- **update_group** — PATCH group attributes only (membership ops are rejected here; type flags are fixed at creation).
- **add_group_members** — Add ≥1 users to a group — auto-chunks at 20 ids per PATCH (API cap), one Operation per PATCH. Idempotent. Each PATCH is atomic per RFC 7644, but a multi-chunk sequence is not: if a later chunk fails, **this server** (not the API) raises `AddGroupMembersPartialFailure` naming `addedMemberIds` / `fai…
- **remove_group_member** — Remove a single user from a group (the API allows only one removal per PATCH, with no other ops). A 404 here usually means *not a member*, not *no such group*.
- **delete_group** — DELETE a group. Unified groups are recoverable for 30 days via Graph; security groups are not.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "microsoft-entra-scim": {
    "command": "npx",
    "args": ["-y","--package","entra-scim-mcp","entra-scim-mock-server"],
    "env": {
      "ENTRA_TENANT_ID": "",
      "ENTRA_CLIENT_ID": "",
      "ENTRA_CLIENT_SECRET": "",
      "ENTRA_CLIENT_CERT_PATH": ""
    }
  }
}
```

**Requires environment variables:** `ENTRA_TENANT_ID`, `ENTRA_CLIENT_ID`, `ENTRA_CLIENT_SECRET`, `ENTRA_CLIENT_CERT_PATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the Microsoft Entra SCIM MCP server does

The Microsoft Entra SCIM MCP server provides MCP tools for managing users and groups through Microsoft Entra’s SCIM 2.0 Provisioning API at `https://graph.microsoft.com/rp/scim`. It covers discovery, user provisioning and deprovisioning, profile updates, lifecycle attributes, Custom Security Attributes (CSAs), group creation and updates, and group membership changes.

Read operations include service-provider capability discovery, resource-type and schema enumeration, filtered user and group listing, and retrieval of individual resources. User and group responses have important boundaries: a normal user read does not include CSAs or group membership, and a group read does not include members. Group membership is read by filtering users with the group identifier.

## How it works

The Microsoft Entra SCIM MCP server runs as a stdio process launched by an MCP client. With real credentials, it obtains access for the configured tenant and sends requests to Microsoft Graph. The server validates inputs and adapts requests to API rules before sending them.

User creation requires `userName`, `password`, `displayName`, `name.givenName`, and `name.familyName`. Entra can derive `mailNickname` from `userName` when that field is omitted. User deletion is a soft delete lasting 30 days and removes the user’s group memberships; restoration must be performed through Graph.

Group membership operations account for API restrictions. Adding more than 20 users is split into multiple PATCH requests, while removing a member uses a single-user operation. Each individual PATCH is atomic, but a multi-request add can partially complete and report the added, failed, and not-yet-attempted IDs.

## Setup and configuration

Before connecting to a tenant, enable the SCIM Provisioning API in Entra ID Governance, associate a billing resource group, and use an Entra ID P1-or-higher subscription with an Azure subscription linked for billing. Register an application, grant the required Microsoft Graph application permissions, and provide admin consent. The application must use either a client secret or a PEM file containing a certificate and private key.

Set `ENTRA_TENANT_ID` and `ENTRA_CLIENT_ID`, plus exactly one of `ENTRA_CLIENT_SECRET` or `ENTRA_CLIENT_CERT_PATH`. An encrypted PEM can use `ENTRA_CLIENT_CERT_PASSWORD`.

The package can start a local mock with `entra-scim-mock-server`. Set `ENTRA_SCIM_BASE_URL` to the mock URL and `ENTRA_SCIM_STATIC_TOKEN` to its token. Alternatively, `ENTRA_SCIM_DRY_RUN=1` performs client-side validation and returns the request that would have been sent without acquiring a token or contacting an API.

## Tools and capabilities

The Microsoft Entra SCIM MCP server exposes tools for:

- Discovering supported resource types, schemas, attributes, mutability, and default-return behavior.
- Listing users and groups with the API’s restricted filter syntax and cursor pagination.
- Creating, reading, updating, and deleting users and groups.
- Setting lifecycle properties such as `employeeLeaveDateTime`.
- Reading and patching CSAs by attribute set.
- Adding and removing group members while respecting Entra PATCH limitations.

CSA reads require an `attributeSets` value; the bare extension URN is rejected, and CSAs are not included in ordinary user reads. Group type flags are fixed at creation, and membership changes must use the dedicated membership tools rather than `update_group`.

## Limitations and notes

Every live SCIM API call is billed. The server does not batch requests beyond what the API requires. Filter support is limited to the syntax accepted by the API, including `eq`, `ew`, AND-only expressions, and `not()` around `ew`.

Lifecycle updates require `User-LifeCycleInfo.ReadWrite.All`. Deleted users can be restored only through Graph. Unified groups are recoverable for 30 days through Graph, while security groups are not. A 404 from single-member removal commonly indicates that the user is not a member, rather than that the group does not exist.

_Full upstream README: https://allmcps.com/mcp/microsoft-entra-scim/readme_

