Interactive Entra ID identity relationship visualization β the 2003 polyarchy, live as an MCP App
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An interactive Microsoft Entra ID identity relationship visualization, served as an MCP App.

In 2003 Microsoft demoed PolyArchy Server β a web visual over identity data showing intersecting relationship hierarchies, where clicking a datapoint flipped the whole view to that context. It never shipped. This is it, finally real: a live D3 force-graph over your Entra ID tenant that renders inside your MCP client (Claude Desktop, VS Code Copilot, M365 Copilot, ChatGPT, Cursor, Goose, Postman β anything that supports the MCP Apps extension).
Ask your assistant "show me the identity polyarchy around Rebecca" and explore:
onPremisesExtensionAttributes/extensionAttribute9Prefer data over pictures? polyarchy-report returns the same relationships as
structured JSON β manager chain, group memberships with type and assigned/dynamic,
roles, app assignments β for the assistant to reason over, no UI required.
The graph accumulates across dimensions: one intersecting polyarchy, not four separate charts. People are shaded by degrees of separation from the focus (blue ramp); groups, roles, apps and attribute hubs wear the colour of the relationship that connects them β matching their edges β faded with distance so the hop cue survives. Light and dark theme follow your MCP client.
That's it for most tenants β no app registration needed. Be aware of what that
means: with no configuration the server signs you in through Microsoft's first-party
"Microsoft Graph Command Line Tools" public client
(client ID 14d82eec-204b-4c2f-b7e8-296a70dab67e) β the same well-known app the Graph
PowerShell/CLI tooling uses. It exists in every tenant and already has broad delegated
consent in many. Hardened environments commonly block or restrict this app (Conditional
Access, consent policies, or app management restrictions) β if that's your tenant, use
your own app registration instead;
everything else works identically.
Sign-in happens on the first tool call β and then never again:
~/.entrapulse-polyarchy/auth-record.json,
so freshly spawned server processes sign in silently β MCP clients respawn stdio
servers freely, and none of those spawns re-prompt.~/.entrapulse-polyarchy/auth.log with timings
(silent acquisitions are milliseconds; anything interactive is obvious) β the first
place to look if you ever see a prompt you didn't expect.| Mode | Configure | Notes |
|---|---|---|
| Interactive (default) | nothing β or TENANT_ID + CLIENT_ID to use your own app | System browser sign-in (random loopback port β register http://localhost portless); delegated permissions; /me is the default focus |
| Device code | USE_DEVICE_CODE=true | Headless/SSH β code printed to the server log |
| App-only | TENANT_ID + CLIENT_ID + CLIENT_SECRET | Application permissions; no /me, so always pass a person to visualize-identity / polyarchy-report |
| Client-provided token | USE_CLIENT_TOKEN=true (+ optional ACCESS_TOKEN) | The MCP client supplies/refreshes a Graph bearer token via the set-access-token tool β seamless SSO for hosts like EntraPulse that already hold one |
Other env vars: POLYARCHY_DISABLE_TOKEN_CACHE=true disables OS-keychain token
persistence; POLYARCHY_AUTH_RECORD=<path> relocates the persisted sign-in record
(delete the file to force a fresh sign-in).
| Scope | Used for |
|---|---|
User.Read.All | org hierarchy, search, attribute pivots |
Group.Read.All | group memberships and members |
RoleManagement.Read.Directory | directory roles |
Application.Read.All | app assignments |
The default first-party client typically has broad delegated consent already. Missing
consent shows up as a clear 403 message naming the scope β ask your assistant to run
get-auth-status to see exactly which app registration, scopes and account your token
contains.
Scopes and directory roles are separate gates: the token must always carry the scopes above (an admin role can't substitute for them), while on the user side plain member default permissions cover everything this app reads β no admin role required. Only tenants that restrict default user read access (or guest users) need a role that includes directory read, for which Directory Readers is the least-privileged fit.
If the Graph Command Line Tools app is blocked, unconsented, or you simply want an app you control (own Conditional Access targeting, own consent trail), point the server at your own registration β supported in both interactive and device-code modes:
http://localhost (no port!), and enable Allow public client flows if you
want device-code sign-in. The port matters: interactive sign-in listens on a random
loopback port each time (e.g. http://localhost:51106), and Entra only ignores the
port when the registered redirect is the portless http://localhost. Registering a
fixed port like :3000, or reusing an app that only has web redirects (Graph
Explorer, for instance), fails with a reply-URL mismatch.Setting TENANT_ID alone (without CLIENT_ID) is also useful on its own: it pins
sign-in to your tenant instead of the common endpoint, which multi-tenant users and
guest accounts often want regardless of which client app is used.
The Attributes view groups people around shared values. The toolbar picker offers the
everyday pivots (Department, Job title, Company, Office, City, State, Employee type),
plus Other attributes⦠which opens a type-ahead over the full Graph user-attribute
catalog β all fifteen onPremisesExtensionAttributes, employeeOrgData/costCenter,
onPremisesSamAccountName, employeeId and ~50 more. Matching is forgiving (ext9
finds extensionAttribute9), free text is accepted for anything uncatalogued, and
attributes you pick join the dropdown for the rest of the session. Nested paths are
resolved server-side: the needed property is $selected on demand and cohort filters
use Graph advanced queries, with attribute paths validated before they reach an OData
filter.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/entrapulse-polyarchy)<a href="https://allmcps.com/mcp/entrapulse-polyarchy"><img src="https://allmcps.com/api/badge/entrapulse-polyarchy?style=directory" alt="Entrapulse Polyarchy on AllMCPs" /></a>