Windows CLI
MCP server for secure command-line interactions on Windows systems, enabling controlled access to PowerShell, CMD, and Git Bash shells.
Overview
Windows CLI is a secure MCP server designed for controlled command-line interactions on Windows systems, allowing access to PowerShell, CMD, Git Bash, and remote systems via SSH.
To use Windows CLI, configure it by creating a JSON configuration file specifying security controls, then execute commands via MCP clients like Claude Desktop using npx @simonb97/server-win-cli.
- Multi-shell support: Execute commands in PowerShell, CMD, and Git Bash. - SSH support: Control remote systems via SSH. - Robust security controls: Includes command and SSH command blocking, path restrictions, command logging, and smart argument validation.
- Securely executing scripts in various command-line environments.
- Managing remote servers through SSH seamlessly.
- Logging and auditing command history for security compliance.
Add to your AI client
Use these steps to connect Windows CLI in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-windows-cli"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-windows-cli"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-windows-cli"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"windows-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-windows-cli"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-windows-cli"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-windows-cli"
]
}
}
}FAQ
Is Windows CLI safe to use?
Yes, Windows CLI includes various security controls to restrict command execution and access paths to ensure safety.
Can I customize the settings?
Absolutely! You can specify custom rules, shell-specific settings, and SSH connection profiles in the configuration file.
What happens if I don’t configure it?
The server will run with a default restrictive configuration to protect your system.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":66,"uuid":"deb3b518-3aad-4134-b8fb-889287151a12","name":"windows-cli","title":"Windows CLI","description":"MCP server for secure command-line interactions on Windows systems, enabling controlled access to PowerShell, CMD, and Git Bash shells.","avatar_url":"https://r2.trys.ai/imgs/w0wnqmje-1733451349755.png","created_at":"$D2024-12-05T16:27:19.593Z","updated_at":"$D2024-12-13T07:46:51.725Z","status":"created","author_name":"","author_avatar_url":"","tags":"windows-cli,command-line,MCP-server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/SimonB97/win-cli-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]