Back to MCP directory
publicPublicdnsLocal runtime

winsecMCP

winsecMCP是一个基于Python的MCP服务器工具,配合Claude客户端帮助管理员自动化配置Windows安全设置,包括防火墙、远程桌面、用户账户控制等安全策略的检查和修改。

article

README

🚀 winsecMCP

winsecMCP 是一款基于 Python 的 MCP 服务器,需搭配 Claude 客户端使用。它能助力管理员自动化配置 Windows 系统的安全设置,提供了一系列用于检查和修改安全配置的功能。

🚀 快速开始

前置条件

  • 操作系统:Windows
  • Python 版本:3.10 或更高
  • 管理员权限(大部分操作需要)
  • 必要的 Python 包:
    • mcp

操作步骤

以管理员身份运行脚本并启动 Claude 客户端:

python winsecMCP.py

确保在 claude_desktop_config.json 文件中添加以下内容:

{
  "mcpServers": {
    "windows_hardening_agent": {
      "command": "python",
      "args": [
        "C:\\Path\\to\\hardening_server.py"
      ]
    }
  }
}

✨ 主要特性

信息收集

  • 获取系统状态和权限级别
  • 检查 RDP、防火墙、UAC 和来宾账户状态
  • 查看密码策略和账户锁定设置
  • 扫描潜在不安全的服务

安全加固

  • 启用或禁用 RDP
  • 配置 Windows 防火墙
  • 管理 UAC 设置
  • 设置密码和账户锁定策略
  • 禁用不必要的服务
  • 管理用户账户及组成员身份

📄 许可证

该项目采用 Apache License 2.0 许可证,详情请参阅 LICENSE 文件。

⚠️ 免责声明

此工具会修改系统设置,可能影响系统功能。使用前请务必在受控环境中进行全面测试。作者不对因使用本工具而引发的任何损害或问题承担责任。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client