Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

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.