pnp avatar

Cli Microsoft365 Mcp Server

pnp/cli-microsoft365-mcp-server

Wraps the CLI for Microsoft 365 tool to let you manage Entra ID, SharePoint, Teams, Planner, Power Platform, and a dozen other Microsoft 365 services using natural language prompts. You install the CLI globally, authenticate once with `m365 login`, then the server translates your requests into command chains that execute against the CLI. Works in VS Code, Claude Desktop, Cursor, and GitHub Copilot CLI. Handles complex workflows that span multiple commands, like provisioning a SharePoint site and configuring its permissions in one go. Requires Node.js 20+ and assumes you're already familiar with Microsoft 365 admin concepts. The CLI itself has hundreds of commands, so you get broad coverage across the Microsoft 365 ecosystem without writing any CLI syntax yourself.

GitHub stars
113
tools
4
transport
STDIO
last updated
May 22, 2026

Tools

4 tools

Public tool metadata for what this MCP can expose to an agent.

m365SearchCommandsSearches CLI for Microsoft 365 commands using fuzzy search based on a query string.

Searches CLI for Microsoft 365 commands using fuzzy search based on a query string.

No parameter schema in public metadata yet.

m365GetCommandDocsGets documentation for a specified CLI for Microsoft 365 command to be used by the Model Context Protocol to provide detailed information about the command along with examples, use cases, and option descriptions

Gets documentation for a specified CLI for Microsoft 365 command to be used by the Model Context Protocol to provide detailed information about the command along with examples, use cases, and option descriptions

No parameter schema in public metadata yet.

m365RunCommandRuns a specified CLI for Microsoft 365 command to be used by the Model Context Protocol to execute the command and return the result and reason over the response

Runs a specified CLI for Microsoft 365 command to be used by the Model Context Protocol to execute the command and return the result and reason over the response

No parameter schema in public metadata yet.

m365GetBestPracticesGets best practices for using CLI for Microsoft 365 in scripts, including guidance on authentication checking, error handling, output handling, and configuration

Gets best practices for using CLI for Microsoft 365 in scripts, including guidance on authentication checking, error handling, output handling, and configuration

No parameter schema in public metadata yet.

Sponsors

Readme

CLI for Microsoft 365 MCP Server
CLI for Microsoft 365 MCP Server

Install in VS Code Install in VS Code Insiders

💡 Description


View the full README on GitHub

Details

Repository
github.com/pnp/cli-microsoft365-mcp-server
Package
@pnp/cli-microsoft365-mcp-server
Transport
STDIO
Registry
MCP registry, active