win-cli-mcp-server

This repository provides an MCP server for Windows, enabling secure command-line interactions via PowerShell, CMD, Git Bash, and SSH. It allows controlled access for MCP clients to perform operations on your system.

147
19

Windows CLI MCP Server

This project provides a secure MCP server for Windows command-line interactions, enabling controlled access to PowerShell, CMD, Git Bash, and remote systems via SSH. It allows MCP clients like Claude Desktop to perform operations on your system, similar to Open Interpreter.

The server features multi-shell and SSH support, resource exposure, and configurable security controls such as command/SSH command blocking, working directory validation, command length limits, logging, and argument validation. It's configurable with custom security rules, shell-specific settings, SSH connection profiles, and path restrictions.

Configuration is done via a JSON file, with default locations checked. The default configuration is restrictive, blocking dangerous commands and limiting access. The API provides tools for command execution, history retrieval, SSH management, and resource access (SSH connections, current directory, CLI configuration). Security considerations include environment/file system access. The project is licensed under the MIT License.

Repository

SI
SimonB97

SimonB97/win-cli-mcp-server

Created

December 4, 2024

Updated

March 28, 2025

Language

JavaScript

Category

System Tools