# entraadm MCP

> entraadm MCP is a free MCP server for security. Read-only Microsoft Entra ID sign-in and audit log triage for unattended security bots. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/shigechika/entraadm-mcp
- **MCP Registry name:** io.github.shigechika/entraadm-mcp
- **Categories:** [security](https://ai-powered.com/categories/security), [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-23

## About

This server targets automated morning checks rather than an admin at a keyboard. The author argues that Microsoft's official Enterprise MCP server needs delegated sign-in and exposes one free-form Graph query tool, whereas entraadm-mcp supports app-only credentials and exposes a fixed set of seventeen read-only tools that are easy to put behind an allow-list.

It adds analysis Graph does not give directly. Sign-in failures are annotated with the meaning of their AADSTS error code, signin_failure_stats aggregates client-side and flags IPs that failed against many users (password spray), and compromise_suspects looks for spray breaches and successes from outside home countries. Beyond Entra it reads Azure VM backup status and policies, VM activity, and Microsoft 365 service health.

One opt-in write tool, revoke_sign_in_sessions, signs an account out everywhere and exists only when ENTRAADM_ENABLE_REVOKE_SESSIONS=1. Auth uses either app-only environment variables or the current az login session.

## Features

- **Fixed read-only toolset:** Seventeen tools that suit an allow-listed triage profile.
- **AADSTS translation:** Annotates sign-in failures with what the error code means.
- **Password-spray view:** Aggregates failures by IP and user to flag spraying.
- **Compromise suspects:** Combines spray breaches, foreign successes and risky-user data.
- **Azure backup checks:** Reports VM backup status, policies and recent VM activity.
- **Opt-in session revoke:** A single write tool, off by default, signs an account out everywhere.

## Good for

- Run a daily summary of sign-in failures and directory changes
- Find accounts probably taken over after a spray
- Check whether MFA is registered for a user
- See if Azure VMs have a stale backup
- Check whether a Microsoft 365 service is degraded

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add entraadm-mcp -- uvx entraadm-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add entraadm-mcp -- uvx entraadm-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.entraadm-mcp]
command = "uvx"
args = ["entraadm-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user entraadm-mcp uvx -- entraadm-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "entraadm-mcp": {
      "command": "uvx",
      "args": [
        "entraadm-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 18 tools deletes data; 10 names don't say. From the server's own tool labels and tool names; not verified by us.

- `health_check` (name suggests: reads): Checks that Graph is reachable and sign-in logs are readable.
- `get_user` (name suggests: reads): Shows enabled state, sync status and licences for an account.
- `signin_logs`: Explains why a user's sign-in failed or succeeded.
- `signin_failure_stats`: Aggregates tenant-wide failures and password-spray suspects.
- `signin_success_stats`: Aggregates successes by source IP, including legacy-auth.
- `compromise_suspects`: Finds accounts likely taken over.
- `signin_by_ip`: Lists every sign-in from one source IP.
- `directory_audits`: Shows who changed what in the directory.
- `get_user_auth_methods` (name suggests: reads): Shows whether MFA is registered.
- `list_subscriptions` (name suggests: reads): Lists Azure subscriptions the credential can see.
- `vm_backup_status` (name suggests: reads): Reports Azure VM backup status.
- `vm_backup_policies`: Shows VM backup schedules and retention.
- `vm_activity`: Shows restart activity and Resource Health for a VM.
- `m365_service_health`: Lists degraded Microsoft 365 services and open incidents.
- `audit_log_search_start` (name suggests: reads): Submits a Purview audit log search.
- `audit_log_search_result` (name suggests: reads): Returns the status and records of that search.
- `daily_brief`: Summarises service health, sign-in failures, audits and suspects.
- `revoke_sign_in_sessions` (name suggests: deletes): Opt-in tool that signs one account out everywhere.

## FAQ

### Does entraadm MCP change anything in my tenant?

Not by default. Every tool is read-only; the one write tool, revoke_sign_in_sessions, is only registered when explicitly enabled.

### How does entraadm MCP authenticate?

App-only with tenant, client and secret variables, or the current az login session if none are set.

### Why not use Microsoft's official server?

The README says that one is delegated-only and exposes a general Graph query tool, which is harder to restrict for headless bots.

### Does revoking sessions disable the account?

No. It does not disable the account or reset the password, and tokens already issued stay valid until they expire.

### Is entraadm MCP free?

Yes. entraadm MCP is free to use.

### How do I add entraadm MCP to Claude Code?

Run this command in your terminal: claude mcp add entraadm-mcp -- uvx entraadm-mcp

### What are the best alternatives to entraadm MCP?

The closest alternatives to entraadm MCP are REA, awslabs, AiSOC, kubeshark and Azure MCP Server.

## 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.
- [awslabs](https://ai-powered.com/mcp/awslabs): awslabs is an open-source MCP server for cloud and infrastructure.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [kubeshark](https://ai-powered.com/mcp/kubeshark): kubeshark is an open-source MCP server for cloud and infrastructure.
- [Azure MCP Server](https://ai-powered.com/mcp/azure-mcp-server): Azure MCP Server is an open-source MCP server for cloud and infrastructure.
- [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.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [Treasure Map](https://ai-powered.com/mcp/treasure-map): Treasure Map is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/entraadm-mcp
