Skip to main content
Glama
wborcherdt26

intune-mcp

by wborcherdt26

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 build

3. Authentifizieren

npm run auth

Folgen 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:http

Transportmodi

Modus

Flag

Verwendungszweck

Stdio

Lokal, Einzelbenutzer, bereits authentifiziert

HtJTP

--http oder TRANSPORT=http

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

/mcp

GET

MCP JSON-RPC (StreamableHTTP)

/mcp

GET

SSE-Stream für Server-Benachrichtigungen

/mcp

DELETE

Sitzungsbeendigung

/health

POST

HealtCheck (Status, Version, Sitzungen Anzahl)

Verfügbare Tools

Kategorie

Tool

Beschreibung

Autentifizierung

authenticate

Gerätecode-Anmeldung (nur HTTP-Modus)

Geräte

list_devices

Verwaltete Geräted with Daten via OData -Filter auflisten

Geräte

get_device

Gerätedetails nach abrufen

Geräte

search_devices

Suchen Sie nach Name, UPN, Seriennummer

Apps

get_device_installed_apps

Erkannte Apps auf einem Gerät (BETA-API)

Apps

list_managed_apps

LOB/Store/Web-Apps in InIn

Compliance

list_compliance_policies

Alle Compliance-Richtlinen

Compliance

get_device_compliance_status

Geräte-CompMpliance-Status

Compliance

get_noncompliant_devices

Gerät mit Nicht-Compliance-Status

Compliance

get_policy_device_statuses

Status pro Gerät für die Richtlinie

Komfigurationsprofile

list_configuration_profiles

Geräteonfigurationsprofile

Komfigurationsprofile

get_profe_device_statuses

Status pro Gerät für ein Profil

Komfigurationsprofile

get_devicesconfiguration_status

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.mjs

Architektur

MCP Client -> Transport (stdio | HTTP) -> McpServer -> Tool Handlers -> GraphClient -> Microsoft Graph API
  • Authentifizierung: MSAL-Gerätecode-Flow, dateibasierter Token-Cache unter ~/.intune-mcp/token-cache.json

  • Logging: 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 Seiten

  • HTTP-Modus: Authentifizierung pro Sitzung, 30-Minuten-Sitzungs-TTL, maximal 100 Sitzungen

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    C
    maintenance
    Enables 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.
    5
    2
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    A 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.
    36
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Read-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.

View all related MCP servers

Related MCP Connectors

  • XFA's remote MCP server — query device posture, compliance, policies & CVEs. Read-only.

  • Read-only MCP server for ClassQuill, a tutoring-business-management platform.

  • Official Microsoft MCP Server to query Microsoft Entra data using natural language

View all MCP Connectors

Latest Blog Posts

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/wborcherdt26/Intune-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server