intune-mcp
intune-mcp
MCP-Server, der schreibgeschützten Zugriff auf Microsoft Intune über die Microsoft Graph API bereit. Ermöglicht Claude (oder Jedem beliebigen MCP-Client), verwaltete Geräte, Apps, Compliance-Richtlien und Konfigurationsprofile abzufragen.
Voraussetzungen
Node.js >= 18
Eine Azure App (Entra ID) App-Registrierung mit delegierten Berechtigungen
Azure CLI (
az) für die automatisierte App-Registrierung (optional)
Related MCP server: azure-query-mcp
Schnellstart
1. Die Azure AD-App registrieren
# Automated (requires Azure CLI + admin consent permissions)
.\scripts\register-app.ps1 -WriteEnv
# Or manually: create a public client app in Entra ID with these delegated permissions:
# - DeviceManagementManagedDevices.Read.All
# - DeviceManagementApps.Read.All
# - DeviceManagementConfiguration.Read.All
# Then create .env:
# AZURE_CLIENT_ID=<your-app-client-id>
# AZURE_TENANT_ID=<your-tenant-id>2. Installieren und Erstellen
npm install
npm run build3. Authentifizieren
npm run authFolgen Sie der Gerätecode-Eingabeaufforderung, um sich mit Ihrem Microsoft-Konto anzumelden.
4. Ausführen
# Stdio mode (for local MCP clients like Claude Code)
npm start
# HTTP mode (for shared/remote deployment)
npm run start:httpTransportmodi
Modus | Flag | Verwendungszweck |
Stdio | – | Lokal, Einzelbenutzer, bereits authentifiziert |
HtJTP |
| Gemeinsame Beereitstellung, mehrere Sitzungen, Authentifizierung pro Sitzung |
Der HTTP-Modus startet einen Express-Server auf Port 3000 (konfigurierbar über --port oder die PORT-Umgebungsvariable) mit den folgenden Endpunkten:
Pfad | Methode | Zweck |
| GET | MCP JSON-RPC (StreamableHTTP) |
| GET | SSE-Stream für Server-Benachrichtigungen |
| DELETE | Sitzungsbeendigung |
| POST | HealtCheck (Status, Version, Sitzungen Anzahl) |
Verfügbare Tools
Kategorie | Tool | Beschreibung |
Autentifizierung |
| Gerätecode-Anmeldung (nur HTTP-Modus) |
Geräte |
| Verwaltete Geräted with Daten via OData -Filter auflisten |
Geräte |
| Gerätedetails nach abrufen |
Geräte |
| Suchen Sie nach Name, UPN, Seriennummer |
Apps |
| Erkannte Apps auf einem Gerät (BETA-API) |
Apps |
| LOB/Store/Web-Apps in InIn |
Compliance |
| Alle Compliance-Richtlinen |
Compliance |
| Geräte-CompMpliance-Status |
Compliance |
| Gerät mit Nicht-Compliance-Status |
Compliance |
| Status pro Gerät für die Richtlinie |
Komfigurationsprofile |
| Geräteonfigurationsprofile |
Komfigurationsprofile | get_profe_device_statuses | Status pro Gerät für ein Profil |
Komfigurationsprofile |
| Profilzuständ auf einem Gerät |
Erfordandertliche Berchtigend (Delet)
DeviceManagementManagedDevices.ReadAll
DeviceManagementApps.ReadAll
DeviceManagementConfiguration.ReadAll
Entwickler
npm run dev # TypeScript watch mode
npm test # Run unit tests
npm run build # Compile to dist/Live-Validierung 12
Testen Sie die Ende aller 12 Endpunkte gegen einen echten Intune-Mandanten (erfordert eine vorherige Authentifizierung):
node scripts/validate-tools.mjsArchitektur
MCP Client -> Transport (stdio | HTTP) -> McpServer -> Tool Handlers -> GraphClient -> Microsoft Graph APIAuthentifizierung: MSAL-Gerätecode-Flow, dateibasierter Token-Cache unter
~/.intune-mcp/token-cache.jsonLogging: Strukturierte JSON-Zeilen unter
~/.intune-mcp/logs/intune-mcp.log(Rotation bei 10 MB, 5 Dateien)Graph-Client: Automatische Wiederholung mit exponentiellem Backoff (429, 401, 5xx),
Retry-After-Unterstützung, 30-Sekunden-Anfrage-Timeout, automatische Paginierung bis zu 10 SeitenHTTP-Modus: Authentifizierung pro Sitzung, 30-Minuten-Sitzungs-TTL, maximal 100 Sitzungen
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
XFA's remote MCP server — query device posture, compliance, policies & CVEs. Read-only.
Read-only access to InfluSense influencer discovery, ratings, watchlists, and reports via MCP.
Provides read access to your GKE and Kubernetes resources.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Microsoft 365 services including SharePoint, OneDrive, Outlook, Teams, and Calendar through the Microsoft Graph API, enabling users to search, browse, and retrieve content across their M365 suite.2MIT
- AlicenseAqualityAmaintenanceEnables read-only querying of Azure Log Analytics and Azure Resource Graph through MCP, supporting KQL queries, workspace discovery, and resource inventory exploration with Azure RBAC authentication.11527 npm2MIT
- AlicenseBqualityCmaintenanceA read-only MCP server for Microsoft Intune and Entra ID that enables list, get, search, and reporting operations for tenant visibility, audits, troubleshooting, and health reporting without write actions. It includes authentication helpers, report exports, and metadata discovery tools.361MIT
- FlicenseNot gradedqualityCmaintenanceRead-only MCP server for Microsoft Entra ID (Azure AD) that enables querying user sign-in logs, group memberships, and assigned Microsoft 365 licenses via Microsoft Graph API. Provides security and audit visibility without any write operations.-