Windows CLI MCP Server Configuration & Usage Guide
Installationnpx
Risk LevelHigh Risk
API KeyNot Required
Clients3 supported
Windows PowerShell 和 CMD 命令执行,支持在 Windows 环境中运行脚本
Supported Clients
- Claude Desktop
- Cursor
- VS Code / Cline
Installation Command
npx -y win-cli-mcp-serverConfiguration Example
{
"mcpServers": {
"windows-cli": {
"command": "npx",
"args": [
"-y",
"win-cli-mcp-server"
]
}
}
}Permission Scope & Security Notes
可执行任意 Windows 命令(PowerShell/CMD),风险极高,仅在完全信任的环境中使用
- command-execution
- file-read
- file-write
- network-access
Risk Score:9/10
Common Errors
- 命令执行超时
- 长时间运行的命令可能超时,尝试拆分为多个短命令
- 权限不足
- 部分命令Required管理员权限,以管理员身份运行Clients
Sources
Recently Verified:2026-05-18。Client versions and configuration formats may change. Please refer to official documentation before use.
Related Tools
Filesystem
安全的文件系统操作,支持读写文件、创建目录、搜索文件和获取文件信息
Memory
A persistent memory system based on knowledge graphs, supporting entity and relationship storage and querying
Everything
MCP protocol testing and reference implementation, containing examples of all MCP features
Time
Time and timezone tool, supporting current time retrieval and timezone conversion