# Entrapulse Polyarchy

> Entrapulse Polyarchy is an open-source MCP server for security. Interactive Microsoft Entra ID identity graph that renders inside your MCP client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Windows, macOS, Linux
- **Repository:** https://github.com/darrenjrobinson/entrapulse-polyarchy
- **MCP Registry name:** io.github.darrenjrobinson/entrapulse-polyarchy
- **Categories:** [security](https://ai-powered.com/categories/security), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add entrapulse-polyarchy -- npx -y entrapulse-polyarchy
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "entrapulse-polyarchy": {
      "command": "npx",
      "args": [
        "-y",
        "entrapulse-polyarchy"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "entrapulse-polyarchy": {
      "command": "npx",
      "args": [
        "-y",
        "entrapulse-polyarchy"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "entrapulse-polyarchy": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "entrapulse-polyarchy"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "entrapulse-polyarchy": {
      "command": "npx",
      "args": [
        "-y",
        "entrapulse-polyarchy"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "entrapulse-polyarchy": {
      "command": "npx",
      "args": [
        "-y",
        "entrapulse-polyarchy"
      ]
    }
  }
}
```

## Tools

- `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

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/entrapulse-polyarchy
