pwsh-exec MCP
A minimal, transparent PowerShell 7 MCP server for Windows that exposes a single tool, run_command, to execute commands in a fresh pwsh process and return raw exit code, stdout, and stderr. It is stateless, bounded by a 1-300 second timeout, and Windows-hardened for UTF-8 output and fresh PATH reading.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Run a command in a fresh PowerShell process
- Get raw exit code, stdout, and stderr back
- Execute scripts with a specified timeout
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
pwsh-exec 1.0.1
{
"version": "1.0.1",
"transport": "stdio",
"identifier": "pwsh-exec",
"registryType": "pypi",
"environmentVariables": [
{
"name": "PWSH_EXEC_DEFAULT_DIR",
"format": "string",
"description": "Default working directory for commands (defaults to %TEMP%/pwsh-exec)."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"pwsh-exec-mcp": {
"command": "uvx",
"args": [
"pwsh-exec==1.0.1"
],
"env": {
"PWSH_EXEC_DEFAULT_DIR": "<YOUR_PWSH_EXEC_DEFAULT_DIR>"
}
}
}
}Cline
{
"mcpServers": {
"pwsh-exec-mcp": {
"command": "uvx",
"args": [
"pwsh-exec==1.0.1"
],
"env": {
"PWSH_EXEC_DEFAULT_DIR": "<YOUR_PWSH_EXEC_DEFAULT_DIR>"
}
}
}
}VS Code
{
"servers": {
"pwsh-exec-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"pwsh-exec==1.0.1"
],
"env": {
"PWSH_EXEC_DEFAULT_DIR": "<YOUR_PWSH_EXEC_DEFAULT_DIR>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"pwsh-exec-mcp": {
"command": "uvx",
"args": [
"pwsh-exec==1.0.1"
],
"env": {
"PWSH_EXEC_DEFAULT_DIR": "<YOUR_PWSH_EXEC_DEFAULT_DIR>"
}
}
}
}Let your agent find its tools
Find servers like pwsh-exec MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.