Best for
- Developers or admins who want to interact with Microsoft 365 using natural language
- Scenarios managing SharePoint, Teams, Planner, Power Platform, etc.
- Users of MCP clients like VS Code, Claude Desktop, Cursor
This MCP server, built by the PnP community, allows natural language management of Microsoft 365. It provides four tools for searching commands, getting docs, executing commands, and getting best practices. It relies on a globally installed CLI for Microsoft 365 and requires prior authentication. The server integrates with several popular MCP clients and provides clear installation instructions.
Strongest · Documentation 14/20 Weakest · Reliability 8/20
Static review · not runListed 2026-08-07
Read the FMRS scoring method →Runtime:Node.js 20+
Prerequisites: Node.js 20.x or higher, and global installation of CLI for Microsoft 365 (npm i -g @pnp/cli-microsoft365). Run 'm365 setup' to initialize, then authenticate using 'm365 login'. Configure CLI: 'm365 cli config set --key prompt --value false', 'm365 cli config set --key output --value text', 'm365 cli config set --key helpMode --value full'. Then add the server to your MCP client with command: npx -y @pnp/cli-microsoft365-mcp-server@latest.
{
"mcpServers": {
"CLI-Microsoft365": {
"command": "npx",
"args": ["-y", "@pnp/cli-microsoft365-mcp-server@latest"]
}
}
}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"CLI-Microsoft365": {
"command": "npx",
"args": [
"-y",
"@pnp/cli-microsoft365-mcp-server@latest"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add CLI-Microsoft365 -- npx -y @pnp/cli-microsoft365-mcp-server@latest
Run it in a terminal; replace any <…> placeholders with your own values first.
The client's tool list should show m365SearchCommands, m365GetCommandDocs, m365RunCommand and m365GetBestPractices; after authenticating with m365 login, asking the agent to search for CLI for Microsoft 365 commands proves the connection works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
This MCP server allows the use of natural language to execute any CLI for Microsoft 365 commands. It may handle complex prompts that will be executed as a chain of CLI for Microsoft 365 commands that will try to fulfill the user's request. Thanks to this, you may manage many different areas of Microsoft 365, for example: Entra ID, OneDrive, OneNote, Outlook, Planner, Power Apps, Power Automate, Power Platform, SharePoint Embedded, SharePoint Online, Teams, Viva Engage, and many more... For best results, use it with Claude Sonnet 4 or Claude Sonnet 3.7.
Securely connect Atlassian Cloud to AI tools.
Official Notion MCP server for querying, editing, and managing Notion pages and databases via AI agents.
Drive your Claude Code session straight from WhatsApp
Official MCP server that lets AI assistants manage your encrypted Anytype wiki in natural language.
Source revision 6d897079f8a5 Data synced 2026-10-12 Read the FMRS scoring method