Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Microsoft 365 Admin

MCP server by okapi-ca Community

Microsoft 365 Admin is an MCP server for Microsoft 365 administration through Graph API application permissions. It is read-only by default and aimed at admins doing security monitoring, identity audits and incident response.

  • Score 75
  • 20 stars
  • 149 a week
  • MIT
  • Updated

Install Microsoft 365 Admin

Built from the published package, never by AI.

claude mcp add microsoft-365-admin -e MS365_ADMIN_MCP_TENANT_ID=YOUR_MS365_ADMIN_MCP_TENANT_ID -e MS365_ADMIN_MCP_CLIENT_ID=YOUR_MS365_ADMIN_MCP_CLIENT_ID -e MS365_ADMIN_MCP_CLIENT_SECRET=YOUR_MS365_ADMIN_MCP_CLIENT_SECRET -- npx -y @okapi-ca/ms-365-admin-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Microsoft 365 Admin in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the microsoft-365-admin block.

About

Microsoft 365 Admin is a Model Context Protocol server for Microsoft 365 administration. It calls the Graph API with application permissions and client credentials, so it needs no user interaction. The source lists 674 tools covering security, audit, identity, guest users, Exchange, Intune, governance, compliance, threat intelligence, advanced hunting, Defender for Identity, eDiscovery, Microsoft 365 Copilot admin and more. It is read-only by default, and write operations need the --allow-writes flag. Write tools carry risk ratings from low to critical.

The server supports stdio and HTTP transports and the Microsoft global and China (21Vianet) clouds. It can use Azure Key Vault for secrets and offers presets to filter tools by domain. The source says it is built on the design of Softeria's ms-365-mcp-server but targets admin work, while Softeria's server uses delegated permissions for end-user productivity. It is aimed at Microsoft 365 administrators.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Security and audit toolsCovers security monitoring, audit, identity and incident response work in Microsoft 365.
  • Defender for IdentityProvides tools for sensors, candidates, migration, identity accounts and audit policy.
  • IntuneCovers devices, apps, MAM, reports, compliance scripts, BitLocker, LAPS and Remediations.
  • eDiscovery v3Covers cases, custodians, noncustodial data sources, review sets, queries and exports.
  • Microsoft 365 Copilot adminCovers usage reports, interaction history audit, AI users, agent registrations and policy settings.
  • GovernanceCovers PIM, access reviews, entitlement management and lifecycle tools.
  • Teams chat and meeting readsCovers Teams online meeting attendance reports and Chat.Read.All investigation reads.
  • Purview DSPMCovers protection scopes and event-based retention triggers in Purview.
  • Exchange and identityCovers Exchange, guest users, app credentials and custom security attributes.
  • PresetsFilter the available tools by domain such as security, audit, identity or health.

What you need

  • Node.js 18 or later
  • Azure AD app registration with application permissions
  • A specific Azure AD tenant ID (not common)
  • Client ID and client secret for the app registration
SettingNeededWhat it is
MS365_ADMIN_MCP_TENANT_IDEnvironment variableRequiredAzure AD tenant ID (specific GUID, not 'common').
MS365_ADMIN_MCP_CLIENT_IDEnvironment variableRequiredApp registration client ID with the required application permissions.
MS365_ADMIN_MCP_CLIENT_SECRETEnvironment variable, secretRequiredApp registration client secret. Prefer Azure Key Vault via MS365_ADMIN_MCP_KEYVAULT_URL for production.
MS365_ADMIN_MCP_KEYVAULT_URLEnvironment variableOptionalOptional Azure Key Vault URL. When set, secrets are pulled from the vault and override the env-var values above.
MS365_ADMIN_MCP_CLOUD_TYPEEnvironment variableOptionalCloud environment: 'global' (default) or 'china' (21Vianet).
MS365_ADMIN_MCP_MAX_TOPEnvironment variableOptionalCap on the $top query parameter to limit result size.
READ_ONLYEnvironment variableOptionalSet to 'true' or '1' to force read-only mode (default behavior; mutations require --allow-writes).
ENABLED_TOOLSEnvironment variableOptionalRegex to filter the catalog of available tools.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Check Defender for Identity sensor health in my Microsoft 365 tenant.
  • List Intune device compliance reports for my organization.
  • Show the Teams online meeting attendance report for a recent meeting.

Good to know

  • Read-only by default. Write operations need the --allow-writes flag.
  • Requires an app registration with application permissions, not delegated permissions.
  • Requires a specific tenant ID. The value common is not supported.
  • On Claude.ai surfaces, tools may be dropped silently when the 1 MiB schema budget is exceeded.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Microsoft 365 Admin

All alternatives →
Agentmesh MCP Proxy microsoft
94

Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.

AAA Local 6.6k
Bla qybaihe
94

Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.

AAA Local 7.3k
Bla Agents qybaihe
94

Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.

AAA Local 11k/wk
MCP Auth zgeoff
94

A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner

AAC Local 44k/wk
Agentos MCP Server microsoft
94

Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.

AAA Local 6.6k
Convex MCP Gateway tfohlmeister
93

Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.

AAC Local 37k/wk

Compare with Agentmesh MCP Proxy, Bla or Bla Agents

Microsoft 365 Admin: common questions

Does Microsoft 365 Admin change my tenant?

It is read-only by default. Write operations require the --allow-writes flag, and write tools are classified by risk from low to critical.

How is this different from Softeria's ms-365-mcp-server?

The source says Softeria's server uses delegated permissions for end-user productivity. This server uses application permissions for admin operations.

Does it work with the Microsoft China cloud?

Yes. The source says it supports the global and China (21Vianet) clouds, selected with the cloud type setting.

How do I install Microsoft 365 Admin?

In Claude Code run claude mcp add microsoft-365-admin -e MS365_ADMIN_MCP_TENANT_ID=YOUR_MS365_ADMIN_MCP_TENANT_ID -e MS365_ADMIN_MCP_CLIENT_ID=YOUR_MS365_ADMIN_MCP_CLIENT_ID -e MS365_ADMIN_MCP_CLIENT_SECRET=YOUR_MS365_ADMIN_MCP_CLIENT_SECRET -- npx -y @okapi-ca/ms-365-admin-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Microsoft 365 Admin the official server?

Microsoft 365 Admin is a community project by okapi-ca, not verified by a company domain.

Is Microsoft 365 Admin free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Microsoft 365 Admin safe to use?

It scores 75 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Microsoft 365 Admin?

Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.

Does Microsoft 365 Admin work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Microsoft 365 Admin Install

Add to stack

Loading.