win-cli-mcp-server
by mhprol·★ 0·Score 36
A hardened MCP server for Windows CLI and SSH interactions with critical bug fixes and security improvements.
Overview
This is a maintained fork of the original win-cli-mcp-server that addresses critical issues in the original project. It provides controlled access to PowerShell, CMD, Git Bash, and remote systems via SSH from MCP clients. The server includes numerous improvements such as fixing GUI window popups, SSH event listener leaks, and properly handling SSH stderr. It also updates dependencies, removes dead code, and implements better security measures. The configuration is flexible, allowing users to restrict paths, block commands, and set timeouts for security.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this fork when you need reliable Windows CLI access through MCP and the original project has issues with stability or security.
When NOT to choose this
Avoid if you're working on non-Windows systems or need cross-platform CLI access, as this is specifically designed for Windows environments.
Tools this server exposes
4 tools extracted from the READMEexecute_commandRun a command in PowerShell, CMD, or Git Bash
get_command_historyRetrieve history of executed commands
ssh_executeExecute a command on a configured remote host
ssh_disconnectClose an SSH connection
Comparable tools
Installation
Installation
Add to your claude_desktop_config.json:
{
"mcpServers": {
"win-cli": {
"command": "node",
"args": [
"C:/path/to/win-cli-mcp-server/dist/index.js",
"--config",
"C:/path/to/win-cli-mcp-server/config.json"
]
}
}
}Or clone and set up:
git clone https://github.com/mhprol/win-cli-mcp-server.git
cd win-cli-mcp-server
npm install
npm run buildFAQ
- How is this different from the original win-cli-mcp-server?
- This is a hardened fork that fixes critical bugs, updates dependencies, addresses security issues, and is actively maintained. The original project is no longer developed.
- What authentication methods are supported for SSH connections?
- SSH authentication priority: explicit key > password > ssh-agent (automatic). The config validation has been improved to make ssh-agent optional.
- Can I prevent execution of certain commands?
- Yes, you can populate the `blockedCommands` and `blockedArguments` arrays in your config, and set `blockedOperators` per shell type.
Compare win-cli-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.