PnP PowerShell MCP Server
by pnpio.github.pnp/pnp-powershell-mcp-serverv0.1.7-beta
Manage Microsoft 365 in natural language with PnP PowerShell and author PnP PowerShell scripts.
context tax
queued
security
queued
cold start
queued
freshness
Active4d ago
Install PnP PowerShell MCP server
Install in Claude Code
claude mcp add pnp-powershell -- dnx PnP.PowerShell.MCPServer --yesInstall in Cursor
{
"mcpServers": {
"pnp-powershell": {
"command": "dnx",
"args": [
"PnP.PowerShell.MCPServer",
"--yes"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"pnp-powershell": {
"command": "dnx",
"args": [
"PnP.PowerShell.MCPServer",
"--yes"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"pnp-powershell": {
"type": "stdio",
"command": "dnx",
"args": [
"PnP.PowerShell.MCPServer",
"--yes"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"pnp-powershell": {
"command": "dnx",
"args": [
"PnP.PowerShell.MCPServer",
"--yes"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| PNP_MCP_READONLY | — | — | Read-only mode: true refuses every command that would change Microsoft 365. |
| PNP_MCP_ALLOW_SETUP | — | — | true lets pnp_setup_environment install the PnP.PowerShell module for the current user when it is missing. |
Freshness
Active — last maintenance signal 4d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-05 · 4d ago · GitHub
Latest release
2026-10-05 · 4d ago · GitHub · v0.1.7-beta
Package published
no data · npm/PyPI
Registry entry updated
2026-10-05 · 4d ago · official registry · v0.1.7-beta
FAQ
›How do I install the PnP PowerShell MCP server in Claude Code?
Run: claude mcp add pnp-powershell -- dnx PnP.PowerShell.MCPServer --yes. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does PnP PowerShell require an API key?
No required environment variables are declared in its published metadata.
›Can I use PnP PowerShell as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is PnP PowerShell in the official MCP registry?
Yes, as io.github.pnp/pnp-powershell-mcp-server.