PC Controller MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PC Controller MCP Servertake a screenshot of the current screen"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PC Controller MCP Server

Universal MCP Server for Windows PC Control
π Overview
PC Controller MCP Server is a powerful Model Context Protocol (MCP) server that enables AI assistants to control Windows PCs through a comprehensive set of tools. Built with TypeScript and Node.js, it provides seamless integration with AI clients like Claude Desktop, Cursor, Windsurf, and OpenClaude.
π― What It Does
This server bridges the gap between AI assistants and your Windows PC, allowing AI to:
Execute shell commands and scripts
Read, write, and search files
Capture screenshots and view them
Monitor system information and processes
Manage clipboard content
Open files, folders, and URLs
And much more...
π Compatibility
Works with any MCP-compatible AI client:
β Claude Desktop
β Cursor IDE
β Windsurf
β OpenClaude CLI
β ChatGPT (with appropriate configuration)
β Any MCP-compliant client
Related MCP server: pov
β¨ Features
π οΈ 18 Powerful Tools
Tool | Description |
run_command | Execute shell commands (PowerShell default; also Git Bash & WSL via |
run_command_long | Run long-running commands with extended timeout (2 minutes) |
file_read | Read file contents with encoding support |
file_write | Write files with automatic directory creation |
dir_list | List directory contents with recursive option |
file_search | Search files by glob pattern recursively |
screen_capture | Capture screenshots as base64 images |
sys_info | Get comprehensive system information |
process_list | List running processes with filtering and sorting |
process_kill | Force-terminate processes by name or PID |
open_path | Open files, folders, or URLs with default applications |
clipboard_get | Read the current text content of the system clipboard |
clipboard_set | Copy text to the system clipboard |
zip_create | Compress files/folders into a .zip archive |
zip_extract | Extract a .zip archive to a folder |
window_focus | Bring a window to the foreground (by title/process name) |
key_type | Type text or send keystrokes to the focused window |
notify | Show a Windows notification balloon with a title and message |
π¨ Key Capabilities
Universal Compatibility: Works with any MCP-compatible AI client
Comprehensive Control: From file operations to process management
Visual Feedback: Screenshot capture with base64 encoding for AI viewing
Safe by Design: Detailed tool descriptions help AI make informed decisions
Production Ready: Fully tested (25/25 tests passing) and documented
Developer Friendly: TypeScript source code with full type safety
π Quick Start
Prerequisites
Node.js 18+ (recommended: 20+)
Windows 10/11
PowerShell 5.1+
An MCP-compatible AI client (Claude Desktop, Cursor, etc.)
Installation
# Clone or download this repository
cd D:\All_project\own\AI_Coder\MCP_Tools\pc_controller
# Install dependencies
npm install
# Build the project
npm run buildRunning the Server
# Production mode
npm start
# Development mode (with hot reload)
npm run dev
# Watch mode (auto-rebuild on changes)
npm run watchβοΈ Configuration
Claude Desktop
Edit: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"pc-controller": {
"command": "node",
"args": ["D:\\All_project\\own\\AI_Coder\\MCP_Tools\\pc_controller\\dist\\index.js"]
}
}
}Cursor IDE
Edit: ~/.cursor/mcp.json
{
"mcpServers": {
"pc-controller": {
"command": "node",
"args": ["D:\\All_project\\own\\AI_Coder\\MCP_Tools\\pc_controller\\dist\\index.js"]
}
}
}Windsurf
Edit: ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"pc-controller": {
"command": "node",
"args": ["D:\\All_project\\own\\AI_Coder\\MCP_Tools\\pc_controller\\dist\\index.js"]
}
}
}OpenClaude CLI
Edit: ~/.openclaude/config.json
{
"mcpServers": {
"pc-controller": {
"command": "node",
"args": ["D:\\All_project\\own\\AI_Coder\\MCP_Tools\\pc_controller\\dist\\index.js"]
}
}
}ChatGPT Web
For ChatGPT web access, you'll need to set up an HTTP bridge server (future enhancement). Currently, ChatGPT Desktop app may support MCP with similar configuration to Claude Desktop.
π Usage Examples
Once configured, you can ask your AI assistant to perform tasks like:
Shell Commands
"Run npm install in D:\Projects\myapp"
"Execute git status"
"Check disk space with PowerShell"File Operations
"Read the contents of C:\config.json"
"Create a new file at D:\output.txt with 'Hello World'"
"List all files on my Desktop"
"Search for all .log files in D:\logs"System Information
"Show me my system information"
"What processes are using the most memory?"
"List all running Chrome processes"Screenshots
"Take a screenshot of my screen"
"Capture the screen and save it to D:\screenshots\screen.png"Process Management
"Kill the notepad process"
"Terminate process with PID 1234"Utilities
"Open https://github.com in my browser"
"Copy 'Hello World' to clipboard"
"What's currently in my clipboard?"ποΈ Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI Client (Claude, Cursor, etc.) β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β MCP Protocol (JSON-RPC 2.0) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ stdio transport
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PC Controller MCP Server (Node.js) β
β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β run_command β β file_read β β screen_ β β
β β run_command_ β β file_write β β capture β β
β β long β β dir_list β β sys_info β β
β β (shell: β β file_search β β process_list β β
β β ps/bash/wsl)β β zip_create β β process_kill β β
β β β β zip_extract β β open_path β β
β β β β β β clipboard_ β β
β β β β β β get+set β β
β β β β β β window_focus β β
β β β β β β key_type β β
β β β β β β notify β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ PowerShell / Windows API
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Windows Operating System β
β β
β File System β Processes β Registry β Network β Clipboard β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββπ§ͺ Testing
The project includes a comprehensive test suite with 25 tests covering all tools and error handling.
# Run all tests
npm test
# Run specific test file
node test/test.jsTest Coverage
β Protocol handshake (initialize, tools/list)
β All 18 tools functionality
β Error handling (invalid commands, non-existent files, unknown tools)
β Edge cases and boundary conditions
Test Results: 25/25 passing β
π Documentation
Skill Documentation
For AI assistants, detailed skill documentation is available in:
skill/SKILL.md- Main skill file with tool overviewskill/reference/tools.md- Detailed parameter reference
API Reference
Each tool is fully documented with:
Purpose and use cases
Parameter descriptions
Return value specifications
Usage examples
Error handling
See the source code in src/index.ts for complete tool definitions.
π οΈ Development
Project Structure
pc_controller/
βββ src/
β βββ index.ts # Main MCP server implementation
βββ dist/ # Compiled JavaScript
β βββ index.js
βββ test/
β βββ test.js # Test suite (25 tests)
βββ skill/
β βββ SKILL.md # AI skill documentation
β βββ reference/
β βββ tools.md # Detailed tool reference
βββ config/ # Configuration examples
β βββ claude-desktop.json
β βββ cursor.json
β βββ windsurf.json
β βββ openclaude.json
β βββ chatgpt-setup.md
βββ images/
β βββ banner.png # Project banner image
βββ README.md # This file
βββ package.json
βββ tsconfig.json
βββ .gitignoreBuild Commands
# Install dependencies
npm install
# Build TypeScript to JavaScript
npm run build
# Development mode with hot reload
npm run dev
# Watch mode (auto-rebuild on changes)
npm run watch
# Run tests
npm test
# Start production server
npm startTech Stack
Runtime: Node.js 18+
Language: TypeScript 5.0
MCP SDK: @modelcontextprotocol/sdk ^1.30.0
Validation: Zod ^4.4.3
Transport: stdio (universal MCP)
π Security Considerations
Current Implementation
Commands execute with user privileges
No built-in sandbox or command whitelisting
File operations can overwrite existing files
Process kill is forceful without confirmation
Best Practices
Review commands before executing destructive operations
Use absolute paths to avoid ambiguity
Backup important files before modifications
Verify process names/PIDs before killing
Test in development before production use
Future Enhancements
Command whitelisting/blacklisting
Sandbox mode for restricted operations
Confirmation prompts for dangerous actions
Audit logging for all operations
π Troubleshooting
Server Not Starting
# Check Node.js version
node --version # Should be 18+
# Rebuild the project
npm run build
# Check for errors
npm run dev # Shows detailed error messagesAI Client Not Detecting Server
Verify the path to
dist/index.jsis correct in your configRestart the AI client after config changes
Check JSON syntax in config file
Ensure Node.js is in your system PATH
Commands Failing
Verify PowerShell is available:
powershell.exe -Command "echo test"Check file permissions
Use absolute paths for all operations
Increase timeout for long-running commands
Screenshots Not Working
Ensure display/monitor is active
Check display permissions
Verify .NET Framework is available
Try running as Administrator if needed
π€ Contributing
Contributions are welcome! Areas for improvement:
Mouse and keyboard control
Window management
Security/sandbox features
HTTP/SSE transport for web clients
Additional system monitoring tools
Cross-platform support (Linux, macOS)
Development Workflow
Fork the repository
Create a feature branch
Make your changes
Run tests:
npm testSubmit a pull request
π License
MIT License - see LICENSE file for details
π Acknowledgments
Model Context Protocol - MCP specification
Anthropic - Claude and MCP development
Node.js - JavaScript runtime
TypeScript - Type-safe JavaScript
π Support
Issues: Open an issue on GitHub
Questions: Check the documentation in
skill/directoryDiscussions: Join the MCP community
πΊοΈ Roadmap
Version 1.1 (Planned)
Mouse and keyboard control tools
Window management (minimize, maximize, resize)
System notifications
Volume control
Version 1.2 (Planned)
Security sandbox mode
Command whitelisting
Audit logging
HTTP/SSE transport
Version 2.0 (Future)
Cross-platform support (Linux, macOS)
Plugin system for custom tools
Remote PC control via SSH
Advanced automation workflows
Made with β€οΈ for the AI community
Empowering AI assistants to control Windows PCs safely and effectively
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables AI agents to perform extensive Windows system administration, file operations, process management, network configuration, registry editing, GUI automation, and more through a comprehensive set of MCP tools.1MIT
- AlicenseAqualityDmaintenanceEnables LLM agents to capture screenshots, control mouse/keyboard, and manage windows on desktop platforms, primarily Windows, via an MCP server.161MIT
- Flicense-qualityBmaintenanceTurns any Windows device into a remotely controllable MCP toolset, allowing a mobile AI agent to execute CLI, GUI, browser, and system commands on Windows without an API key.2
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/rayss868/pc-controller-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server