Windows CLI logo

Windows CLI

Free

在 Windows 系统上安全执行命令行(PowerShell, CMD, Git Bash)。

FreeFree tier
Inputs: textOutputs: text
Type
Open Source

About Windows CLI

Windows CLI MCP Server is a Model Context Protocol (MCP) server that enables secure command-line interactions on Windows systems. It provides controlled access to PowerShell, Command Prompt (CMD), and Git Bash shells, as well as remote systems via SSH. Designed for use with MCP clients like Claude Desktop, it allows AI assistants to execute commands with configurable security controls including directory restrictions, command blocking, and argument validation. Note: This project is deprecated and no longer maintained; users are directed to DesktopCommanderMCP for similar functionality.

Key Features

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 blocking (full paths, case variations), working directory validation, maximum command length limits, command logging and history tracking, smart argument validation
Configurable: Custom security rules, shell-specific settings, SSH connection profiles, path restrictions, blocked command lists
Integrates with MCP clients like Claude Desktop

Pros & Cons

Pros
  • Supports multiple shells (PowerShell, CMD, Git Bash) and SSH for remote execution
  • Comprehensive security controls to restrict commands and directories
  • Configurable via JSON for custom security rules and shell settings
  • Works with popular MCP clients like Claude Desktop
  • Lightweight and easy to set up with npx
Cons
  • Project is deprecated and no longer maintained; users should migrate to DesktopCommanderMCP
  • Provides direct system access, posing inherent security risks if misconfigured
  • Limited to Windows host environment for local shell execution
  • Requires manual configuration of security rules to prevent misuse

Best For

Enabling AI assistants to execute shell commands on Windows for automation and development tasksManaging remote Windows or Linux servers via SSH through an MCP clientControlled command execution for debugging, file management, and system administration

FAQ

What shells are supported?
The server supports PowerShell, Command Prompt (CMD), and Git Bash shells.
Is this project still maintained?
No, this project has been deprecated and is no longer maintained. The repository is archived and read-only. Users are directed to DesktopCommanderMCP for similar functionality.
How do I configure the server?
Configuration is done via a JSON file where you can set security controls, shell configurations, and SSH connections. You can generate a default config file using 'npx @simonb97/server-win-cli --init-config ./config.json' and then specify it with the --config flag.
Can I execute commands on remote systems?
Yes, the server supports SSH connections, allowing you to execute commands on remote systems via SSH.