Skip to main content

MCP Server for PowerShell

Project description

MCP server for PowerShell

PyPI

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.

Installation

  • Run directly with uv (recommended): uvx mcp-server-for-powershell
  • pip: pip install mcp-server-for-powershell
  • uv: uv pip install mcp-server-for-powershell

Configuration

The server can be configured using the following command-line arguments:

Argument Description Default
--allowed-commands List of allowed PowerShell commands. If empty, all are allowed (subject to restrictions). []
--restricted-commands List of restricted PowerShell commands. Safe defaults
--restricted-directories List of restricted directories. System directories
--language-mode PowerShell Language Mode: 0 (NoLanguage), 1 (ConstrainedLanguage), 2 (RestrictedLanguage), 3 (FullLanguage). 1
--cwd 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.

License

mcp-server-for-powershell is provided as-is under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_for_powershell-1.0.2.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_for_powershell-1.0.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_for_powershell-1.0.2.tar.gz.

File metadata

File hashes

Hashes for mcp_server_for_powershell-1.0.2.tar.gz
Algorithm Hash digest
SHA256 71880006fcef9c5b0c5dae6d6bb677e7a355101de7326aa30144a6bb3d131a49
MD5 47b4b88e96e63eb3bec5834b033c6ffb
BLAKE2b-256 0a93d4a3804d97ebd5faebc00d4b8b720bf1b519d6498b396bdac86f8f417d16

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_for_powershell-1.0.2.tar.gz:

Publisher: create-release.yaml on danielklecha/mcp-server-for-powershell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_server_for_powershell-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_for_powershell-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 46f373ebb56232559be14c81be7905ff73b4654cbb688dd77b8d46e2bc92de38
MD5 f71de2cfc10f04f56dc69480a5a449e2
BLAKE2b-256 230d87673181a42634969fa45f8847dbb9afb0ad426bc7807098c2e774b4e122

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_for_powershell-1.0.2-py3-none-any.whl:

Publisher: create-release.yaml on danielklecha/mcp-server-for-powershell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page