基本能力
产品定位
Windows Command Line MCP Server 是一个安全的中介服务,允许AI模型安全地与Windows系统交互,执行命令行操作和开发任务。
核心功能
- 增强安全性:
- 全面的命令白名单
- 严格的输入验证
- 防止破坏性系统操作
-
可配置的安全级别
-
开发工具支持:
- 为React、Node.js和Python创建项目
- 安全的开发环境交互
-
扩展的开发工作流命令支持
-
系统交互能力:
- 执行Windows CLI命令
- 运行PowerShell脚本
- 检索系统和网络信息
- 管理进程和服务
适用场景
- AI辅助的Windows系统管理
- 自动化开发环境设置
- 安全的命令行操作执行
- 系统信息监控和检索
工具列表
- execute_command: 运行Windows CLI命令
- execute_powershell: 执行PowerShell脚本
- create_project: 安全创建新开发项目
- list_running_processes: 检索活动系统进程
- get_system_info: 收集系统配置详情
- get_network_info: 检索网络适配器信息
- get_scheduled_tasks: 列出和查询系统任务
- get_service_info: 管理和查询Windows服务
- list_allowed_commands: 列出服务器可执行的所有命令
常见问题解答
- 安全性:默认只允许安全命令,阻止危险操作如磁盘格式化、用户管理等
- 配置:可通过指定允许的命令或使用配置标志自定义服务器行为
使用教程
使用依赖
- Node.js 16或更高版本
- npm或yarn
- Windows操作系统
安装教程
-
通过Smithery安装:
bash
npx -y @smithery/cli install @alxspiker/Windows-Command-Line-MCP-Server --client claude -
手动安装:
bash
git clone https://github.com/alxspiker/Windows-Command-Line-MCP-Server.git
cd Windows-Command-Line-MCP-Server
npm install
npm run build
调试方式
-
默认模式(使用预定义的安全命令):
bash
node dist/index.js -
指定允许的命令:
bash
node dist/index.js dir echo npm git -
扩展模式(谨慎使用):
bash
node dist/index.js --allow-all -
与Claude for Desktop集成:
- 构建服务器
- 添加到
claude_desktop_config.json
- 重启Claude for Desktop