mcp-server-for-powershell
MCP server for PowerShell
Disclaimer
Unofficial Implementation: This project is an independent open-source software project. It is not affiliated with, endorsed by, sponsored by, or associated with Microsoft Corporation or the PowerShell team.
Trademarks: "PowerShell" and the PowerShell logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. All other trademarks cited herein are the property of their respective owners. Use of these names is for descriptive purposes only (nominative fair use) to indicate compatibility.
Related MCP server: MCP Telegram
Installation
Run directly with uv (recommended):
uvx mcp-server-for-powershellpip:
pip install mcp-server-for-powershelluv:
uv pip install mcp-server-for-powershell
Configuration
The server can be configured using the following command-line arguments:
Argument | Description | Default |
| List of allowed PowerShell commands. If empty, all are allowed (subject to restrictions). |
|
| List of restricted PowerShell commands. | Safe defaults |
| List of restricted directories. | System directories |
| PowerShell Language Mode: |
|
| Initial working directory. | Current Directory |
Language Modes
0 (NoLanguage): No script execution allowed.
1 (ConstrainedLanguage): Restricts access to sensitive language elements (default).
2 (RestrictedLanguage): Only allows basic commands.
3 (FullLanguage): Unrestricted access.
Security Profiles
We recommend different configurations based on your security needs:
Default (Balanced)
By default, the server runs in ConstrainedLanguage mode with a curated blocklist of dangerous commands and restricted system directories. This provides "good enough" defaults for general use, preventing common dangerous operations while allowing most read-only and safe actions.
uvx mcp-server-for-powershellSafe Mode (Strict)
For environments requiring stricter controls, use NoLanguage mode (--language-mode 0). Only built-in commands and cmdlets can be executed.
uvx mcp-server-for-powershell --language-mode 0Nuclear Mode (Allow-List Only)
For the highest security "nuclear" option, explicitly whitelist ONLY the commands you need (e.g., allow get-items only). This blocks everything else by default.
uvx mcp-server-for-powershell --allowed-commands Get-Item Get-ChildItem Get-ContentLicense
mcp-server-for-powershell is provided as-is under the MIT license.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Alicense-quality-maintenanceMCP server for Huntress API integrationLast updated1MIT
- MIT
- AlicenseBqualityDmaintenanceMCP Server for crafty controllerLast updated63282GPL 3.0
- AlicenseAqualityCmaintenanceMCP Server for ChainAnalyzer(https://chain-analyzer.com)Last updated6541MIT
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for Blockscout
A basic MCP server to operate on the Postman API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielklecha/mcp-server-for-powershell'
If you have feedback or need assistance with the MCP directory API, please join our Discord server