Microsoft Entra ID MCP Server
for AI Agents
Connect your AI agent to StackOne's Microsoft Entra ID MCP server and give it 68 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
68 Agent Actions
Create, read, update, and delete across Microsoft Entra ID — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Microsoft Entra ID MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Microsoft Entra ID tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Microsoft Entra ID call.
Tools Discovery →What is the Microsoft Entra ID MCP Server?
A Microsoft Entra ID MCP server lets AI agents read and write Microsoft Entra ID data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Microsoft Entra ID MCP server ships with 68 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Microsoft Entra ID MCP Tools
Every action from Microsoft Entra ID's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Users
- Create User
Create a new user in Microsoft Entra ID directory
- List Users
Retrieve a list of all users in the Microsoft Entra ID directory
- Get User
Retrieve the properties and relationships of a specific user by ID or userPrincipalName
- Update User
Update the properties of a user in Microsoft Entra ID
- Delete User
Delete a user from Microsoft Entra ID directory
Groups
- Create Group
Create a new group in Microsoft Entra ID
- List Groups
Retrieve a list of all groups in the Microsoft Entra ID directory
- Get Group
Retrieve the properties of a specific group by ID
- Update Group
Update the properties of a group in Microsoft Entra ID
- Delete Group
Delete a group from Microsoft Entra ID
Group Members
- Add Group Member
Add a member to a group
- List Group Members
Retrieve the members of a group
- Remove Group Member
Remove a member from a group
Organizations
- List Organizations
Retrieve a list of organizations (tenants) associated with the authenticated user
- Get Organization
Retrieve the properties of a specific organization (tenant) by ID
- Update Organization
Update the properties of a specific organization (tenant)
Applications
- Create Application
Create a new application registration in Microsoft Entra ID
- List Applications
Retrieve a list of application registrations in Microsoft Entra ID
- Get Application
Retrieve the properties of a specific application by ID
- Update Application
Update the properties of an application in Microsoft Entra ID
- Delete Application
Delete an application from Microsoft Entra ID
Directory Roles
- List Directory Roles
Retrieve a list of activated directory roles in Microsoft Entra ID
- Get Directory Role
Retrieve the properties of a specific directory role by ID
Directory Role Members
- Add Directory Role Member
Add a member to a directory role
- List Directory Role Members
Retrieve the members of a directory role
- Remove Directory Role Member
Remove a member from a directory role
Service Principals
- Create Service Principal
Create a new service principal for an application in Microsoft Entra ID
- List Service Principals
Retrieve a list of service principals (enterprise applications) in Microsoft Entra ID
- Get Service Principal
Retrieve the properties of a specific service principal by ID
- Update Service Principal
Update the properties of a service principal in Microsoft Entra ID
- Delete Service Principal
Delete a service principal from Microsoft Entra ID
Conditional Access Policys
- Create Conditional Access Policy
Create a new conditional access policy in Microsoft Entra ID
- Get Conditional Access Policy
Retrieve the properties of a specific conditional access policy by ID
- Update Conditional Access Policy
Update the properties of a conditional access policy in Microsoft Entra ID
- Delete Conditional Access Policy
Delete a conditional access policy from Microsoft Entra ID
Named Locations
- List Named Locations
Retrieve a list of named locations used in conditional access policies
- Get Named Location
Retrieve the properties of a specific named location by ID
- Delete Named Location
Delete a named location from Microsoft Entra ID
Domains
- Create Domain
Add a new domain to Microsoft Entra ID
- List Domains
Retrieve a list of domains associated with the Microsoft Entra ID tenant
- Get Domain
Retrieve the properties of a specific domain by domain name
- Delete Domain
Delete a domain from Microsoft Entra ID
Devices
- Create Device
Create and register a new device object in Microsoft Entra ID
- List Devices
Retrieve a list of devices registered in Microsoft Entra ID
- Get Device
Retrieve the properties of a specific device by ID
- Update Device
Update the properties of a device in Microsoft Entra ID
- Delete Device
Delete a device from Microsoft Entra ID
OAuth2 Permission Grants
- Create OAuth2 Permission Grant
Create a new OAuth2 permission grant (delegated permission consent)
- List OAuth2 Permission Grants
Retrieve a list of delegated permission grants in Microsoft Entra ID
- Get OAuth2 Permission Grant
Retrieve a specific OAuth2 permission grant by ID
- Update OAuth2 Permission Grant
Update an existing OAuth2 permission grant
- Delete OAuth2 Permission Grant
Delete an OAuth2 permission grant (revoke delegated permission consent)
Other (16)
- Add App Role Assignment To Service Principal
Grant an app role to a service principal
- Create IP Named Location
Create a new IP-based named location for conditional access
- Create Country Named Location
Create a new country-based named location for conditional access
- List Role Templates
Retrieve a list of all directory role templates in Microsoft Entra ID
- List Service Principal App Role Assignments
Retrieve app role assignments granted to a service principal
- List Conditional Access Policies
Retrieve a list of all conditional access policies in Microsoft Entra ID
- List Domain Verification DNS Records
Retrieve DNS records required to verify domain ownership
- List Domain Service Configuration Records
Retrieve DNS records needed for services using the domain
- List Device Registered Owners
Retrieve the registered owners of a device
- List Device Registered Users
Retrieve the registered users of a device
- List Device Group Memberships
Retrieve the groups that a device is a member of
- List User App Role Assignments
Retrieve app role assignments for a specific user
- Remove App Role Assignment From Service Principal
Remove an app role assignment from a service principal
- Remove App Role From User
Remove an app role assignment from a user
- Verify Domain
Verify a domain in Microsoft Entra ID
- Assign App Role To User
Assign an app role to a user
Microsoft Entra ID AI Agent Use Cases
Connect your AI agent to Microsoft Entra ID and help your team scale the HR operations they run by hand today.
Use StackOne to connect your AI agent to your HRIS, identity management, and LMS to automate employee onboarding.
ViewUse StackOne to connect your AI agent to your HRIS, knowledge base, and messaging tools to automate HR policy Q&A.
ViewUse StackOne to connect your AI agent to your HRIS, identity management, and ITSM to automate employee offboarding and deprovisioning.
ViewSet Up Your Microsoft Entra ID MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Microsoft Entra ID in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Check More Security MCP Servers
150+ actions
110+ actions
78+ actions
76+ actions
69+ actions
64+ actions
56+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Microsoft Entra ID MCP Server FAQ
Does StackOne have a Microsoft Entra ID MCP server?
Microsoft Entra ID MCP server vs direct API integration — what's the difference?
How does Microsoft Entra ID authentication work for AI agents?
origin_owner_id.Are Microsoft Entra ID MCP tools vulnerable to prompt injection?
What is the context bloat of a Microsoft Entra ID agent and how do I avoid it?
Can I limit which actions my Microsoft Entra ID agent can access?
Can I create custom agent actions for my Microsoft Entra ID MCP server?
When should I NOT use a Microsoft Entra ID MCP server?
What AI frameworks and AI clients does the StackOne Microsoft Entra ID MCP server support?
Put your AI agents to work
All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.