PowerShell MCP
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
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
Maintainer
Works with
Installation
Manual Installation
npx powershell-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.
pwshInstall the PowerShell.MCP module
Install the module from PowerShell Gallery. This downloads the MCP proxy binary and all supporting files.
Install-PSResource PowerShell.MCPSet 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)"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-PwshToClaudeDesktopRestart 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.
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.
PowerShell MCP Alternatives — Similar Developer Tools Servers
Looking for alternatives to PowerShell MCP? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up PowerShell MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.