Microsoft 365 CLI MCP Server

Microsoft 365 CLI MCP server enabling AI agents to interact with Microsoft 365 services via the PnP CLI for Microsoft 365 — managing SharePoint sites, Teams, Outlook groups, Azure AD, and other M365 resources, automating M365 administration tasks, and integrating Microsoft 365 management into agent-driven IT administration and enterprise productivity workflows.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Productivity microsoft365 sharepoint teams mcp-server office365 pnp m365
⚙ Agent Friendliness
72
/ 100
Can an agent use this?
🔒 Security
85
/ 100
Is it safe for agents?
⚡ Reliability
76
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
72
Documentation
78
Error Messages
72
Auth Simplicity
62
Rate Limits
72

🔒 Security

TLS Enforcement
100
Auth Strength
85
Scope Granularity
80
Dep. Hygiene
78
Secret Handling
82

OAuth2. HTTPS. M365 compliance. PnP team MCP. Least-privilege admin. Token storage secure.

⚡ Reliability

Uptime/SLA
82
Version Stability
78
Breaking Changes
75
Error Recovery
70
AF Security Reliability

Best When

An IT administrator or M365 developer needs AI-assisted management of Microsoft 365 — automating SharePoint, Teams, or Azure AD tasks at scale via the comprehensive PnP CLI.

Avoid When

You need Google Workspace, or require simple M365 tasks that Microsoft Graph API can handle directly.

Use Cases

  • Managing SharePoint sites and permissions from IT administration agents
  • Creating and managing Microsoft Teams from collaboration management agents
  • Automating M365 user and group management from HR workflow agents
  • Deploying SharePoint solutions from DevOps pipeline agents
  • Auditing M365 permissions and configurations from compliance agents
  • Automating Outlook group and calendar management from administrative agents

Not For

  • Teams without Microsoft 365 subscription
  • Google Workspace users (different platform)
  • End-user productivity tasks (this is admin/management focused)

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: oauth2
OAuth: Yes Scopes: Yes

Microsoft 365 authentication via CLI for Microsoft 365. Supports device code flow, certificate auth, and managed identity. Azure AD app registration may be required for some operations. Auth via cli-microsoft365 login command.

Pricing

Model: paid
Free tier: No
Requires CC: Yes

Microsoft 365 subscription required. PnP CLI for Microsoft 365 is free open source. MCP server wrapper is free. M365 Developer Program offers 90-day trial.

Agent Metadata

Pagination
token
Idempotent
Partial
Retry Guidance
Documented

Known Gotchas

  • CLI for Microsoft 365 must be installed and authenticated before MCP can work
  • Authentication complexity: device code, app registration, managed identity options
  • Microsoft Graph throttling: rate limits enforced per app per tenant
  • Admin permissions required for many operations — least-privilege setup is complex
  • M365 CLI (pnp/cli-microsoft365) wraps Graph API — some operations have additional latency
  • Community MCP from garrytrinder (Microsoft PnP team member) — high quality

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Microsoft 365 CLI MCP Server.

$99

Scores are editorial opinions as of 2026-03-06.

5190
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered