Skip to main content
MCP server CX Codex

Microsoft Graph MCP — Claude Code MCP server: how to install

Connects AI assistants to Microsoft Graph API and scans tenants locally for inactive devices or unused licenses. Built for MSP workflows.

Open on GitHub

What Microsoft Graph MCP does

This package serves as a single-executable replacement for the retired mgc tool. The installation supplies both the microsoft-graph-mcp server and the companion microsoft-graph-cli binary. It indexes tenant information into a local offline cache, making it simple for language models to spot unassigned seats, dormant machines, and elevated permission hazards.

Avoid starting the server with --transport http. Current builds lack password authentication and browser-rebinding guards, meaning web pages could query tenant data through local interfaces. Agents must connect via the default stdio transport instead. Remote integrations for tools such as ChatGPT remain on hold until the network layer gets updated.

Claude Code users can register the marketplace and install the plugin directly. Once downloaded, microsoft-graph-cli --version verifies that both binaries are operational in the path.

What it helps with

  • locate unused Microsoft 365 licenses across tenants
  • detect privileged accounts with excessive access permissions
  • identify stale corporate devices from an offline cache
  • manage Microsoft Graph resources directly from local AI agent sessions

Example prompts for the agent

  • Scan tenant licenses using microsoft-graph-cli and list unassigned seats.
  • Check directory roles through Microsoft Graph to flag accounts with surplus privileges.
  • Find inactive devices in the offline store that missed check-ins recently.

How to install Microsoft Graph MCP

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Microsoft Graph MCP

How do I install Microsoft Graph MCP in Claude Code?

Add the catalog with /plugin marketplace add Servosity/msp-skills and install the package via /plugin install microsoft-graph@msp-skills. On POSIX systems, you can also run bash <(curl -fsSL https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/microsoft-graph/install.sh).

What does Microsoft Graph MCP do?

It links local AI agents to Microsoft Graph to inspect M365 environments. An offline database aggregates data to highlight wasted subscriptions, inactive hardware, and high-risk administrative roles.

Why is HTTP transport disabled?

The HTTP mode listens on all interfaces without password protection or rebinding security. To prevent malicious scripts on open websites from accessing tenant credentials, run the server strictly over stdio.

Similar MCP servers

All MCP servers for Cloud: AWS, Azure, GCP →

From the same set73

NinjaOne MCP Gives your agent NinjaOne reports plus a local store for fleet-wide questions: patch gaps, backup holes, antivirus exposure. CX Codex +1 ★ 63repo stars Nerdio Manager MCP An MCP server for the Nerdio Manager for MSP API without PowerShell. It helps audit multi-tenant Azure Virtual Desktop environments and track background jobs via AI agents. CX Codex +1 ★ 63repo stars N-able N-central MCP This MCP server connects an AI agent to the N-central REST API, an offline organization-tree mirror, and cross-tenant search. CX Codex +1 ★ 63repo stars MSPbots MCP An unofficial MCP server and skill for the MSPbots API: readable filters, alias-named resources, full exports and KPI history. Built for MSP teams pulling metrics into their agent. CX Codex +1 ★ 63repo stars Maxio MCP Maxio MCP connects an agent to Maxio Advanced Billing and a local CLI for revenue analysis. Use it to inspect MRR trends, retention, and individual customer history. CX Codex +1 ★ 63repo stars Liongard MCP Pulls your Liongard estate into a local copy you can search, join and drift-check from one CLI, without hitting the API each time. CX Codex +1 ★ 63repo stars Level MCP Brings Level RMM endpoints into your coding agent with an offline SQLite fleet cache. It groups alert queues and security patch posture directly on your machine. CX Codex +1 ★ 63repo stars KnowBe4 MCP This MCP server brings KnowBe4 KMSAT reporting and a local SQLite store into your AI agent. Use it for cross-client questions. CX Codex +1 ★ 63repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor