Entrapulse Polyarchy
Interactive Microsoft Entra ID identity graph that renders inside your MCP client
- Pricing
- Open source
- Platforms
- CLI, Windows, macOS
- Runs
- Locally
- Version
- 0.3.1
- Listing updated
- today
Similar MCP servers
About Entrapulse Polyarchy
Entrapulse Polyarchy is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.
The idea comes from PolyArchy Server, a 2003 Microsoft demo of intersecting relationship hierarchies that never shipped. This server draws it as a D3 force graph inside any MCP client that supports MCP Apps, such as Claude Desktop, VS Code Copilot, Cursor or ChatGPT. Asking to "show the identity polyarchy around" a person opens the graph, and double-clicking any node re-centres the whole view on it.
Four dimensions accumulate in one graph: org chains, group memberships, shared attributes (including nested paths like onPremisesExtensionAttributes/extensionAttribute9), and directory roles and app assignments. Everything fetched in a session is cached, so revisiting a neighbourhood makes no extra Graph calls. A polyarchy-report tool returns the same relationships as JSON for assistants that prefer data.
By default sign-in uses Microsoft's first-party Graph Command Line Tools client, which some hardened tenants block; the README explains bringing your own app registration and lists the delegated scopes needed. Tokens are kept in the OS keychain.
Install
Run in a terminal
claude mcp add entrapulse-polyarchy -- npx -y entrapulse-polyarchyAdd to claude_desktop_config.json
{
"mcpServers": {
"entrapulse-polyarchy": {
"command": "npx",
"args": [
"-y",
"entrapulse-polyarchy"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"entrapulse-polyarchy": {
"command": "npx",
"args": [
"-y",
"entrapulse-polyarchy"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"entrapulse-polyarchy": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"entrapulse-polyarchy"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"entrapulse-polyarchy": {
"command": "npx",
"args": [
"-y",
"entrapulse-polyarchy"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"entrapulse-polyarchy": {
"command": "npx",
"args": [
"-y",
"entrapulse-polyarchy"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
- visualize-identity
- Opens the interactive identity graph around a person
- polyarchy-report
- Returns relationships as structured JSON
- get-auth-status
- Shows the app registration, scopes and account in use
- set-access-token
- Lets the client supply a Graph bearer token
What it does
- Force-graph in the client
- A live D3 graph renders inside MCP Apps-capable clients.
- Four relationship views
- Org, groups, attributes and access combine in one graph.
- Click to re-focus
- Double-click any node to flip the context to it.
- JSON report
- `polyarchy-report` returns manager chains, groups, roles and app assignments as data.
- Several auth modes
- Interactive, device code, app-only or client-provided token.
- Session cache
- Revisited neighbourhoods load with no extra Graph calls.
Good for
- Map a person's manager chain and group memberships
- Find everyone sharing an attribute such as department
- See who holds directory roles near a user
- Audit app assignments around an identity
- Get a structured identity report for an assistant to analyse
Pricing
Open source
Free npm package; needs a Microsoft Entra tenant.
Entrapulse Polyarchy FAQ
Do I need an app registration?
Not for most tenants; the default uses Microsoft's Graph Command Line Tools client, but hardened tenants should register their own app.
Which permissions does it need?
Delegated User.Read.All, Group.Read.All, RoleManagement.Read.Directory and Application.Read.All.
Which clients can show the graph?
Any that support the MCP Apps extension, including Claude Desktop, VS Code Copilot, Cursor and ChatGPT.
How can I sign in on a headless machine?
Set USE_DEVICE_CODE=true and the code is printed to the server log.
Is Entrapulse Polyarchy free?
Yes. Entrapulse Polyarchy is open source, so you can use and self-host it for free.
How do I add Entrapulse Polyarchy to Claude Code?
Run this command in your terminal: claude mcp add entrapulse-polyarchy -- npx -y entrapulse-polyarchy
What are the best alternatives to Entrapulse Polyarchy?
The closest alternatives to Entrapulse Polyarchy are REA, Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, dashboard-icons and AiSOC.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


