PP

pnp/pnp-powershell-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

10 stars 3 forks 品質 86 トレンド 22MIT

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" } } }