Skip to main content
Glama
Super Windows CLI MCP Server

Super Windows CLI MCP Server

超级 Windows CLI MCP 服务器

Windows CLI MCP 服务器的增强分支,具有不受限制的系统访问功能。

增强功能

  • 通过系统服务安装获得完整的系统访问权限

  • 不受限制的命令执行

  • 网络级访问控制

  • 无限的处理能力

  • 自动恢复和容错

  • PowerShell 遥测已禁用

Related MCP server: Super Windows CLI MCP Server

安全声明

此版本消除了应用程序级的限制,转而支持网络级安全性。它专为需要完整系统访问权限的受信任环境而设计。

特征

  • 完全访问 Windows shell 环境(PowerShell、CMD、Git Bash)

  • 没有命令或参数限制

  • 完全文件系统访问

  • SYSTEM 级服务安装

  • 自动服务恢复

  • 网络绑定控制

  • 流程重用以提高性能

  • 延长长时间运行操作的超时时间

安装

  1. 构建项目:

npm install
npm run build
  1. 将构建的文件复制到您的 Windows 机器

  2. 以管理员身份运行安装脚本:

.\install-service.ps1

配置

该服务器配置了以下主要功能以实现最大功能:

  • 无命令限制

  • 完全文件系统访问

  • 禁用注入保护

  • 无限的流程资源

  • 网络级访问控制

  • SYSTEM 级权限

请参阅config.json了解完整配置。

服务管理

安装

.\install-service.ps1

移动

.\uninstall-service.ps1

网络安全

虽然应用程序级限制被取消,但仍有以下网络级保护措施:

  • 默认绑定 Localhost

  • 可配置允许的 IP 范围

  • 本地网络限制

  • 可选 VPN 集成

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

致谢

基于 SimonB97 的原始win-cli-mcp-server 。

Available Tools

4 tools
execute_commandB

Execute a command in the specified shell (powershell, cmd, or gitbash)

Example usage (PowerShell):

{
  "shell": "powershell",
  "command": "Get-Process | Select-Object -First 5",
  "workingDir": "C:\Users\username"
}

Example usage (CMD):

{
  "shell": "cmd",
  "command": "dir /b",
  "workingDir": "C:\Projects"
}

Example usage (Git Bash):

{
  "shell": "gitbash",
  "command": "ls -la",
  "workingDir": "/c/Users/username"
}

Inputs: shell (required), command (required), workingDir.

get_command_historyA

Get the history of executed commands

Example usage:

{
  "limit": 5
}

Example response:

[
  {
    "command": "Get-Process",
    "output": "...",
    "timestamp": "2024-03-20T10:30:00Z",
    "exitCode": 0
  }
]

Inputs: limit.

ssh_disconnectA

Disconnect from an SSH server

Example usage:

{
  "connectionId": "raspberry-pi"
}

Use this to cleanly close SSH connections when they're no longer needed.

Inputs: connectionId (required).

ssh_executeA

Execute a command on a remote host via SSH

Example usage:

{
  "connectionId": "raspberry-pi",
  "command": "uname -a"
}

Configuration required in config.json:

{
  "ssh": {
    "enabled": true,
    "connections": {
      "raspberry-pi": {
        "host": "raspberrypi.local",
        "port": 22,
        "username": "pi",
        "password": "raspberry"
      }
    }
  }
}

Inputs: connectionId (required), command (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 4 tools

    Disambiguation3/5

    The tools have some overlap in purpose that could cause confusion. execute_command and ssh_execute both execute commands but in different contexts (local vs remote), which might lead to misselection if the agent doesn't carefully distinguish between local and remote execution. However, get_command_history and ssh_disconnect are clearly distinct from the execution tools.

    Naming Consistency4/5

    The naming follows a mostly consistent verb_noun pattern with clear actions like execute, get, and disconnect. All tools use snake_case consistently. The minor deviation is that ssh_disconnect uses 'disconnect' while others use more specific verbs, but overall it's readable and predictable.

    Tool Count3/5

    With only 4 tools, the count feels borderline thin for a 'Super Windows CLI MCP Server' that implies broader command-line capabilities. It covers basic execution and SSH operations but lacks tools for file management, process control, or other common CLI tasks, making the scope seem underdeveloped.

    Completeness2/5

    There are significant gaps in the tool surface for a Windows CLI server. It includes command execution and SSH operations but misses core functionalities like file operations (e.g., copy, move, delete), process management (e.g., start, stop), system information retrieval, or network utilities. The SSH tools are incomplete without a corresponding ssh_connect tool to establish connections.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An enhanced MCP server that grants AI assistants the ability to execute terminal commands on a user's system with improved security controls, designed for use in controlled environments.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables remote filesystem and CLI access to a Windows machine over LAN through MCP, with file read/write and command execution capabilities.
      MIT