Back to Home
quanticsoul4772 icon

mcp-server-win-cli

Verified Safe

by 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

Run Command
npx -y @quanticsoul4772/mcp-server-win-cli

Environment 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

Stats

Interest Score25
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars1
Forks0
Last Update2025-11-19

Tags

MCPWindowsCLISSHAutomationSecurityDeveloper ToolsSystem Monitoring