Overview
Windows CLI MCP Server is a tool designed for secure command-line interactions on Windows systems, allowing controlled access to PowerShell, CMD, Git Bash shells, and remote systems via SSH.
To use the server, configure it with a JSON file specifying security settings and shell configurations, then connect it to MCP clients like Claude Desktop to execute commands securely.
- Multi-shell support for PowerShell, CMD, and Git Bash. - SSH support for executing commands on remote systems. - Comprehensive security controls including command blocking, working directory validation, and command logging. - Customizable configuration for security rules and shell settings.
- Securely managing remote servers via SSH.
- Executing commands in a controlled environment to prevent unauthorized access.
- Integrating with other applications for automated command execution.
Add to your AI client
Use these steps to connect Windows CLI MCP Server 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": {
"simonb97-win-cli-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-simonb97-win-cli-mcp-server-mcp-mirror"
]
}
}
}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": {
"simonb97-win-cli-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-simonb97-win-cli-mcp-server-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"simonb97-win-cli-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-simonb97-win-cli-mcp-server-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"simonb97-win-cli-mcp-server-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-simonb97-win-cli-mcp-server-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"simonb97-win-cli-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-simonb97-win-cli-mcp-server-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"simonb97-win-cli-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-simonb97-win-cli-mcp-server-mcp-mirror"
]
}
}
}FAQ
Is the server secure?
Yes, it includes multiple security features to restrict command execution and access.
Can I customize the configuration?
Yes, you can specify custom security rules and shell settings in the configuration file.
What happens if I don't configure it?
The server will use a default restrictive configuration to ensure security.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":713,"uuid":"00fba6b0-9c78-4e92-9cc4-517ce827d4b8","name":"SimonB97_win-cli-mcp-server","title":"Windows CLI MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:27:18.907Z","updated_at":"2025-02-23T07:16:04.183Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"windows-cli,mcp-server,command-line","category":"os-automation","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/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"}]]}]