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.
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.
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"]
}
}
}