intune-mcp
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 build3. 인증
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 모드는 포트 3000에서 Express 서버를 시작합니다(--port 또는 PORT 환경 변수로 구성 가능). 엔드포인트는 다음과 같습니다:
경로 | 메서드 | 용도 |
| POST | MCP JSON-RPC(Streamable HTTP) |
| GET | 서버 알림용 SSE 스트림 |
| DELETE | 세션 종료 |
| GET | 상태 확인(상태, 버전, 세션 수) |
사용 가능한 도구
카테고리 | 도구 | 설명 |
인증 |
| 디바이스 코드 로그인(HTTP 모드 전용) |
디바이스 |
| OData 필터로 관리 디바이스 나열 |
디바이스 |
| ID로 디바이스 세부 정보 가져오기 |
디바이스 |
| 이름, UPN 또는 일련 번호로 검색 |
앱 |
| 디바이스에서 감지된 앱(베타 API) |
앱 |
| Intune의 LOB/스토어/웹 앱 |
규정 준수 |
| 모든 규정 준수 정책 |
규정 준수 |
| 디바이스별 규정 준수 상태 |
규정 준수 |
| 규정 미준수 상태의 디바이스 |
규정 준수 |
| 정책에 대한 디바이스별 상태 |
구성 프로필 |
| 디바이스 구성 프로필 |
구성 프로필 |
| 프로필에 대한 디바이스별 상태 |
구성 프로필 |
| 디바이스의 프로필 상태 |
필요한 권한(위임됨)
DeviceManagementManagedDevices.Read.AllDeviceManagementApps.Read.AllDeviceManagementConfiguration.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세션 상한
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
- 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.1MIT
- AlicenseAqualityCmaintenanceEnables 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.52MIT
- AlicenseBqualityBmaintenanceA 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.36MIT
- 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.
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
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/wborcherdt26/Intune-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server