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.3.tar.gz (22.2 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.3-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcp_server_for_powershell-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d49a6ca897dc7b36217c2bda7bb5a9ad16aace602d1738a46f518fcfea2eab64
MD5 b7682cd9f74f062c1d15c73221cdd746
BLAKE2b-256 a0ceec5b8af5076e22eec1cc2a1d53019870339a0c5744d8cc0c45c492676f90

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_for_powershell-1.0.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_for_powershell-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63e001167fae8aa6dad165a33761164e7d06b7460270aadceb05ad9de398aebf
MD5 29fbb143a0d858ee8e011d1307d9ab08
BLAKE2b-256 00f36e6270075c25e219040379098c4cd0676c625538b63e5a801eff2c6ab07b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_for_powershell-1.0.3-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