Poshmcp MCP Server

A Model Context Protocol (MCP) server that exposes PowerShell cmdlets as tools for AI assistants like Claude or Github Copilot. Built with security

Local serverstdioGo

What is the Poshmcp MCP server?

A Model Context Protocol (MCP) server that exposes PowerShell cmdlets as tools for AI assistants like Claude or Github Copilot. Built with security in mind through explicit whitelisting of allowed cmdlets. That is what the poshmcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

This MCP server dynamically loads PowerShell cmdlets from modules and scripts, automatically generating tool schemas from cmdlet documentation. Unlike traditional PowerShell remoting, this server uses a whitelist approach - only explicitly configured cmdlets are exposed, making it safer for AI interactions.

  • Declarative Configuration — Define available tools in a simple JSON config file
  • Automatic Schema Generation — Uses PowerShell reflection to generate MCP tool schemas from cmdlet help documentation
  • Security by Whitelisting — Only explicitly listed cmdlets are exposed as tools
  • Dynamic Loading — Supports both PowerShell modules (.psm1) and script files (.ps1)
  • Type Conversion — Automatically handles parameter type conversions (DateTime, switch parameters, etc.)

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

How it compares

Among the knowledge and memory options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by cezarypiatek; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Poshmcp's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Frequently asked questions

It connects Poshmcp to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Poshmcp directly.