EndpointOps-MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@EndpointOps-MCPList all non-compliant Intune devices and their last sync time"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
EndpointOps-MCP
A full read/write Model Context Protocol (MCP) server for managing Microsoft Intune and Entra ID (Azure AD) through the Microsoft Graph API. It gives AI assistants (Claude Desktop, VS Code Copilot, Cursor, Copilot Studio, etc.) direct, structured access to device management, app management, compliance, security, identity, and reporting operations across your tenant.
The server exposes 34 MCP tools, each accepting an action parameter so a single tool can drive dozens of related Graph operations without needing one MCP tool per endpoint. In total the tools cover 280+ underlying Microsoft Graph operations.
⚠️ This server can create, update, and delete real objects in your tenant (devices, users, groups, policies, apps, etc.). Review the Permissions section and scope the app registration carefully before pointing it at a production tenant.
Features
Core / Connection
Interactive and app-only (client credentials) authentication flows
Session auth status, sign-in, and one-step connect helpers
Graph connectivity test and tenant info
Intune tenant overview (device counts, compliance, OS breakdown)
discover_graph_operations— self-describing catalog of every action every tool supports
Intune Device & App Management
List, search, filter, and inspect managed devices
Remote actions: sync, restart, lock, rename, locate, wipe, retire, reset passcode, lost mode, defender scan, log collection, diagnostics collection
BitLocker / FileVault recovery key lookups and encryption reports
Mobile app CRUD, assignments (required/available/uninstall), install status, discovered/detected apps
App configuration (MAM) and app protection policies
Compliance & Configuration
Compliance policies (CRUD, assignment, deployment status)
Device configuration profiles and Settings Catalog policies
ADMX / administrative template policies
Endpoint security policies and templates (AV, Firewall, EDR)
Security baselines (templates + deployed profile status)
Windows Update rings and feature/quality/driver update profiles
Enrollment & Fleet Operations
PowerShell scripts and proactive remediations (Windows + macOS shell scripts)
Enrollment restrictions, Apple VPP/DEP tokens, Android Enterprise settings
Windows Autopilot devices, deployment profiles, and enrollment status page (ESP) profiles
Assignment filters and scope tags
Intune RBAC role definitions and role assignments
Windows 365 Cloud PC
Cloud PC lifecycle (list, restart, reprovision, resize, restore, troubleshoot)
Provisioning policies, gallery images, network connections, audit events
Entra ID (Azure AD)
Full user lifecycle: CRUD, onboarding/offboarding, licenses, manager assignment, password/session management, bulk operations
Group management: security, Microsoft 365, and dynamic groups; members/owners
Entra device inventory management (list/search/enable/disable/delete)
Conditional Access policies and named locations
Identity Protection: risky users, risk detections, sign-in/audit logs, MFA and authentication methods
App registrations and enterprise app inspection/management
Tenant Administration & Reporting
Organization/domain info, service health, directory roles, subscriptions, security defaults
Compliance, malware, encryption, endpoint analytics, app reliability, and license usage reports
Async Graph report export jobs (
deviceManagement/reports/exportJobs)
Related MCP server: mcp-activedirectory
Available Tools
# | Tool | Area |
1 |
| Auth |
2 |
| Auth |
3 |
| Auth |
4 |
| Auth |
5 |
| Auth |
6 |
| Auth |
7 |
| Auth |
8 |
| Core |
9 |
| Intune Devices |
10 |
| Encryption |
11 |
| Apps |
12 |
| App Protection (MAM) |
13 |
| Compliance |
14 |
| Config Profiles |
15 |
| Settings Catalog |
16 |
| ADMX / GPO |
17 |
| Endpoint Security |
18 |
| Security Baselines |
19 |
| Windows Update |
20 |
| Scripts & Remediations |
21 |
| Enrollment |
22 |
| Autopilot |
23 |
| Filters & Scope Tags |
24 |
| Intune RBAC |
25 |
| Windows 365 Cloud PC |
26 |
| Entra Users |
27 |
| Entra Groups |
28 |
| Entra Devices |
29 |
| Conditional Access |
30 |
| Identity Protection |
31 |
| App Registrations |
32 |
| Tenant Administration |
33 |
| Reports & Analytics |
34 |
| Catalog / Discovery |
Each manage_* tool takes an action parameter (e.g. manage_intune_devices(action="wipe", device_id="...", confirm=True)). Call discover_graph_operations at any time to get the full, up-to-date list of actions per tool directly from the running server.
Destructive actions (wipe, delete, retire, etc.) require an explicit confirm=True argument — calling them without it returns a confirmation_required response instead of executing.
Required Graph API Permissions
Grant these Application permissions to your Entra ID app registration (Azure Portal → App registrations → API permissions → Microsoft Graph → Application permissions), then click Grant admin consent.
Intune
DeviceManagementManagedDevices.ReadWrite.All
DeviceManagementConfiguration.ReadWrite.All
DeviceManagementApps.ReadWrite.All
DeviceManagementServiceConfig.ReadWrite.All
DeviceManagementRBAC.ReadWrite.All
DeviceManagementScripts.ReadWrite.All
DeviceManagementManagedDevices.PrivilegedOperations.AllEntra ID
User.ReadWrite.All
Group.ReadWrite.All
Directory.ReadWrite.All
RoleManagement.ReadWrite.Directory
Policy.ReadWrite.ConditionalAccess
IdentityRiskyUser.ReadWrite.All
IdentityRiskEvent.Read.All
AuditLog.Read.All
UserAuthenticationMethod.ReadWrite.All
Application.Read.All
Organization.Read.AllTenant Administration & Reporting
ServiceHealth.Read.All
ServiceMessage.Read.All
Reports.Read.AllWindows 365
CloudPC.ReadWrite.AllNotes:
DeviceManagementManagedDevices.PrivilegedOperations.Allis required for high-impact remote actions such as device log collection requests.Some enrollment-restriction write actions additionally require the calling principal (or the app registration's effective context) to hold the Global Administrator or Intune Service Administrator directory role — this is a Graph service-side business rule, not just an application permission.
If you only need read-only/reporting access, use the
.Read.Allvariants instead of.ReadWrite.Allwhere available and drop any write-only scopes you don't need.
Prerequisites
Python 3.10+ (3.11 recommended)
A Microsoft Entra ID tenant with Global Administrator (or delegated equivalent) access to create an app registration
An Entra ID app registration configured for client credentials (app-only) auth, with the permissions above granted and admin-consented
Installation
git clone https://github.com/nelladath/EndpointOps-MCP.git
cd EndpointOps-MCP
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txtConfigure environment variables
Copy env.example to .env and fill in your app registration values:
TENANT_ID=your-tenant-id
CLIENT_ID=your-app-client-id
CLIENT_SECRET=your-app-client-secret
AUTH_MODE=appAUTH_MODE supports:
app— app-only (client credentials) token, no user interaction (default, recommended for automation)delegated— signed-in user token only (device-code or browser flow)hybrid— app-only Graph calls gated behind an optional first-layer interactive user sign-in
See env.example for the full list of options (interactive login mode, token cache path, Graph endpoint overrides).
VS Code Setup (MCP Client)
Install the MCP extension support in VS Code (built into recent Copilot Chat versions) or your preferred MCP-compatible client.
Build the console entry point into your virtual environment (done automatically by
pip install -r requirements.txt+ the project'spyproject.tomlscript entry, or run directly viapython -m intune_mcp_server).Add a server entry to your workspace
.vscode/mcp.json(a template is included in this repo):
{
"servers": {
"EndpointOps-MCP": {
"type": "stdio",
"command": "${workspaceFolder}/.venv/Scripts/endpointops-mcp.exe",
"args": [],
"env": {
"TENANT_ID": "",
"CLIENT_ID": "",
"CLIENT_SECRET": ""
}
}
}
}On macOS/Linux use
${workspaceFolder}/.venv/bin/endpointops-mcpinstead.You can leave
envempty and rely on a.envfile in the project root instead — the server loads it automatically viapython-dotenv.Alternatively, run the server as a plain module without the console script:
"command": "python", "args": ["-m", "intune_mcp_server"].
Reload the VS Code window (or use the MCP: List Servers command) and the 34 tools listed above will become available to Copilot Chat.
Run
test_connection(orconnect_intune_mcp_server) first to verify authentication before using any other tool.
Claude Desktop / other MCP clients
Add an equivalent entry to your client's MCP server configuration, pointing command at the same executable/module and passing the same environment variables.
HTTP Transport (optional)
In addition to stdio (the default, used by most desktop MCP clients), the server can run over Streamable HTTP for hosted scenarios (e.g. Copilot Studio custom connectors):
uvicorn intune_mcp_server.mcp_app:app --host 0.0.0.0 --port 8000A minimal REST bridge exposing a handful of tools as plain HTTP endpoints is also available in bridge.py (FastAPI) for scenarios that need simple REST calls instead of the native MCP protocol.
Security Notes
Never commit
.envor the MSAL token cache (.msal_token_cache.bin) — both are already excluded via.gitignore.Prefer
AUTH_MODE=appwith a tightly-scoped app registration for automation; reservedelegated/hybridmodes for interactive, human-supervised sessions.Destructive actions (wipe, retire, delete) require
confirm=True— treat any AI client wired to this server with the same caution as a human holding Global Administrator credentials.Grant only the permissions your use case needs; the lists above are the maximum superset for full read/write coverage, not a minimum requirement.
License
MIT © Sujin Nelladath
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceUniversal Microsoft Graph API gateway providing access to 1000+ endpoints for managing Microsoft 365 services including Teams, SharePoint, Exchange, Intune, security, compliance, and Azure AD with dynamic tool generation and advanced features like batch operations and webhooks.Last updated55MIT
- FlicenseAqualityCmaintenanceProvides AI assistants with unified access to on-prem Active Directory via LDAP and Azure AD / Entra ID through the Microsoft Graph API. It enables comprehensive management and search of users, groups, computers, and cloud devices using 18 specialized tools.Last updated18
- Alicense-qualityCmaintenanceEnables AI assistants and automation tools to manage Microsoft 365, Entra ID, and Intune resources through 32 tools for user/device/file management and infrastructure monitoring.Last updated5MIT
- Flicense-qualityFmaintenanceA skill-based Microsoft 365 admin MCP server that exposes 4 base tools to execute Graph and Power Platform API calls, enabling administrative tasks via natural language.Last updated
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nelladath/EndpointOps-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server