This MCP server lets an AI search for, inspect, and run CLI for Microsoft 365 commands via natural language. It uses the user's existing CLI for Microsoft 365 authentication context to manage Microsoft 365 services such as SharePoint, Teams, Planner, and Power Platform.
From the registry: MCP server for CLI for Microsoft 365 to manage your tenant using natural language

$ npm i -g @pnp/cli-microsoft365https://pnp.github.io/cli-microsoft365$ m365 setup$ m365 cli config set --key prompt --value false
m365 cli config set --key output --value text
m365 cli config set --key helpMode --value full$ m365 loginhttps://pnp.github.io/cli-microsoft365/cmd/loginPlease install the `cli-microsoft365-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Node.js** — Node.js 20.x or higher is required to run the MCP server via npx.
- **Install CLI for Microsoft 365 globally** — This MCP server depends on a globally installed CLI for Microsoft 365. Run: `npm i -g @pnp/cli-microsoft365` (https://pnp.github.io/cli-microsoft365)
- **Run initial CLI for Microsoft 365 setup** — Perform the initial setup for the globally installed CLI for Microsoft 365. Run: `m365 setup`
- **Configure CLI for Microsoft 365 output settings** — Set CLI configuration so the MCP server receives non-interactive, text-based, detailed output. Run: `m365 cli config set --key prompt --value false
m365 cli config set --key output --value text
m365 cli config set --key helpMode --value full`
- **Authenticate with Microsoft 365** — The MCP server does not perform authentication itself; it uses the existing CLI for Microsoft 365 authentication context. Log in with CLI for Microsoft 365 before using the server. Run: `m365 login` (https://pnp.github.io/cli-microsoft365/cmd/login)
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","@pnp/cli-microsoft365-mcp-server@latest"]
Note: Preferred portable install path is running the server with npx. No MCP-specific environment variables are documented. Authentication is handled outside MCP config through the globally installed CLI for Microsoft 365 session.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.