Windows CLI MCP Server
MCP server for secure command-line interactions on Windows systems, providing controlled access to PowerShell, CMD, and Git Bash shells, as well as remote systems via SSH with comprehensive security measures.
Get this MCP server
MCP server for secure command-line interactions on Windows systems, providing controlled access to PowerShell, CMD, and Git Bash shells, as well as remote systems via SSH with comprehensive security measures.
Installation
NPX
npx -y @simonb97/server-win-cli
Configuration Initialization
npx @simonb97/server-win-cli --init-config ./config.json
Configuration
Claude Desktop Basic
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": ["-y", "@simonb97/server-win-cli"]
}
}
}
Claude Desktop with Configuration
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": [
"-y",
"@simonb97/server-win-cli",
"--config",
"path/to/your/config.json"
]
}
}
}
Available Tools
| Tool | Description |
|---|---|
execute_command |
Execute a command in the specified shell (PowerShell, CMD, or Git Bash) with optional working directory... |
get_command_history |
Retrieve the history of executed commands with an optional limit parameter |
ssh_execute |
Execute a command on a remote system via SSH using a configured connection |
ssh_disconnect |
Disconnect from an SSH server using the connection ID |
create_ssh_connection |
Create a new SSH connection with configuration details |
read_ssh_connections |
Read all configured SSH connections from the configuration |
update_ssh_connection |
Update an existing SSH connection configuration |
delete_ssh_connection |
Delete an SSH connection using the connection ID |
get_current_directory |
Get the server's current working directory |
Capabilities
- Support for multiple shells: PowerShell, Command Prompt (CMD), and Git Bash
- SSH support for executing commands on remote systems
- Resource exposure for viewing SSH connections, current directory, and configuration
- Command and SSH command blocking with full paths and case variations
- Working directory validation and path restrictions
- Maximum command length limits and timeout control
- Command logging and history tracking
- Smart argument validation and injection protection
- Customizable security rules and shell-specific settings
- SSH connection profiles with keepalive and timeout management
Usage Examples
Execute commands directly using the available tools
View configured SSH connections and server configuration in the Resources section
Manage SSH connections through the provided tools
Notes
PROJECT DEPRECATED - No longer maintained. Use https://github.com/wonderwhy-er/DesktopCommanderMCP instead. Provides direct access to system command-line and remote SSH systems with comprehensive security measures, including command blocking, directory restrictions, and injection protection. A configuration file is required to set up security parameters.