Powershell MCP logo

Powershell MCP

Manage Windows hosts and remote SSH, WinRM, and SFTP targets through hidden, structured MCP execution tools.

Install Powershell MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "powershell-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@imrrd/powershell-mcp@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

powershell-mcp MCP server gives agents hidden PowerShell and native-process execution on a Windows host, with captured output, exit codes, timeouts, and bounded results. It also reaches remote systems through in-process SSH, WinRM, and SFTP without relying on ssh.exe, scp.exe, WSL, or visible console windows. Use it for unattended Windows administration, service operations, system inspection, remote commands, file transfers, and controlled local or remote batches. The 🖥️ OS Automation category fits its focus on host and infrastructure operations.

Use cases

  • Manage Windows services without opening console windows
  • Inspect Windows host resources from an agent
  • Run commands on Linux hosts over in-process SSH
  • Deploy files to remote hosts with SFTP
  • Dispatch bounded commands across explicit SSH or WinRM targets

Key features

  • Hidden PowerShell and native executable execution
  • Structured output with timeouts and size limits
  • Windows service and system inspection
  • In-process SSH, WinRM, and SFTP
  • Process-local execution and batch lifecycle controls
  • Optional paginated raw output logs

Tools20

What Powershell MCP lets your agent do. Expand a tool for its parameters.

Verified live~4.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/28 checks healthy over the last 111d

What it can do

From the 20 tools this server returned when we ran it.

Runs commands · 4Can delete or modify data · 1Handles credentials · 4Makes network requests · 2Read-only tools · 15
Network at startup4 connections
Files written at startup2
Install scriptsNone
npm provenanceSigned build
Package age149 days
Maintainers1

Observed 2026-10-30 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @imrrd/powershell-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads1.3kPackage downloads in the last 30 days.
Last commit19d agoMost recent push to the default branch.
Tools exposed20Callable tools this server registers over MCP.

How Powershell MCP works

What powershell-mcp does

powershell-mcp exposes Windows administration and process-execution capabilities through MCP. Agents can run PowerShell in a hidden process, execute native programs directly without shell quoting, inspect Windows services and system resources, and start, monitor, read, or cancel bounded local executions.

Remote operations cover SSH commands for OpenSSH-compatible hosts, WinRM commands for remote Windows systems, and SFTP transfers in both directions. SSH and SFTP run in-process, so these operations do not require ssh.exe, scp.exe, or WSL. WinRM uses PowerShell Remoting and requires WinRM on the target.

How it works

Local PowerShell and executable calls return structured execution information including standard output, standard error, exit status, duration, timeout state, termination status, and truncation details. Output is limited per stream, with head or tail retention available. PowerShell execution prefers PowerShell 7 through pwsh and can fall back to powershell.exe.

The service and system tools provide narrower operations for listing, inspecting, and controlling Windows services, plus summaries of the operating system, CPU, memory, and disk drives. Remote batch execution accepts explicitly supplied SSH or WinRM targets, supports up to 32 targets and eight concurrent operations, and allows per-target deadlines. Batch state and execution handles are process-local and are not recovered after a server restart.

Optional output logging preserves bounded raw stdout and stderr separately. Logs are disabled unless requested, use opaque process-local handles, support paginated base64 reads, and expire after one hour for completed handles.

Setup and configuration

The PowerShell engine can be selected with PWSH_MCP_EXE; otherwise the server uses its preferred engine and fallback behavior. POWERSHELL_MCP_LOG_PARENT can select the parent directory for opt-in output-log files. Logging reserves up to 64 MiB in total and uses the configured location, TMPDIR, or the operating system temporary directory as applicable.

Remote SSH and SFTP calls accept a private-key path or password. WinRM calls can use a username, password, SSL, and an authentication mode. Credentials and authentication options are not included in execution results.

Tools and capabilities

  • Run hidden PowerShell commands with run_powershell.
  • Execute native programs directly with run_program.
  • List, inspect, start, stop, restart, and query Windows services.
  • Read Windows OS, CPU, memory, and disk summaries.
  • Execute SSH or WinRM commands on remote hosts.
  • Upload and download files through SFTP.
  • Start, inspect, page, and cancel local executions.
  • Dispatch and manage explicit SSH or WinRM batches.
  • Read runtime capabilities and optional raw output logs.

Limitations and notes

Service control requires sufficient privileges in the MCP host process. WinRM requires the remote Windows host to have WinRM enabled. Batch targets are explicit; the batch tools do not discover targets or retry operations.

Timeouts and cancellation apply to the local process or dispatch state and do not prove that remote work or descendant processes stopped. Unknown status can result after a restart or when termination cannot be confirmed. Recovered executions are not automatically replayed or signalled.

Opt-in logs can contain secrets emitted by commands, so logging should be avoided for sensitive operations. Logs are protected for the current operating-system user and SYSTEM on Windows, or with restrictive permissions on POSIX systems. Constrained PowerShell endpoints that prohibit Add-Type are unsupported for the bounded framing used by strict PowerShell and WinRM execution.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Powershell MCP

powershell-mcp is an MCP server that connects AI agents to a Windows host plus remote SSH, WinRM, and SFTP targets. Its main tools run hidden PowerShell or native programs, manage Windows services, inspect system information, execute remote commands, transfer files, and control bounded local or batch executions.

Use `run_powershell`; it starts PowerShell in a hidden process and returns stdout, stderr, exit status, duration, timeout state, and bounded output. The server prefers `pwsh` and falls back to `powershell.exe`, with `PWSH_MCP_EXE` available to select an executable.

Use `run_program` and provide the executable plus an argument array. It launches the program directly rather than through a shell, capturing stdout, stderr, and exit code without requiring shell quoting. Timeout, output-size, working-directory, and head-or-tail options are available.

Yes. Use `winrm_exec` for remote Windows hosts with WinRM enabled, or `ssh_exec` for OpenSSH-compatible targets such as Linux hosts. Both capture results in-process; SSH accepts a private key or password, while WinRM supports authentication and optional SSL settings.

Use `sftp_upload` to send a local file to a remote host or `sftp_download` to retrieve one. Transfers use in-process SFTP rather than scp.exe or WSL and support private-key or password authentication, remote paths, timeouts, and host connection details.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPowershell MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/powershell-mcp?style=directory)](https://allmcps.com/mcp/powershell-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/powershell-mcp"><img src="https://allmcps.com/api/badge/powershell-mcp?style=directory" alt="Powershell MCP on AllMCPs" /></a>