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
Bridging AI assistants to remote SSH server operations for command execution, file transfer, and server status retrieval via the Model Context Protocol (MCP).
ssh-mcp-server
Provides secure SSH capabilities (command execution, SFTP, port forwarding, templates) for AI assistants to manage remote servers.
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
Provides secure remote server management capabilities, including SSH connection, command execution, and SFTP file transfers, via the MCP protocol for integration with AI agents.