Windows CLI MCP Server logo

Windows CLI MCP Server

by SimonB97

Windows CLI MCP Server enables secure command-line interactions on Windows systems. It allows controlled access to PowerShell, CMD, Git Bash shells, and remote systems via SSH for MCP clients.

View on GitHub

Last updated: N/A

What is Windows CLI MCP Server?

This is an MCP server for secure command-line interactions on Windows systems. It provides controlled access to various shells and remote systems via SSH, allowing MCP clients to perform operations on your system.

How to use Windows CLI MCP Server?

Configure the server using a JSON configuration file. You can specify security controls, shell configurations, and SSH connections. Integrate it with MCP clients like Claude Desktop by adding the server configuration to the client's configuration file.

Key features of Windows CLI MCP Server

  • Multi-Shell Support (PowerShell, CMD, Git Bash)

  • SSH Support for remote command execution

  • Resource Exposure (SSH connections, current directory, configuration)

  • Configurable security rules, shell-specific settings, and SSH connection profiles

  • Command and SSH command blocking

  • Working directory validation

  • Command logging and history tracking

Use cases of Windows CLI MCP Server

  • Securely automate tasks on Windows systems

  • Enable remote access to Windows command-line tools

  • Integrate Windows command-line functionality with MCP clients

  • Manage and control access to sensitive system resources

  • Provide a secure interface for AI agents to interact with Windows systems

FAQ from Windows CLI MCP Server

What is an MCP server?

An MCP (Model Context Protocol) server allows secure and controlled interaction between a client (like an AI agent) and a system's resources, such as the command line.

How do I configure the server?

The server uses a JSON configuration file. You can create a default config file using the provided example or by running the init command. Then, specify the config file path using the --config flag.

What security features are included?

The server includes command blocking, argument blocking, command injection protection, working directory restriction, command length limit, command timeout, command logging, and smart path parsing.

Can I use this server to execute commands on remote systems?

Yes, the server supports SSH connections, allowing you to execute commands on remote systems. You can configure SSH connection profiles in the configuration file.

How do I integrate this server with Claude Desktop?

Add the server configuration to your claude_desktop_config.json file, specifying the command and arguments to start the server.