PC Manager

PC Manager

AI-powered PC management system with 80+ MCP tools for Cursor, Claude, and other AI agents.

Category
访问服务器

README

PC Manager

AI-powered PC management system with 80+ MCP tools for Cursor, Claude, and other AI agents.

PC Manager bridges the gap between AI and your operating system. It provides a comprehensive REST API, a web dashboard, and an MCP (Model Context Protocol) server that gives AI agents full control over your Windows PC.


Features

System Monitoring

  • Real-time CPU, memory, disk, and network monitoring
  • Live charts with usage history
  • System information and uptime tracking

File Management

  • Browse, create, rename, move, copy, delete files and folders
  • Built-in file viewer and editor
  • Drive listing with usage info

Process & Service Control

  • List, filter, and kill processes
  • Start, stop, restart Windows services
  • Process memory and CPU tracking

Network

  • Interface listing with IP addresses
  • Active connection monitoring
  • Traffic statistics
  • Ping, DNS resolve, port scan, Wake-on-LAN

Shell

  • Execute PowerShell commands remotely via web UI or API
  • Command history with arrow key navigation

Power Management

  • Lock, sleep, restart, shutdown with confirmation
  • Power plan and battery status

Programs & Environment

  • List installed programs and startup items
  • View and edit environment variables
  • PATH analysis with existence checks

Task Scheduler

  • List and run scheduled tasks

Registry

  • Read and write Windows registry values

Security & Admin

  • API key authentication
  • Danger level system (LOW / MEDIUM / HIGH / CRITICAL)
  • Action logging and audit history
  • Admin Bridge for elevated privilege execution

Hardware & Sensors

  • GPU info (NVIDIA)
  • Disk health (SMART)
  • USB devices, Bluetooth, printers
  • Camera capture, microphone recording

Screen & GUI Control

  • Screenshot capture
  • Mouse click and move
  • Keyboard input
  • Window management (list, focus)
  • Clipboard read/write

Docker & Package Management

  • Docker container management
  • Winget package search and install
  • WiFi network listing and connection

Email Integration

  • IMAP/SMTP email access (Naver, Gmail, etc.)
  • Read, search, send, delete emails
  • Folder listing

AI Agent

  • Natural language to API translation
  • OpenAI Function Calling compatible schema
  • Chat interface in web dashboard

Architecture

+------------------+     +------------------+     +------------------+
|   Web Dashboard  |     |    AI Agents     |     |   External Apps  |
|  (localhost:7777)|     | (Cursor/Claude)  |     |   (GPT/Gemini)   |
+--------+---------+     +--------+---------+     +--------+---------+
         |                         |                        |
         |    REST API (/api/*)    |     MCP Protocol       |
         +------------+------------+----------+-------------+
                      |                       |
              +-------v-------+       +-------v-------+
              |   Flask App   |       |  MCP Server   |
              |   (app.py)    |       |(mcp_server.py)|
              +-------+-------+       +-------+-------+
                      |                       |
              +-------v-----------------------v-------+
              |          Core Modules                  |
              |  system | files | processes | network  |
              |  shell | power | registry | docker    |
              |  screen | senses | email | admin      |
              +---------------------------------------+
              |          Windows OS (PowerShell)       |
              +---------------------------------------+

Quick Start

Prerequisites

  • Windows 10/11
  • Python 3.11+
  • pip

Installation

# Clone the repository
git clone https://github.com/yourusername/pc-manager.git
cd pc-manager

# Install dependencies
pip install -r requirements.txt

# Run the web dashboard
python app.py

Open http://localhost:7777 in your browser.

MCP Server Setup (Cursor / Claude Desktop)

  1. Add to your MCP configuration:
{
  "mcpServers": {
    "pc-manager": {
      "command": "python",
      "args": ["path/to/pc-manager/mcp_server.py"]
    }
  }
}
  1. Restart Cursor or Claude Desktop
  2. You now have 80+ tools available to your AI agent

Email Setup (Optional)

  1. Copy the example config:
cp mail_config.example.json mail_config.json
  1. Edit mail_config.json with your email credentials:
    • For Naver Mail: Enable IMAP in settings, generate an app password
    • For Gmail: Enable IMAP, use app-specific password

Admin Bridge Setup (Optional)

For operations requiring elevated privileges:

powershell -ExecutionPolicy Bypass -File admin_bridge/setup_admin_bridge.ps1

API Documentation

Once the server is running, visit:

  • Swagger UI: http://localhost:7777/api/docs
  • OpenAI Schema: http://localhost:7777/api/agent/openai-schema

API Endpoints Overview

Category Endpoint Description
System /api/system/* System info, stats, uptime
Files /api/files/* File operations
Processes /api/processes/* Process management
Services /api/services/* Service control
Network /api/network/* Network monitoring
Disk /api/disk/* Disk analysis
Shell /api/shell/* Command execution
Power /api/power/* Power management
Programs /api/programs/* Installed programs
Environment /api/env/* Environment variables
Scheduler /api/scheduler/* Task scheduler
Registry /api/registry/* Registry operations
Docker /api/docker/* Container management
Screen /api/screen/* Screenshot, GUI control
Hardware /api/hardware/* GPU, USB, Bluetooth
Admin /api/admin/* Elevated execution

MCP Tools (80+)

When connected via MCP, AI agents can use tools including:

Tool Description
get_system_info Get OS, CPU, memory details
get_system_stats Real-time CPU/memory/disk usage
list_files Browse directory contents
read_file / write_file Read and write files
search_files Search by filename
list_processes / kill_process Process management
list_services / control_service Service management
execute_command Run PowerShell commands
take_screenshot Capture screen
mouse_click / keyboard_type GUI automation
mail_list / mail_send Email operations
docker_containers Docker management
ping_host / port_scan Network diagnostics
power_action Lock, sleep, restart, shutdown
... and 60+ more

Project Structure

pc-manager/
├── app.py                 # Flask entry point
├── config.py              # Configuration
├── mcp_server.py          # MCP server (80+ tools)
├── requirements.txt       # Python dependencies
├── api/                   # REST API modules
│   ├── system.py          # System info & stats
│   ├── files.py           # File management
│   ├── processes.py       # Process management
│   ├── services.py        # Service control
│   ├── network.py         # Network monitoring
│   ├── disk.py            # Disk analysis
│   ├── shell.py           # Shell execution
│   ├── power.py           # Power management
│   ├── agent.py           # AI agent bridge
│   └── ...                # 15+ more modules
├── core/                  # Core utilities
│   ├── security.py        # Authentication
│   ├── history.py         # Action logging
│   └── admin_bridge.py    # Elevated execution
├── admin_bridge/          # Admin elevation scripts
├── static/                # Frontend assets
│   ├── css/style.css
│   └── js/app.js
├── templates/
│   └── index.html         # Web dashboard
└── .cursor/
    └── mcp.json           # MCP configuration

Security Notice

  • The API runs on localhost only by default
  • All operations are authenticated via API key
  • Dangerous operations (kill process, shutdown, delete) require confirmation
  • Action history is logged for auditing
  • Do not expose this server to the public internet without additional security measures

Tech Stack

  • Backend: Python, Flask, Flask-RESTX, psutil
  • Frontend: Vanilla JS, Chart.js, Lucide Icons, Inter Font
  • AI Integration: MCP (Model Context Protocol), OpenAI Function Calling
  • System: PowerShell, Windows API, pyautogui

License

MIT License - see LICENSE for details.


Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选