pwsh-exec-mcp
About
A minimal, transparent PowerShell 7 MCP for Windows — one tool: raw exit code, stdout, stderr.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
PWSH_EXEC_DEFAULT_DIRClaude Code
claude mcp add --env PWSH_EXEC_DEFAULT_DIR= pwsh-exec-mcp -- uvx pwsh-exec
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"pwsh-exec-mcp","command":"uvx","args":["pwsh-exec"],"env":{"PWSH_EXEC_DEFAULT_DIR":""}}'
JSON
{
"mcpServers": {
"pwsh-exec-mcp": {
"command": "uvx",
"args": [
"pwsh-exec"
],
"env": {
"PWSH_EXEC_DEFAULT_DIR": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.