PC Control MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PC Control MCP Server
Universal MCP server for AI-powered PC automation
Works with Claude Code, Cursor, Windsurf, and any MCP-compatible AI assistant.
A powerful MCP server for intelligent PC control using:
UI Automation - Click elements by name (native Windows apps)
Browser CDP - Direct Chrome control (DOM, elements, JS execution) ⭐ NEW!
OCR - Find/click any text on screen (works with browsers!)
Vision - Template matching, screen change detection
Fast capture - GPU-accelerated screenshots
Why This Is Better
Feature | Old pc-control | claude-pc |
Click elements | By coordinates (fragile) | By name OR by text (robust) |
Browser support | Screenshots only | FULL CDP support! + OCR |
Browser elements | None | Get ALL interactive elements! |
JavaScript | None | Execute any JS in page! |
Page extraction | None | Extract full page blueprint! |
Wait for changes | Manual polling |
|
Screen capture | ~200ms | ~50ms (GPU accelerated) |
Related MCP server: computer-mcp
Quick Start
cd claude-pc-mcp
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txtAdd to ~/.claude.json:
{
"mcpServers": {
"claude-pc": {
"type": "stdio",
"command": "C:\path\to\claude-pc-mcp\.venv\Scripts\python.exe",
"args": ["C:\path\to\claude-pc-mcp\run.py"]
}
}
}For Browser CDP (Chrome Control)
Start Chrome with remote debugging:
chrome.exe --remote-debugging-port=9222Or for a clean profile:
chrome.exe --remote-debugging-port=9222 --user-data-dir=C:\chrome-debugTools Overview
🌐 Browser Control (CDP) - NEW!
Best for: Chrome/Edge browsers - FULL control over web content!
Tool | Description |
| Connect to Chrome with debugging enabled |
| Get ALL interactive elements with bounds! |
| Click element by text/role/selector |
| Type text into browser elements |
| Run JavaScript in page context |
| Extract everything to clone a page |
| List all open tabs |
| Navigate to URL |
| Wait for element to appear |
🖥️ Native App Control (UI Automation)
Best for: Windows native applications (Notepad, File Explorer, etc.)
Tool | Description |
| Find element by name/type/id |
| Click element by selector |
| Type into element |
| Get UI element hierarchy |
| Wait for element state |
🔤 Text/Universal Control (OCR)
Best for: Any application with visible text (fallback for browsers without CDP)
Tool | Description |
| Find text and get coordinates |
| Find and click text (one call!) |
| Extract all visible text |
| Wait for text to appear/disappear |
👁️ Vision Tools
For image-based interaction and screen monitoring
Tool | Description |
| Find image/icon using template matching |
| Wait for screen to update |
⌨️ Screen & Input
Tool | Description |
| Fast screenshot (50ms) |
| Click coordinates (fallback) |
| Type at cursor |
| Keyboard with special keys |
| Mouse wheel |
| Bring window to front |
| List windows with bounds |
Usage Examples
🌐 Browser Automation with CDP (BEST!)
# 1. Connect to Chrome (must be started with --remote-debugging-port=9222)
connect_browser()
# 2. Get ALL interactive elements on the page
get_browser_elements()
# Returns: buttons, links, inputs with EXACT coordinates!
# 3. Click by element text
click_browser_element(text="Sign In", role="button")
# 4. Fill a form
click_browser_element(text="Email")
type_in_browser(text="user@example.com")
click_browser_element(text="Password")
type_in_browser(text="mypassword")
click_browser_element(text="Log In")
# 5. Execute JavaScript
execute_browser_js(script="document.title")
execute_browser_js(script="document.querySelector('#submit').click()")
# 6. Extract page for cloning
get_page_blueprint()
# Returns: HTML, elements, design tokens, colors, fonts!🖥️ Native App Control
# Click a button by name
click_element(name="Submit", control_type="button")
# Type into a text field
type_into_element(name="Username", text="myuser")
# Get UI tree to explore
get_ui_tree(depth=3)🔤 OCR Fallback (when CDP not available)
# Find and click any visible text
click_text(text="Sign In")
# Wait for loading to finish
wait_for_text(text="Loading...", condition="disappear", timeout=30)When to Use What
Scenario | Best Tool |
Chrome/Edge web content | CDP tools ( |
Native Windows apps | UI Automation ( |
Browser without CDP | OCR ( |
Any visible text | OCR tools |
Image/icon matching | Vision tools |
Requirements
Windows 10/11
Python 3.10+
Chrome/Edge for CDP features (optional)
No admin rights needed
Dependencies
Core:
mcp- MCP SDKuiautomation- Windows UI Automationmss- Fast screen capturepynput- Input simulationpywin32- Windows API
Browser CDP (NEW!):
websockets- WebSocket client for CDPaiohttp- HTTP client for CDP
OCR:
winrt-*- Windows Runtime OCR (built-in to Windows)
Vision:
opencv-python- Template matchingnumpy- Image processing
Troubleshooting
Browser CDP not connecting
Make sure Chrome is started with
--remote-debugging-port=9222Check if port 9222 is available:
netstat -an | find "9222"Try with a clean profile:
chrome.exe --remote-debugging-port=9222 --user-data-dir=C:\temp\chrome-debug
get_browser_elements returns empty
Page might still be loading - wait a moment
Some elements might be in iframes (not supported yet)
Check if the page uses Shadow DOM (limited support)
OCR not finding text
Ensure text is clearly visible (not cut off, not too small)
Try
get_screen_text()to see what OCR detectsIncrease font size in target application
click_element not working in browser
Use CDP tools for browsers! (
click_browser_element)UI Automation can't see browser internal content
Performance tips
CDP is fastest for browsers - use it when possible!
Use
regionparameter for OCR to limit search areawait_for_screen_changeis more efficient than polling
Changelog
v0.3.0 - Browser CDP Support
NEW: Full Chrome DevTools Protocol integration
NEW:
connect_browser- connect to ChromeNEW:
get_browser_elements- get all interactive elementsNEW:
click_browser_element- click by text/role/selectorNEW:
type_in_browser- type into browser elementsNEW:
execute_browser_js- run JavaScriptNEW:
get_page_blueprint- extract page for cloningNEW:
browser_navigate- navigate to URLNEW:
wait_for_browser_element- wait for elements
v0.2.0 - OCR & Vision
Added OCR tools for browser text interaction
Added vision tools for template matching
Improved window bounds detection
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Run reusable browser automations from your AI assistant: scrape sites, extract data, fill forms.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
AI-powered browser automation — navigate, click, fill forms, and extract data from any website.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Windows GUI by listing and focusing windows, capturing element snapshots via UIA/OCR/CDP, performing clicks/inputs/scrolls, verifying changes, waiting for screen updates, taking screenshots, and obtaining visual descriptions.2-
- AlicenseNot gradedqualityCmaintenanceEnables AI hosts to drive cross-platform desktop GUI automation and browser control, providing tools to read, click, type, send shortcuts, screenshot, and verify GUI elements and web pages.3,776 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to autonomously control Windows 11 and 10 desktops via sub-10ms screen capture, native UI Automation element inspection, and zero-lag keyboard and mouse input. Combines a visual plane with a semantic plane and stall detection so agents can operate real applications reliably without vision-only guessing.225 npm173 PyPI7MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to automate desktop operating systems and applications through UI automation, screenshots, and input simulation.1MIT