{"type":"mcp_server","name":"win-cli-mcp-server","description":"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.","category":"System Tools","language":"JavaScript","stars":268,"forks":19,"owner":"SimonB97","github_url":"https://github.com/SimonB97/win-cli-mcp-server","homepage":null,"setup":"## Setup\n\n1.  To create a default config file, either:\n\n    **a)** copy `config.json.example` to `config.json`, or\n\n    **b)** run:\n\n    ```bash\nnpx @simonb97/server-win-cli --init-config ./config.json\n    ```\n\n2. Then set the `--config` flag to point to your config file as described in the [Usage with Claude Desktop](#usage-with-claude-desktop) section.\n\nAdd this to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"windows-cli\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@simonb97/server-win-cli\"]\n    }\n  }\n}\n```\n\nFor use with a specific config file, add the `--config` flag:\n\n```json\n{\n  \"mcpServers\": {\n    \"windows-cli\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@simonb97/server-win-cli\",\n        \"--config\",\n        \"path/to/your/config.json\"\n      ]\n    }\n  }\n}\n```","tools":"## Available Tools\n\n1.  Multi-Shell Support (Execute commands in PowerShell, Command Prompt (CMD), and Git Bash)\n2.  SSH Support (Execute commands on remote systems via SSH)\n3.  Resource Exposure (View SSH connections, current directory, and configuration as MCP resources)\n4.  Security Controls (Command and SSH command blocking, working directory validation, command length limits, command logging, smart argument validation)\n5.  Configurable (Custom security rules, shell-specific settings, SSH connection profiles, path restrictions, blocked command lists)\n6.  execute_command (Execute a command in the specified shell)\n7.  get_command_history (Get the history of executed commands)\n8.  ssh_execute (Execute a command on a remote system via SSH)\n9.  ssh_disconnect (Disconnect from an SSH server)\n10. create_ssh_connection (Create a new SSH connection)\n11. read_ssh_connections (Read all configured SSH connections)\n12. update_ssh_connection (Update an existing SSH connection)\n13. delete_ssh_connection (Delete an SSH connection)\n14. get_current_directory (Get the current working directory of the server)","faq":null,"created_at":"2024-12-04T13:14:23+00:00","updated_at":"2025-03-28T10:31:03+00:00","source_url":"https://model-context-protocol.com/servers/windows-secure-command-line-mcp-server","related_articles":[]}