PP

pnp/pnp-powershell-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

10 stars 3 forks 품질 86 트렌드 38MIT

MCP server for PnP PowerShell

개요

This MCP server allows the use of natural language to run PnP PowerShell commands and to author complex PnP PowerShell scripts. It may handle complex prompts that are executed as a chain of PnP PowerShell cmdlets that try to fulfill the user's request, and it can search the community's PnP Script Samples library for ready-to-adapt scripts. This way you can manage many different areas of Microsoft 365 — SharePoint Online, Microsoft Teams, Entra ID, OneDrive, Planner, Power Platform, Microsoft 365 Groups, taxonomy, search, and tenant administration — straight from your MCP client, and use it as a jump-start for writing your own automation scripts. - .NET 10 SDK (only required to build/run from source — published tool releases are self-contained) - PowerShell 7.4 or above (pwsh) installed and available on PATH - The PnP.PowerShell module installed: This MCP server shells out to the locally installed PnP PowerShell module — it does not do any authentication for you.

README

원문 README의 일부입니다. 원문 보기.

PnP PowerShell MCP Server

💡 Description

This MCP server allows the use of natural language to run PnP PowerShell commands and to author complex PnP PowerShell scripts. It may handle complex prompts that are executed as a chain of PnP PowerShell cmdlets that try to fulfill the user’s request, and it can search the community’s PnP Script Samples library for ready-to-adapt scripts. This way you can manage many different areas of Microsoft 365 — SharePoint Online, Microsoft Teams, Entra ID, OneDrive, Planner, Power Platform, Microsoft 365 Groups, taxonomy, search, and tenant administration — straight from your MCP client, and use it as a jump-start for writing your own automation scripts.

📦 Prerequisites

  • .NET 10 SDK (only required to build/run from source — published tool releases are self-contained)

  • PowerShell 7.4 or above (pwsh) installed and available on PATH

  • The PnP.PowerShell module installed:

    Install-Module -Name PnP.PowerShell -Scope CurrentUser -Force -AllowClobber
    

🚀 Installation & Usage

This MCP server shells out to the locally installed PnP PowerShell module — it does not do any authentication for you. Authenticate first using Connect-PnPOnline (see Best Practices for the recommended auth methods), then the MCP server will reuse the same PnP PowerShell connection context.

  • TYPE: Local (stdio)
GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector dotnet run --project ./PnPPowerShell.MCPServer.csproj
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "PnP-PowerShell": { "command": "pnp-powershell-mcp-server" } } }