Win Cli MCP Server

MCP server for Windows CLI interactions

Local serverstdio

What is the Win Cli MCP Server?

MCP server for Windows CLI interactions

What it actually does

See the API section for more details on the tools and resources the server provides to MCP clients.

  • Multi-Shell Support — Execute commands in PowerShell, Command Prompt (CMD), and Git Bash
  • SSH Support — Execute commands on remote systems via SSH
  • Resource Exposure — View SSH connections, current directory, and configuration as MCP resources
  • Security Controls —
  • Command and SSH command blocking (full paths, case variations)
  • Working directory validation

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
execute_commandExecute a command in the specified shell
Inputs:connectionId (string): ID of the SSH connection to update
workingDiroptional string): Working directory
get_command_historyGet the history of executed commands
ssh_executeExecute a command on a remote system via SSH
ssh_disconnectDisconnect from an SSH server
Input:connectionId (string): ID of the SSH connection to delete
create_ssh_connectionCreate a new SSH connection
read_ssh_connectionsRead all configured SSH connections
update_ssh_connectionUpdate an existing SSH connection
delete_ssh_connectionDelete an SSH connection
get_current_directoryGet the current working directory of the server

How to install the Win Cli MCP Server

{
  "mcpServers": {
    "windows-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@simonb97/server-win-cli"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Win Cli to execute command.”
  • “Use Win Cli to Inputs.”
  • “Use Win Cli to get command history.”

Frequently asked questions

MCP server for Windows CLI interactions Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.