Windows System MCP

Windows System MCP

A comprehensive Model Context Protocol server that enables AI assistants to interact with and manage Windows systems, providing capabilities for file system operations, process management, system information retrieval, registry operations, service management, network diagnostics, and performance monitoring.

Category
访问服务器

README

🖥️ Windows System MCP

NPM Version NPM Downloads License TypeScript Node.js

A comprehensive Model Context Protocol (MCP) server that provides AI models with powerful Windows system management capabilities. This MCP enables AI assistants to interact with Windows systems through a secure, well-structured interface.

✨ Features

📁 File System Management

  • Directory Browsing: Navigate and explore directory structures
  • File Operations: Read files, get file information, and search for files
  • Disk Analysis: Monitor disk usage and find large files
  • Advanced Search: Pattern-based file searching with recursive options

⚙️ Process Management

  • Process Monitoring: List and monitor running processes
  • Resource Tracking: Track CPU and memory usage by process
  • Process Control: Start, stop, and manage processes
  • Process Tree: Visualize parent-child process relationships

🔧 System Information

  • Hardware Details: CPU, memory, disk, and network adapter information
  • OS Information: Windows version, updates, and system configuration
  • Environment: Environment variables and system paths
  • User Management: User accounts and current user information

📋 Registry Operations

  • Registry Reading: Access Windows registry keys and values
  • System Configuration: Retrieve system settings from registry
  • Startup Programs: List programs that start with Windows
  • Installed Software: Enumerate installed applications

🛠️ Service Management

  • Service Control: Start, stop, and restart Windows services
  • Service Monitoring: Monitor service status and dependencies
  • Startup Services: Manage services that start automatically
  • Service Search: Find services by name or description

🌐 Network Operations

  • Network Diagnostics: Ping, traceroute, and connectivity testing
  • Port Scanning: Check open ports and network connections
  • Network Configuration: View adapters, IP configuration, and routing
  • WiFi Management: List and manage WiFi profiles

📊 Performance Monitoring

  • Real-time Metrics: CPU, memory, disk, and network performance
  • Resource Analysis: Identify top resource-consuming processes
  • Performance Counters: Access Windows performance counters
  • System Health: Monitor overall system performance

📥 Installation

# Global installation (recommended)
npm install -g windows-system-mcp

# Or use directly with npx
npx windows-system-mcp

🚀 Quick Start

Prerequisites

  • Windows 10/11
  • Node.js 18+
  • PowerShell 5.1+

Installation Options

Option 1: Install from NPM (Recommended)

npm install -g windows-system-mcp

Option 2: Build from Source

  1. Clone the repository:

    git clone https://github.com/guangxiangdebizi/windows-system-mcp.git
    cd windows-system-mcp
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Local Development (Stdio)

If installed globally:

windows-system-mcp

If built from source:

npm start

Development

For development with auto-rebuild:

npm run dev

SSE Deployment (Supergateway)

If installed globally:

npx supergateway --stdio "windows-system-mcp" --port 3100

If built from source:

npm run sse

This will start the server on http://localhost:3100/sse

🔧 Configuration

Claude Desktop Integration

Stdio Configuration

If installed globally:

{
  "mcpServers": {
    "windows-system-mcp": {
      "command": "windows-system-mcp"
    }
  }
}

If built from source:

{
  "mcpServers": {
    "windows-system-mcp": {
      "command": "node",
      "args": ["path/to/windows-system-mcp/build/index.js"]
    }
  }
}

SSE Configuration

{
  "mcpServers": {
    "windows-system-mcp": {
      "type": "sse",
      "url": "http://localhost:3100/sse",
      "timeout": 600
    }
  }
}

Note: For SSE mode, start the server first using the commands shown in the deployment section above.

📖 Usage Examples

File System Operations

// List directory contents
{
  "action": "list_directory",
  "path": "C:\\Users",
  "recursive": true,
  "max_depth": 2
}

// Search for files
{
  "action": "search_files",
  "pattern": "*.log",
  "path": "C:\\Windows\\Logs",
  "recursive": true
}

// Find large files
{
  "action": "find_large_files",
  "path": "C:\\",
  "size_threshold": 500
}

Process Management

// List running processes
{
  "action": "list_processes",
  "sort_by": "cpu",
  "limit": 20
}

// Get process details
{
  "action": "get_process_details",
  "process_name": "chrome"
}

// Kill a process
{
  "action": "kill_process",
  "process_id": 1234
}

System Information

// Get system overview
{
  "action": "get_system_overview"
}

// Get hardware information
{
  "action": "get_hardware_info",
  "category": "cpu"
}

// Get environment variables
{
  "action": "get_environment_vars",
  "filter": "PATH"
}

Network Operations

// Ping a host
{
  "action": "ping_host",
  "host": "google.com",
  "count": 4
}

// Scan ports
{
  "action": "scan_open_ports",
  "host": "localhost",
  "port_range": "80,443,3000-3010"
}

// Get network adapters
{
  "action": "get_network_adapters"
}

🛡️ Security Considerations

  • Principle of Least Privilege: Run with minimal required permissions
  • Input Validation: All inputs are validated and sanitized
  • Safe Operations: Read-only operations are prioritized
  • Error Handling: Comprehensive error handling prevents system exposure
  • Audit Trail: All operations can be logged for security auditing

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Add tests if applicable
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to the branch: git push origin feature/amazing-feature
  7. Open a Pull Request

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

🔗 Links

👨‍💻 Author

Xingyu Chen

🙏 Acknowledgments

  • Model Context Protocol for the excellent MCP framework
  • The Windows PowerShell team for providing powerful system management capabilities
  • The TypeScript and Node.js communities for excellent tooling

📊 Project Stats

  • NPM Package: Available as windows-system-mcp
  • Language: TypeScript
  • Runtime: Node.js
  • Platform: Windows
  • License: Apache 2.0
  • MCP Version: 0.6.0

<div align="center"> <strong>Built with ❤️ for the AI and Windows communities</strong> </div>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选