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/ストア/Web アプリ

コンプライアンス

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 Lines ログ(10 MB ローテーション、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