Entraid MCP Server logo

Entraid MCP Server

by hieutran

Manage Microsoft Entra ID users, groups, devices, applications, sign-ins, MFA, policies, and permissions through Microsoft Graph.

Install Entraid MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

hieutran/entraid-mcp-server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Start the server
    fastmcp dev '/path/to/src/msgraph_mcp_server/server.py'
    
  2. 2. Install
    fastmcp install '/path/to/src/msgraph_mcp_server/server.py' \
      --with msgraph-sdk --with azure-identity --with azure-core --with msgraph-core \
      -f /path/to/.env
    

Overview

The hieutran/entraid-mcp-server MCP server exposes Microsoft Entra ID directory and security operations through Microsoft Graph and FastMCP. It uses a centralized authentication and Graph client with modular resources for users, groups, devices, sign-ins, MFA, applications, service principals, audit logs, conditional access policies, passwords, and permission discovery. Configure tenant credentials in a `.env` file, then run the FastMCP server or use the FastMCP development CLI. Reach for it when an agent needs to inspect or administer Entra ID objects and related Graph data.

Use cases

  • Search Entra ID users and inspect their roles or group memberships
  • Manage groups, owners, and memberships through Microsoft Graph
  • Review user sign-ins, MFA status, audit logs, and conditional access policies
  • Administer app registrations and service principals
  • Suggest and search Microsoft Graph permissions for a task

Key features

  • Microsoft Graph user and group operations
  • Application and service-principal lifecycle management
  • Sign-in, MFA, audit-log, and conditional-access queries
  • Managed-device lookup
  • Password reset with generated-password support
  • Microsoft Graph permission discovery

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 106d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars41Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Entraid MCP Server works

What hieutran/entraid-mcp-server MCP server does

The hieutran/entraid-mcp-server MCP server connects an MCP client to Microsoft Graph for Microsoft Entra ID administration and directory investigation. Its resource-oriented implementation separates operations into modules while sharing a central Graph client and authentication manager.

User operations include searching by name or email, retrieving a user by ID, listing privileged users, inspecting assigned directory roles, and finding direct or transitive group memberships. Group operations cover listing and searching groups, reading members, creating or updating groups, deleting groups, and managing members and owners.

The server also handles managed-device queries, user sign-in logs, MFA status for individual users or group members, directory audit logs, and conditional access policy reads. Administrative tools can reset a user password with a supplied or generated value and can require a password change at the next sign-in.

Application and service-principal resources support listing, lookup, creation, updates, deletion, and inspection of app role assignments or delegated permissions where documented. Permission helper tools suggest Graph permissions for mapped tasks and search or list available Graph permissions.

How it works

A FastMCP entry point registers the resource modules and exposes their functions as MCP tools. Calls use Microsoft Graph with the configured tenant and application credentials. Several list operations support paging or configurable limits, while sign-in and audit-log queries accept a lookback period.

Inputs for group, application, and service-principal creation or updates are dictionaries. Examples in the project identify fields such as group display name, mail nickname, visibility, membership settings, application display name, web or API configuration, and service-principal account status. Graph permissions must be sufficient for the requested operation.

Setup and configuration

Clone the repository and create config/.env with the required Azure credentials:

  • TENANT_ID: the Entra tenant identifier
  • CLIENT_ID: the application client identifier
  • CLIENT_SECRET: the application secret

Certificate-based authentication is described as an optional setup path. The project keeps environment and secret files out of version control. For development, run the server file through the FastMCP CLI, for example with fastmcp dev '/path/to/src/msgraph_mcp_server/server.py'. This opens the FastMCP development environment and MCP Inspector.

Tools and capabilities

The hieutran/entraid-mcp-server MCP server includes tools for:

  • Finding users, roles, privileged users, and group memberships
  • Reading, creating, updating, and deleting groups and their members or owners
  • Querying managed devices by operating system or user
  • Reading sign-in logs, MFA status, audit logs, and conditional access policies
  • Resetting passwords with optional generated passwords and next-sign-in changes
  • Managing app registrations and service principals
  • Inspecting and searching Microsoft Graph permissions

FastMCP context handling provides progress reporting and consistent error handling, while project logging supports troubleshooting.

Limitations and notes

The available operations depend on Microsoft Graph permissions granted to the configured application. Destructive actions include deleting groups, applications, or service principals and resetting passwords, so they require appropriate authorization and should be evaluated before execution. It also lists resource capabilities without defining every Graph permission required for each individual tool; use the permission helper and Microsoft Graph authorization setup when planning access.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Entraid MCP Server

hieutran/entraid-mcp-server is an MCP server that connects AI clients to Microsoft Entra ID through Microsoft Graph. Its main tools manage users, groups, devices, applications, and service principals, while also querying sign-ins, MFA, audit logs, conditional access policies, passwords, and Graph permission metadata.

Clone the repository, create config/.env with TENANT_ID, CLIENT_ID, and CLIENT_SECRET, then run the FastMCP entry point.

It requires TENANT_ID, CLIENT_ID, and CLIENT_SECRET in config/.env. These values identify the Entra tenant and application credentials used for Microsoft Graph authentication. Certificate-based authentication is also described as an optional setup path.

Yes, it provides a direct password-reset tool. The caller can supply a password or request a generated secure password, choose its length, and require the user to change it at the next sign-in.

It exposes a FastMCP entry point and can be tested with the FastMCP development CLI, so client compatibility depends on the client's support for the server transport and configuration used.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewEntraid MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hieutran-entraid-mcp-server?style=directory)](https://allmcps.com/mcp/hieutran-entraid-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/hieutran-entraid-mcp-server"><img src="https://allmcps.com/api/badge/hieutran-entraid-mcp-server?style=directory" alt="Entraid MCP Server on AllMCPs" /></a>