Microsoft Entra ID MCP Server is an MCP server that connects LLM clients to Microsoft Graph API to manage identity, security, and directory services within Microsoft Entra ID. Designed for system administrators, security engineers, and DevOps teams, it enables automated exploration and execution of identity management tasks through a modular FastMCP implementation. The server provides tools to query and manage users, list privileged account roles, evaluate group memberships, and inspect managed Intune devices. It also supports application registration and service principal management, Conditional Access policy inspection, directory audit log retrieval, and user sign-in analysis. Additionally, it features password reset capabilities with options to enforce changes on sign-in, MFA status verification across users and groups, and built-in permission helpers that recommend minimal Microsoft Graph permissions for specific operational tasks.
Category: Cloud & Infrastructure
Tags: azure-ad, iam, identity-management, microsoft-entra-id, microsoft-graph
Visit Microsoft Entra ID MCP Server
bash git clone https://github.com/hieuttmmo/entraid-mcp-server 2. Create a config/.env file with your Azure AD credentials: env TENANT_ID=your-tenant-id CLIENT_ID=your-client-id CLIENT_SECRET=your-client-secret 3. Run or test the server using the FastMCP command-line tool: bash fastmcp dev 'path/to/src/msgraph_mcp_server/server.py' 4. To connect to an MCP client like Claude Desktop, add an entry under mcpServers pointing to your Python environment executing src/msgraph_mcp_server/server.py or refer to the repository README at https://github.com/hieuttmmo/entraid-mcp-server for client-specific configuration details.Part of MCP Servers
You install the server by cloning the GitHub repository and configuring your Microsoft Entra ID credentials in a config/.env file with TENANT_ID, CLIENT_ID, and CLIENT_SECRET. You can run and test the server using the FastMCP command-line tool by launching fastmcp dev against the server.py entry point, or configure it as a local Python MCP server in your preferred MCP client configuration file.
The server enables LLMs to query users, manage groups, inspect app registrations, review service principals, and check Intune managed devices. It also performs security operations such as querying Conditional Access policies, retrieving directory audit and sign-in logs, reporting MFA status, resetting user passwords, and suggesting required Microsoft Graph API permissions.
Because it is built using FastMCP, the server supports standard Model Context Protocol clients including Claude Desktop, Cursor, and the FastMCP interactive development environment and Inspector. Any client that can run a Python script or command via the standard MCP protocol is supported.
The permissions required depend on the tools you execute. Common application permissions include AuditLog.Read.All, Directory.Read.All, Group.ReadWrite.All, User.Read.All, User-PasswordProfile.ReadWrite.All, Policy.Read.All, RoleManagement.Read.Directory, and Application.ReadWrite.All. The server also includes a permissions helper tool to recommend minimal permissions for specific tasks.
Yes, Microsoft Entra ID MCP Server is an open-source project hosted on GitHub under the repository hieuttmmo/entraid-mcp-server. You can review the code, clone it, submit issues, or extend resource modules directly through GitHub.