Skip to main content
Glama
krsnmlna1

PC-Control MCP Server

by krsnmlna1

πŸ–₯️ PC-Control MCP Server

An MCP tool server that gives Claude Desktop control of a Windows machine β€” shell execution, system stats, audio and power, screenshots, window and process management.

How it works

The server is the tool side of an agent loop. It does not decide when to act; it publishes a set of callable tools and executes them when the client asks.

Claude Desktop  ──MCP/stdio──▢  FastMCP server (main.py)
                                      β”‚
                                      β”œβ”€β”€ tools/shell.py         execute_command
                                      β”œβ”€β”€ tools/system.py        get_system_status
                                      β”œβ”€β”€ tools/audio.py         manage_volume
                                      β”œβ”€β”€ tools/power.py         manage_power
                                      β”œβ”€β”€ tools/app_launcher.py  launch_application
                                      β”œβ”€β”€ tools/processes.py     get_process_list
                                      β”œβ”€β”€ tools/screen.py        take_screenshot
                                      └── tools/window.py        list_windows, manage_window

Each tool is registered with an @mcp.tool() decorator over a plain typed function:

@mcp.tool()
def system_manage_volume(action: str, level: int = None) -> str:
    """
    Control system audio volume.
    Args:
        action: 'set', 'get', 'mute', 'unmute'
        level: 0-100 (required for 'set')
    """
    return manage_volume(action, level)

The signature and docstring are the tool schema β€” that is how the client discovers what exists, what arguments it takes, and when to call it. Which means the docstring is an interface contract, not a comment: a vague one produces a tool the model calls at the wrong time.

Two design choices worth naming:

  • Transport separated from behaviour. main.py holds only registration; every tool body lives in tools/. So verify_tools.py can exercise the tools directly, without an LLM in the loop β€” when something misbehaves, that separates "the tool is broken" from "the model called it wrong."

  • Destructive actions are explicit. Power management takes an action enum that includes abort, so a shutdown started by mistake can be cancelled.

web-frontend-mcp/ is a second, separate server covering browser-side tooling.

⚠️ This server executes arbitrary shell commands on the host by design. Run it only against a client you control.

Verification

verify_tools.py and verify_new_tools.py call each tool directly and print the result. These are smoke checks, not a test suite β€” no assertions, no fixtures, no CI.

Related MCP server: Windows Operations MCP

Quick Install

  1. Clone or download this folder

  2. Install dependencies:

pip install -r requirements.txt
  1. Configure Claude Desktop:

Edit: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "pc-control": {
      "command": "python",
      "args": ["C:/path/to/pc-control-mcp/main.py"]
    }
  }
}
  1. Restart Claude Desktop

Usage

Ask Claude:

  • "Check my system status"

  • "Execute command: dir"

  • "Set volume to 50%"

  • "Open Chrome"

  • "Lock my computer"

Requirements

  • Python 3.8+

  • Windows 10/11

  • Claude Desktop App

Tools

system_execute_command

Execute any shell command

system_get_status

Get CPU, Memory, Disk, Battery status

system_manage_volume

Control audio volume (set, get, mute, unmute)

system_manage_power

Power actions (shutdown, restart, sleep, lock)

system_launch_app

Launch applications by name

system_get_processes

List running processes sorted by CPU or Memory

screen_take_screenshot

Capture screenshot of primary monitor

window_list

List specific details of all visible windows

window_manage

Manage windows (focus, minimize, maximize, close)

License

MIT

Created with ❀️ for Windows automation

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Windows integration MCP server that enables Claude to interact with Windows system features including media playback control, notification management, window operations, screenshots, monitor control, theme settings, file opening, and clipboard access.
    22
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    Enables comprehensive Windows system management through Claude Desktop, including PowerShell/CMD execution, file operations, archive handling, Git tools, network testing, and system monitoring. Provides a complete toolkit for Windows automation and administration tasks.
    59
    3
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    Enables Claude Desktop to monitor and control your computer system with 90+ real-time tools covering CPU, RAM, GPU, disk, network, processes, and more, plus extensions for file management, code editing, and web research.
    84
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/krsnmlna1/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server