Skip to main content
Glama
wborcherdt26

intune-mcp

by wborcherdt26

intune-mcp

Microsoft Graph API를 통해 Microsoft Intune에 대한 읽기 전용 액세스를 제공하는 MCP 서버입니다. Claude(또는 모든 MCP 클라이언트)가 관리 디바이스, 앱, 규정 준수 정책 및 구성 프로필을 쿼리할 수 있도록 합니다.

사전 요구 사항

  • Node.js >= 18

  • 위임된 권한이 있는 Azure AD(Entra ID) 앱 등록

  • 자동 앱 등록을 위한 Azure CLI(az)(선택 사항)

Related MCP server: azure-query-mcp

빠른 시작

1. Azure AD 앱 등록

# 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. 설치 및 빌드

npm install
npm run build

3. 인증

npm run auth

디바이스 코드 프롬프트에 따라 Microsoft 계정으로 로그인합니다.

4. 실행

# Stdio mode (for local MCP clients like Claude Code)
npm start

# HTTP mode (for shared/remote deployment)
npm run start:http

전송 모드

모드

플래그

사용 사례

Stdio

(기본값)

로컬, 단일 사용자, 사전 인증

HTTP

--http 또는 TRANSPORT=http

공유 배포, 다중 세션, 세션별 인증

HTTP 모드는 포트 3000에서 Express 서버를 시작합니다(--port 또는 PORT 환경 변수로 구성 가능). 엔드포인트는 다음과 같습니다:

경로

메서드

용도

/mcp

POST

MCP JSON-RPC(Streamable HTTP)

/mcp

GET

서버 알림용 SSE 스트림

/mcp

DELETE

세션 종료

/health

GET

상태 확인(상태, 버전, 세션 수)

사용 가능한 도구

카테고리

도구

설명

인증

authenticate

디바이스 코드 로그인(HTTP 모드 전용)

디바이스

list_devices

OData 필터로 관리 디바이스 나열

디바이스

get_device

ID로 디바이스 세부 정보 가져오기

디바이스

search_devices

이름, UPN 또는 일련 번호로 검색

get_device_installed_apps

디바이스에서 감지된 앱(베타 API)

list_managed_apps

Intune의 LOB/스토어/웹 앱

규정 준수

list_compliance_policies

모든 규정 준수 정책

규정 준수

get_device_compliance_status

디바이스별 규정 준수 상태

규정 준수

get_noncompliant_devices

규정 미준수 상태의 디바이스

규정 준수

get_policy_device_statuses

정책에 대한 디바이스별 상태

구성 프로필

list_configuration_profiles

디바이스 구성 프로필

구성 프로필

get_profile_device_statuses

프로필에 대한 디바이스별 상태

구성 프로필

get_device_configuration_status

디바이스의 프로필 상태

필요한 권한(위임됨)

  • DeviceManagementManagedDevices.Read.All

  • DeviceManagementApps.Read.All

  • DeviceManagementConfiguration.Read.All

개발

npm run dev          # TypeScript watch mode
npm test             # Run unit tests
npm run build        # Compile to dist/

실시간 검증

실제 Intune 테넌트에 대해 12개 엔드포인트 모두 테스트(사전 인증 필요):

node scripts/validate-tools.mjs

아키텍처

MCP Client -> Transport (stdio | HTTP) -> McpServer -> Tool Handlers -> GraphClient -> Microsoft Graph API
  • 인증: MSAL 디바이스 코드 흐름, ~/.intune-mcp/token-cache.json의 파일 기반 토큰 캐시

  • 로깅: ~/.intune-mcp/logs/intune-mcp.log의 구조화된 JSON 라인(10MB 회전, 5개 파일)

  • Graph 클라이언트: 지수 백오프가 있는 자동 재시도(429, 401, 5xx), Retry-After 지원, 30초 요청 시간 제한, 최대 10페이지까지 자동 페이지 매김

  • HTTP 모드: 세션별 인증, 30분 세션 TTL, 100세션 상한

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