PnP.PowerShell MCP Server
This guide covers the PnP.PowerShell MCP Server, which lets an MCP-compatible AI assistant run PnP.PowerShell cmdlets against SharePoint and Microsoft 365.
The server communicates over MCP stdio. It discovers cmdlets from the installed PnP.PowerShell module, provides current cmdlet documentation, validates cmdlet and parameter names, and runs each requested expression in a fresh PowerShell process.
Start here
- New users: install and connect.
- Already installed: see how to use the tools and authentication options.
- Operators: review security and confirmations.
For detailed client-specific configuration snippets, see the repository README. The repository also contains the best-practices guide, which is exposed to MCP clients as the pnp://best-practices resource.