entraadm MCP
Read-only Microsoft Entra ID sign-in and audit log triage for unattended security bots
entraadm MCP is a free MCP server for security. It runs locally on your machine and is started by your AI client.
- Pricing
- Free
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can delete data (1 tool)
- Version
- 1.11.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add entraadm-mcp -- uvx entraadm-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"entraadm-mcp": {
"command": "uvx",
"args": [
"entraadm-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"entraadm-mcp": {
"command": "uvx",
"args": [
"entraadm-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"entraadm-mcp": {
"command": "uvx",
"args": [
"entraadm-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add entraadm-mcp -- uvx entraadm-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.entraadm-mcp]
command = "uvx"
args = ["entraadm-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"entraadm-mcp": {
"command": "uvx",
"args": [
"entraadm-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "entraadm-mcp": { "command": "uvx", "args": [ "entraadm-mcp" ] } } }Or run: gemini mcp add -s user entraadm-mcp uvx -- entraadm-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "entraadm-mcp": { "command": "uvx", "args": [ "entraadm-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "entraadm-mcp": { "command": "uvx", "args": [ "entraadm-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "entraadm-mcp": { "command": "uvx", "args": [ "entraadm-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "entraadm-mcp": { "command": "uvx", "args": [ "entraadm-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "entraadm-mcp": { "command": "uvx", "args": [ "entraadm-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About entraadm MCP
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.
Tools this server provides (18)
Taken from the project documentation; the running server may differ.
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_checkName suggests: reads
- Checks that Graph is reachable and sign-in logs are readable.
- get_userName 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_methodsName suggests: reads
- Shows whether MFA is registered.
- list_subscriptionsName suggests: reads
- Lists Azure subscriptions the credential can see.
- vm_backup_statusName 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_startName suggests: reads
- Submits a Purview audit log search.
- audit_log_search_resultName suggests: reads
- Returns the status and records of that search.
- daily_brief
- Summarises service health, sign-in failures, audits and suspects.
- revoke_sign_in_sessionsName suggests: deletes
- Opt-in tool that signs one account out everywhere.
What it does
- 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
Pricing
Free
Free to install from PyPI; needs a Microsoft Entra app registration
entraadm MCP 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.


