PowerShell MCP

v1.0.0Developer Toolsstable

The universal MCP server for Claude Code and other MCP-compatible clients. One installation gives AI access to 10,000+ PowerShell modules and any CLI tool. You and AI collaborate in the same console with full transparency. Supports Windows, Linux, an

ai-agentai-integrationmcpmcp-serverpowershell
Share:
62
Stars
0
Downloads
0
Weekly
0/5

What is PowerShell MCP?

PowerShell MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to universal mcp server for claude code and other mcp-compatible clients. one installation gives ai access to 10,000+ powershell modules and any cli tool. you and ai collaborate in the same console with ...

The universal MCP server for Claude Code and other MCP-compatible clients. One installation gives AI access to 10,000+ PowerShell modules and any CLI tool. You and AI collaborate in the same console with full transparency. Supports Windows, Linux, an

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • The universal MCP server for Claude Code and other MCP-compa

Use Cases

Give AI access to 10,000+ PowerShell modules and CLI tools.
Collaborate with AI in the console with full transparency.
Execute PowerShell commands from Claude and MCP clients on Windows, Linux, and macOS.
yotsuda

Maintainer

LicenseMIT
Languagec#
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx powershell-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use PowerShell MCP

PowerShell MCP is a cross-platform MCP server that gives AI assistants direct access to PowerShell 7 and the thousands of modules on PowerShell Gallery, as well as any CLI tool installed on the system. It runs a persistent console shared between the user and the AI, so both can see exactly what commands are being run and what output is produced. This makes it ideal for system administration, cloud operations (Azure, AWS, Microsoft Graph), DevOps automation, and any task that benefits from having a full scripting runtime available to an AI agent.

Prerequisites

  • PowerShell 7.4 or higher installed (Windows, Linux, or macOS)
  • An MCP-compatible client such as Claude Desktop or Claude Code
  • Windows 10/11, Ubuntu 22.04+, Debian 11+, RHEL 8+, or macOS 12+
  • PowerShell Gallery access (internet connection) to install the module
  • Administrator or sudo privileges may be needed on some systems
1

Open PowerShell 7

Launch PowerShell 7 (not Windows PowerShell 5). On Windows press Win+R and type 'pwsh'. On Linux/macOS run 'pwsh' from your terminal.

pwsh
2

Install the PowerShell.MCP module

Install the module from PowerShell Gallery. This downloads the MCP proxy binary and all supporting files.

Install-PSResource PowerShell.MCP
3

Set executable permissions (Linux and macOS only)

On non-Windows systems you must grant execute permission to the MCP proxy binary before registering it.

chmod +x "$(Get-MCPProxyPath)"
4

Register the server with your MCP client

Use the built-in registration commands to automatically configure Claude Code or Claude Desktop. Choose the command that matches your client.

# For Claude Code:
Register-PwshToClaudeCode

# For Claude Desktop:
Register-PwshToClaudeDesktop
5

Restart your MCP client

Restart Claude Desktop or reload Claude Code so it picks up the new server configuration. The PowerShell console will start automatically on first use.

6

Collaborate with AI in the shared console

Both you and the AI operate in the same persistent console. The AI uses four core tools: 'start_console', 'get_current_location', 'invoke_expression' (to run any PowerShell or CLI command), and 'wait_for_completion' for long-running tasks.

PowerShell MCP Examples

Client configuration

Manual configuration using the proxy path from 'Get-MCPProxyPath -Escape'. Replace the path with the actual output from that command.

{
  "mcpServers": {
    "powershell-mcp": {
      "command": "C:\\Users\\you\\AppData\\Roaming\\PowerShell\\Modules\\PowerShell.MCP\\proxy.exe",
      "args": []
    }
  }
}

Prompts to try

Once connected, ask Claude to run PowerShell commands, query cloud resources, or automate system tasks.

- "List all running Azure VMs and their power states"
- "Find all npm packages in this project that have security vulnerabilities"
- "Query the GitHub API for open issues labeled 'bug' and return them as a table"
- "Use kubectl to show the status of all pods in the production namespace"

Troubleshooting PowerShell MCP

Register-PwshToClaudeCode command is not found after installing the module

Ensure you ran 'Install-PSResource PowerShell.MCP' inside PowerShell 7 (pwsh), not Windows PowerShell 5. Run 'Get-Module -ListAvailable PowerShell.MCP' to verify the module is visible, then import it with 'Import-Module PowerShell.MCP'.

On Linux/macOS the MCP proxy fails to start with a permission denied error

Run 'chmod +x "$(Get-MCPProxyPath)"' inside pwsh to grant execute permissions. If the path contains spaces, verify the quotes are preserved correctly.

A long-running command appears to hang without output

Use the 'wait_for_completion' tool rather than 'invoke_expression' for commands that take more than a few seconds. Note that you cannot cancel AI-executed commands with Ctrl+C — you must close and reopen the console session.

Frequently Asked Questions about PowerShell MCP

What is PowerShell MCP?

PowerShell MCP is a Model Context Protocol (MCP) server that universal mcp server for claude code and other mcp-compatible clients. one installation gives ai access to 10,000+ powershell modules and any cli tool. you and ai collaborate in the same console with full transparency. supports windows, linux, an It connects AI assistants to external tools and data sources through a standardized interface.

How do I install PowerShell MCP?

Follow the installation instructions on the PowerShell MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with PowerShell MCP?

PowerShell MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is PowerShell MCP free to use?

Yes, PowerShell MCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "powershell-mcp": { "command": "npx", "args": ["-y", "powershell-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use PowerShell MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides