Home / MCP / Windows CLI MCP Server
Provides a Windows MCP server to securely run PowerShell, CMD, and Git Bash locally and via SSH for MCP clients.
Configuration
View docs{
"mcpServers": {
"windows_cli": {
"command": "npx",
"args": [
"-y",
"@simonb97/server-win-cli"
]
}
}
}The Windows CLI MCP Server lets you securely execute commands and manage remote systems from MCP clients. It supports PowerShell, CMD, and Git Bash locally, and can run commands on remote machines via SSH, all under configurable security rules to limit access and exposure.
Integrate the Windows CLI MCP Server with your MCP client to run Windows shell commands and manage SSH connections. Add a server entry in your client configuration to invoke the MCP server via npx and the package name, then start using the available shells to execute commands, view SSH connections, and manage server configuration from the client.
Prerequisites: ensure Node.js and npm are installed on your system.
Install or invoke the MCP server using your MCP client workflow. The server is run through npx with the package name shown below.
// Initialize via Claude Desktop config example (no separate install step needed if you use npx directly)Add this to your Claude Desktop configuration to expose the Windows CLI MCP Server through the client.
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": ["-y", "@simonb97/server-win-cli"]
}
}
}If you want to point to a dedicated config file, include the --config flag in the startup command.
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": [
"-y",
"@simonb97/server-win-cli",
"--config",
"path/to/your/config.json"
]
}
}
}Execute a command in the specified shell and return output or error text.
Retrieve the history of previously executed commands with optional limit.
Run a command on a remote system via an SSH connection.
Disconnect from an active SSH session.
Create a new SSH connection profile with host, port, and credentials.
List all configured SSH connections.
Update an existing SSH connection profile.
Delete an SSH connection profile.
Return the current working directory of the server.
Read and expose the CLI server configuration including security and shells.