mcp-server-win-cli
Verified Safeby quanticsoul4772
Overview
MCP server for secure command-line interactions on Windows systems, enabling controlled access to PowerShell, CMD, Git Bash shells, and remote systems via SSH. It allows MCP clients (like Claude Desktop) to perform operations on your system.
Installation
npx -y @quanticsoul4772/mcp-server-win-cliEnvironment Variables
- USERNAME
- USER
- USERPROFILE
- PATH
- LD_PRELOAD
- LD_LIBRARY_PATH
- DYLD_INSERT_LIBRARIES
- DYLD_LIBRARY_PATH
- AWS_SECRET_ACCESS_KEY
- ANTHROPIC_API_KEY
- OPENAI_API_KEY
- PASSWORD
- TOKEN
- SECRET
Security Notes
The project demonstrates an extremely strong security posture with a 'security-first' and 'fail-closed' design. It implements a multi-stage (9-step) command validation pipeline, including advanced Unicode attack detection (e.g., BiDi control characters, homoglyphs, zero-width characters, PowerShell Unicode quotes), explicit blocking of dangerous commands and arguments, strict path canonicalization and restriction (intersection-merged allowedPaths, TOCTOU protection), and comprehensive error message sanitization to prevent information disclosure. SSH connections enforce host key verification (TOFU/strict mode) and network diagnostic tools include SSRF and port scanning protection (IP range blocking, port whitelisting). Environment variable access is controlled via configurable blocklists/allowlists, and values are validated for dangerous content. Process listing is disabled by default due to its security implications. While highly robust, no system handling direct CLI access can be entirely impenetrable, hence a 9/10.
Similar Servers
ssh-mcp-server
Enables AI assistants to securely execute remote SSH commands and perform file transfers on target servers via the Model Context Protocol (MCP).
toolhive-studio
ToolHive is a desktop application that simplifies the discovery, deployment, and management of Model Context Protocol (MCP) servers in secure containers, and connects them to AI agents and clients.
mcp-ssh-manager
Manages remote SSH servers via the Model Context Protocol (MCP), enabling AI assistants like Claude Code and OpenAI Codex to execute commands, transfer files, monitor health, and automate DevOps tasks.
ssh-mcp-server
Enables AI assistants to securely interact with remote SSH servers for command execution, file transfers, and port forwarding.