Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

PnP PowerShell

NUGET · PNP.POWERSHELL.MCPSERVER

Manage Microsoft 365 in natural language with PnP PowerShell and author PnP PowerShell scripts.

+49 this week 70 Trust /100

Last scanned (5 hours ago)

Scores higher than 49% of NuGet servers

Category Cloud Infrastructure

Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security100
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • No install/post-install scripts declared.Pass
  • No production dependencies, so there is no dependency health to assess. View diagnostics → Pass
Provenance & Transparency32
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Build provenance not yet verified. View diagnostics → Unverified
  • Licence could not be checked: the licence is shipped as a file inside the package, not declared as a standard (SPDX) licence identifier, so we cannot tell whether it is OSI-approved.Unverified
  • Actively maintained (last published 11 days ago).Pass
  • Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability84
  • 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 2199 tokens (~137/item across 16 items; 15 tools + 1 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management0
  • Stability not yet verified: not enough scan history yet (needs a 30-day window).Unverified
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
  • Structured output schemas are declared (53% of tools); any adoption earns full credit.Pass
Tool Safety100
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • We read all 15 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
  • An AI judge read all 17 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a current MCP spec version (2026-07-28).Pass

Unverified: 1 category

A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 15 Oct 26 +34
    • Injection markers: unverified → pass ▲ security
    • First check of Judged manipulation: pass security
    • Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
    • Tool coverage: unverified → 100 ▲ functional
    • Schema quality: unverified → 100 ▲ functional
    • MCP protocol: unverified → pass ▲ functional
    • First check of Schema quality: fail functional
    • First check of Schema quality: excellent functional
    • First check of Destructive annotations: pass functional
    • First check of Schema quality: fail functional
    • First check of Tool coverage: 53 functional
    • First check of Tool coverage: 100 functional
  • 12 Oct 26 +15
    • Malware scan: unverified → pass ▲ security
  • 8 Oct 26 21

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 17 Oct 2026 · Analysed nuget/PnP.PowerShell.MCPServer@0.1.7-beta

Provenance Inconclusive

We could not complete the check, so nothing is claimed either way. This is a gap on our side, not a finding about the package.

Result Inconclusive
Ecosystem nuget
Reason Signature present, unverified

Signer

Signed as Repository signature, names nuget.org
Subject CN=NuGet.org Repository by Microsoft,O=NuGet.org Repository by Microsoft,L=Redmond,ST=Washington,C=US
Issuer CN=DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1,O=DigiCert\, Inc.,C=US
Valid from 23 Feb 2024
Valid until 18 May 2027
Service index https://api.nuget.org/v3/index.json
Owners NishkalankBezawada

Background: How many MCP packages publish verified provenance →

Dependencies 0 packages
Packages resolved 0
Tree resolution Complete

Background: SBOMs and build attestations, explained →

Registry declarations For information only

What the registry and the package's own manifest say about this version. The publisher or the registry writes these, nothing here is verified, and none of it affects the score.

Repository https://github.com/pnp/pnp-powershell-mcp-server
Repository type git
Commit 2f279fd2f9a2ec67e50ed9dc15769ad687c959ee
Project URL https://github.com/pnp/pnp-powershell-mcp-server
MCP tools · 15 exposed · ~1,867 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
pnp_diagnose_connection ~216

Diagnoses a broken or unfamiliar machine and reports whether its environment is set up, and answers how to sign in to it. Verifies everything that must be true before anything can run: pwsh installed and on PATH, the PnP.PowerShell module present and current enough, whether this session is connected, and which app registration, persisted login or certificate this machine can actually authenticate with. Every failing check names its cause and the next command to run, filling in every value the machine's own state can supply. Call it before the first Connect-PnPOnline rather than composing one from memory, and whenever something is wrong or fails for a reason that is not obvious.

NameTypeReqDescription
sessionIdstring|null–Session to inspect (default: "default")
targetUrlstring|null–The SharePoint site the caller wants to work against, e.g. "https://contoso.sharepoint.com/sites/marketing". Given one, the report names the exact connect command for that host instead of a template.
NameTypeReqDescription
accountstring|null––
connectedbooleanyes–
moduleInstalledbooleanyes–
moduleVersionstring|null––
pwshAvailablebooleanyes–
pwshVersionstring|null––
readyboolean––
sessionIdstringyes–
urlstring|null––

No examples provided.

pnp_get_best_practices ~114

Returns this server's own guidance and recommended workflow: how to approach a task, the rules it enforces, how to treat tenant text that reads like an instruction, and the conventions to follow. The full document is long, so pass a section to read one topic.

NameTypeReqDescription
sectionstring|null–Optional topic to return instead of the whole document. One of: workflow, docs, sessions, config, readonly, output, destructive, trust, auth, execution, patterns. Omit for everything.

No output schema declared.

No examples provided.

pnp_get_command_docs ~97

Gets the reference documentation for one named cmdlet: its syntax, every parameter and what it means, the parameter sets, and examples. Use it once you know the cmdlet name and need to know how to call it.

NameTypeReqDescription
commandNamestringyesThe full PnP PowerShell command name (e.g., "Get-PnPWeb", "Connect-PnPOnline", "Get-PnPList")

No output schema declared.

No examples provided.

pnp_get_connection_status ~87

Reports the connection state of one session: whether it is signed in right now, which site URL it holds, and which account it is authenticated as. Check it before connecting, so an existing connection is reused rather than opened again, and to find out who you are and where you are pointed.

NameTypeReqDescription
sessionIdstring|null–Session to inspect (default: "default")
NameTypeReqDescription
accountstring|null––
connectedboolean––
connectionTypestring|null––
messagestring|null––
sessionIdstring––
tenantAdminUrlstring|null––
urlstring|null––

No examples provided.

pnp_get_result_page ~121

Returns the next page of a result set that pnp_run_command summarised because it was too large to return whole. Pages over rows already fetched, so it costs nothing against the tenant and returns exactly the rows the original command saw. Use the cursor and offset printed under the summary.

NameTypeReqDescription
cursorstringyesThe cursor printed with the summary, e.g. "a1b2c3d4e5"
offsetinteger–Zero-based row number to start from, as printed in the MORE line of the previous page
NameTypeReqDescription
cursorstringyes–
nextOffsetinteger|null––
offsetintegeryes–
pageableRowsintegeryes–
sessionIdstringyes–
totalRowsintegeryes–

No examples provided.

pnp_get_script_sample ~94

Opens one specific sample already identified, addressed by the exact slug name a browse returned, and gives back its complete script body. Use it when you know precisely which sample you want.

NameTypeReqDescription
sampleNamestringyesThe sample slug name returned by pnp_search_script_samples (e.g., 'spo-create-documentset', 'teams-bulk-create-teams', 'spo-export-sharepoint-list-items-to-csv')

No output schema declared.

No examples provided.

pnp_list_sessions ~42

Lists all active PowerShell sessions with their status and last activity time. Use this to see what sessions exist before deciding which to connect, reset, or reuse.

Input schema present but exposes no named parameters.

NameTypeReqDescription
countinteger––
sessionsarrayyes–
totalintegeryes–
truncatedboolean––

No examples provided.

pnp_ping ~92

Returns the server version, uptime, read-only mode status, and active session count, plus (unless includeReadiness is false) a one-line readiness flag. Use this as a lightweight health check to confirm the server itself is responsive.

NameTypeReqDescription
includeReadinessboolean–Also probe whether pwsh and the PnP.PowerShell module are installed (launches a short-lived pwsh). Default: true.
NameTypeReqDescription
activeSessionsintegeryes–
packageVersionstringyes–
pnpModuleInstalledboolean|null––
pnpModuleVersionstring|null––
pwshAvailableboolean|null––
readOnlyModebooleanyes–
startedUtcstringyes–
statusstringyes–
uptimestringyes–
versionstringyes–

No examples provided.

pnp_reset_session ~80

Signs out: ends a session and discards everything held in it, so the next call starts fresh and must reconnect. Use it to sign out or log out, to switch to a different account, or to recover a session that has wedged or stopped responding.

NameTypeReqDescription
sessionIdstring|null–Session to end (default: "default")

No output schema declared.

No examples provided.

pnp_run_command ~216

Runs PnP PowerShell against the connected tenant and returns what it produced. This is the tool that does the actual work: use it to create, read, update, set, change, add, remove, delete, list, upload, download, copy, move, restore or report on sites, lists, libraries, files, folders, list items, users, groups, permissions, Teams, Entra ID objects, and tenant or site settings. Chain steps with semicolons or newlines. The Connect-PnPOnline connection persists across calls sharing a sessionId, so connect once and keep going.

NameTypeReqDescription
commandstringyesPnP PowerShell command(s) to execute (e.g., "Get-PnPSite", "Get-PnPList | Select-Object Title, ItemCount")
sessionIdstring|null–Session to run in. Sessions keep their own PnP connection, so use a second name only when working against two tenants at once (default: "default")

No output schema declared.

No examples provided.

pnp_save_script_sample ~104

Saves a PnP PowerShell script to the user's own samples for reuse, so later searches and suggestions include it. Use it only when the user asks to keep or save a script. It never overwrites an existing file.

NameTypeReqDescription
namestringyesFile name without extension
scriptstringyesThe complete PnP PowerShell code
synopsisstringyesOne line on what it does, kept as its .SYNOPSIS

No output schema declared.

No examples provided.

pnp_search_commands ~170

Answers the question "which cmdlet handles this, and what is it called?". Searches cmdlet names, verbs, nouns, descriptions, parameters and examples to discover whether one exists for the area you need to manage or work with. Describe the task in your own words -- "add a column to a list", "share a file externally" -- or pass keywords. Use it whenever the cmdlet name is unknown. Returns names, synopses, parameters and documentation links, never tenant data.

NameTypeReqDescription
limitinteger–Maximum number of results to return (default: 20, max: 100)
querystringyesWhat you are trying to do, in plain words or as keywords (e.g., "find sites with no owner", "teams channel", "upload file")
NameTypeReqDescription
aliasResolvedTostring|null––
commandsarrayyes–
countinteger––
detailOmittedboolean––
indexedModuleVersionstring|null––
matchedintegeryes–
querystringyes–
truncatedboolean––

No examples provided.

pnp_search_script_samples ~122

Browses the catalogue of community PnP Script Samples, plus the user's own, by keyword and returns titles, descriptions and reference links only, never any code. Use it to see what solutions already exist in an area.

NameTypeReqDescription
limitinteger–Maximum number of results to return (default: 10, max: 50)
querystringyesKeywords describing the task or area to browse for (e.g., 'document set', 'teams bulk create', 'export list items csv', 'site permissions report', 'hub site')
NameTypeReqDescription
countinteger––
matchedintegeryes–
querystringyes–
samplesarrayyes–
truncatedboolean––

No examples provided.

pnp_setup_environment ~162

Installs the PnP.PowerShell module for the current user so PnP cmdlets can run, choosing the released build or the latest pre-release. It installs only that module: it never signs in, never touches the tenant, and creates no app registration. For safety it installs only when PNP_MCP_ALLOW_SETUP=true; otherwise it returns the exact Install-Module command to run by hand. Use it when the PnP.PowerShell module is not installed.

NameTypeReqDescription
prereleaseboolean–Install the latest pre-release build instead of the released one (adds -AllowPrerelease). Ask the user which they want. Default: false.
sessionIdstring|null–Session to run the install in (default: "default")
NameTypeReqDescription
allowedbooleanyes–
commandstringyes–
installedbooleanyes–
moduleVersionstring|null––

No examples provided.

pnp_suggest_script ~150

Drafts a starting point for a job someone wants to automate, by matching the task against the user's own and community samples and returning their code plus guidance on adapting it. The entry point when a job is described rather than a cmdlet named.

NameTypeReqDescription
maxSamplesinteger–Maximum number of sample scripts to return (default: 3, max: 5)
taskstringyesA natural-language description of what you want to accomplish with PnP PowerShell. Be as specific as possible (e.g., 'Export all SharePoint list items to a CSV file', 'Bulk create Microsoft Teams fro…

No output schema declared.

No examples provided.

Install

How do I install the PnP PowerShell MCP server?

PnP PowerShell runs locally as a NuGet package, launched with dnx PnP.PowerShell.MCPServer@0.1.7-beta --yes. Ready-made configuration for Claude, Cursor, VS Code, Codex and 3 more is on this page, copied from each client's own documentation.

nuget · PnP.PowerShell.MCPServer

# add to Claude Code
claude mcp add pnp-pnp-powershell-mcp-server -- dnx PnP.PowerShell.MCPServer@0.1.7-beta --yes
Common questions

What is the PnP PowerShell MCP server?

PnP PowerShell is an MCP server listed in the public MCP registry as io.github.pnp/pnp-powershell-mcp-server. Manage Microsoft 365 in natural language with PnP PowerShell and author PnP PowerShell scripts. This page covers its NuGet package (PnP.PowerShell.MCPServer).

Is the PnP PowerShell MCP server safe to use?

PnP PowerShell scores 70 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 17 October 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the PnP PowerShell MCP server expose?

PnP PowerShell exposes 15 tools: pnp_search_script_samples, pnp_reset_session, pnp_setup_environment, pnp_get_connection_status, pnp_get_command_docs, and 10 more. Their descriptions and schemas cost roughly 1,867 tokens of context every time the server is loaded.

Is the PnP PowerShell MCP server still maintained?

PnP PowerShell is still listed as active in the MCP registry. We last reached this channel on 17 October 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.