MCP Catalogs
Home

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.

developer-toolssecurityops-infra
0
Forks
0
Open issues
2 mo ago
Last commit
2d ago
Indexed

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:

you:Automating Windows system administration tasks through Claude Desktop
you:Executing commands on remote Linux/Unix servers via SSH
you:Securely running development environments and build processes
you:How is this different from the original win-cli-mcp-server?
you:What authentication methods are supported for SSH connections?
you:Can I prevent execution of certain commands?

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 README
  • execute_command

    Run a command in PowerShell, CMD, or Git Bash

  • get_command_history

    Retrieve history of executed commands

  • ssh_execute

    Execute a command on a configured remote host

  • ssh_disconnect

    Close an SSH connection

Comparable tools

shell-mcpexec-serverwindows-subsystem-for-linux-mcp

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 build

FAQ

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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.