PC-Operator-MCP
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-Operator-MCP
Language: English · Español · Technical Architecture (ES)
Streamable HTTP MCP server (OAuth 2.1 + Bearer API Keys) for Windows 11 that connects Google Gemini, Claude (claude.ai), ChatGPT (chatgpt.com), and local IDE/CLI agents (Claude Code, Cursor, VS Code Copilot) to your local workspaces — with multimodal file reading (text, images, PDF text/visual, DOCX/XLSX/PPTX), bundled SKILL.md playbooks, persistent PowerShell consoles, pull-only cross-model handoff, and optional federation with Antigravity Operator for Chrome, Firefox, and Windows desktop control.
Includes a fixed HTTPS tunnel (Tailscale Funnel or Cloudflare Tunnel), a local bilingual Control Panel (/admin, EN/ES), and a native Windows system tray companion.
Quick Start
Install dependencies:
npm installDouble-click
Abrir-Panel.bat(or runnpm run panel/.\start.ps1 -Gui).Starts the hidden background daemon (
node src/launcher.js), brings up your configured HTTPS tunnel, compiles/launches the Windows tray icon (pc-operator-tray.exe), and openshttp://127.0.0.1:3333/admin.Closing the panel window leaves the server and tunnel running; reopen anytime via
Abrir-Panel.bat.To restart Node after code changes, click Shut Down Daemon in the
/adminsidebar and runAbrir-Panel.batagain.
Sign in with your local PIN (stored in
data/config.jsonor printed in the console when launching withnpm run tunnel).
CLI Scripts & Flags
Command | Description |
| Starts the hidden daemon (if not running) and opens |
| Starts server + tunnel + tray with live console output ( |
| Starts the local HTTP/MCP server only, without tunnel or tray ( |
| PowerShell wrapper for |
| Runs the full test suite ( |
Supported flags (src/index.js and src/launcher.js): --port <n>, --workspace <path>, --pick / --pick-workspace, --gui, --no-tunnel, --no-tray.
Related MCP server: Desktop Commander MCP (Transductive Edge Edition)
Connecting Clients
1. Web LLM Connectors (OAuth 2.1 + PKCE)
The server supports parallel isolated sessions: Gemini, Claude, and ChatGPT can run simultaneously with independent per-session activeWorkspace state and isolated OperatorBridge instances.
General endpoint (Claude, ChatGPT, standard MCP clients):
https://<your-fixed-url>/mcpDedicated Gemini Web endpoint (recommended for
gemini.google.com):https://<your-fixed-url>/mcp/gemini(and parallel slots/mcp/gemini/<slot>)Why
/mcp/geminiexists: applies Gemini Web UI compatibility annotations (readOnlyHint: true, toggleable viaGEMINI_READONLY_ANNOTATIONS=0) to work around the Gemini Web bug where "Always allow" resets after each tool call, and serves route-specific RFC 9728 metadata. This is a UI compatibility annotation only — it does not restrict tools or enable a read-only mode.Built-in OAuth 2.1 providers: Google Gemini (prod/sandbox/test), Claude (
claude.ai), ChatGPT (chatgpt.com/chat.openai.com), custom origins via/admin, Dynamic Client Registration (DCR), and static OAuth client (ID + Secret).
2. IDE & CLI Clients (Bearer API Keys gp_key_*)
Generate a revocable API key in /admin → Connections → Auth & API Keys, then use your local (http://127.0.0.1:3333/mcp) or public HTTPS endpoint:
Claude Code (CLI or .mcp.json)
# CLI (OAuth 2.1 or Bearer token)
claude mcp add --transport http pc-operator "http://127.0.0.1:3333/mcp"{
"mcpServers": {
"pc-operator": {
"type": "http",
"url": "http://127.0.0.1:3333/mcp",
"headers": {
"Authorization": "Bearer gp_key_YOUR_TOKEN"
}
}
}
}Cursor (mcp.json)
{
"mcpServers": {
"pc-operator": {
"url": "http://127.0.0.1:3333/mcp",
"headers": {
"Authorization": "Bearer gp_key_YOUR_TOKEN"
}
}
}
}VS Code Copilot (.vscode/mcp.json)
{
"servers": {
"pc-operator": {
"type": "http",
"url": "http://127.0.0.1:3333/mcp",
"headers": {
"Authorization": "Bearer gp_key_YOUR_TOKEN"
}
}
}
}Local Control Panel (/admin)
Accessible exclusively from 127.0.0.1 with PIN login (rejects tunneled/proxied requests with 403). Built with Vite + Preact + TypeScript (web/, bundled into src/public/ via npm run build:web), styled with Windows 11 Fluent tokens, and live ES / EN switching across 7 sections (Home, Connection, Workspaces, Processes, Handoff, Activity, Settings).
MCP Tool Inventory (23 Native + 17 Optional Federated)
Native Tools — Included Out of the Box (23 tools)
1. Workspace, Code, Multimodal Docs & Skills (15 tools)
Context & navigation:
workspace_info,list_workspaces,select_workspace(session-scoped),list_dir,find_files,search_text.Multimodal & batch reading:
read_file: line-paginated text/code, inline images (png,jpg,webp,gif), Office (docx,xlsx,pptx), and PDF (text extraction orrenderPages: truerendered inline as JPEG without opening a browser).read_files: batch-read up to 10 files in a single call.
Editing & execution:
write_file,edit_file,move_path,delete_path,run_command(hidden PowerShell running with your Windows user's full permissions; starts in the active workspacecwd, can access paths outside it, configurable timeout),git_harness(status,diff,log,branches).Skills (
use_skill): lists and loadsSKILL.mdplaybooks in priority order: active workspace (skills/,.agents/skills/) → bundled reposkills/→ built-in guide → Antigravity Operator skills → user global~/.gemini/config/skills.
2. Cross-Model Handoff — 100% Pull-Only (3 tools)
Built to seamlessly resume work when a chat runs out of quota without polluting unrelated chats:
Silently records real work actions in
data/handoffs.json, partitioned by(sessionKey, workspace)with automatic secret redaction (Bearer,gp_key_,sk-,ghp_,AIza*,password=,token=).workspace_infonever injects hints from other sessions or checkpoints.handoff_save,handoff_resume(with safeneedsSelection: truedisambiguation across recent projects), andhandoff_list.
3. Persistent Consoles & Daemons — Full Control Mode (5 tools)
Require enabling Full Control Mode in /admin (with TTL auto-expiry and optional unrestricted cwd):
process_list,process_start,process_read(tailLinesorfromOffset),process_send(interactive stdin), andprocess_stop(full process tree termination viataskkill /T /F).
Optional Federated Tools — Antigravity Operator (17 tools)
Connect Antigravity Operator (standalone MIT repository) in /admin → Runtime to federate browser and Windows desktop automation with per-session isolation (AG_OPERATOR_SESSION_KEY):
Chrome / Firefox (
operator_chrome_*,operator_firefox_*): silent mode (playwrightheadless or backgroundextension) and user handoff (for_user: true).Windows Desktop (
operator_desktop_*): screenshots, window enumeration, focus-free UI Automation (ui_tree,ui_action), visual/DirectX actions (act), and cursor overlay.
Bundled Skills (skills/)
This repository ships 5 ready-to-use SKILL.md playbooks exposed automatically via use_skill:
workspace-operator-guide— master operational playbook for all native tools, multimodal reading, and handoff.windows-operator— safe Windows 11 local workspace, PowerShell, clipboard, and browser coordination guide.chrome-operator(requires Antigravity Operator) — silent Chrome automation and clean user handoff.firefox-operator(requires Antigravity Operator) — silent Firefox WebExtension automation and handoff.desktop-operator(requires Antigravity Operator) — Windows UIA and DirectX/visual automation playbook.
Resources & Prompts
Resource:
mcp://workspace-operator/guide(guia_uso_mcp).Prompts:
como_usar_este_mcpandretomar_handoff.
Environment Variables
Variable | Default | Purpose |
|
| Local HTTP port (persisted in |
| Generated | Overrides the local authorization PIN. |
|
| Fixed public HTTPS origin ( |
|
| Enables |
|
| OAuth |
|
| Set to |
Security Model
/mcp,/mcp/gemini, and/mcp/gemini/:slotrequire a valid Bearer token with scopemcp:tools(OAuth 2.1 + PKCE orgp_key_*API key) and enforce a CORS origin allowlist (built-in providers, loopback, configured public URL, and user-approved redirect origins).File tool scope (
read_file,read_files,write_file,edit_file,move_path,delete_path,list_dir,find_files,search_text): strictly bounded to the active workspace; blocks.., external symlinks, internal server directories (src/,data/,panel/, etc.), theantigravity-operatordirectory,.git/config,.git/hooks/*, and sensitive files (.env,.pem,.key,id_rsa, etc.) whenprotectSensitiveFilesis enabled.Shell execution (
run_commandandprocess_*): by design, runs PowerShell with your current Windows user's full permissions so agents can operate your local PC and authenticated CLIs. Commands start in the active workspace (cwd), but are not sandboxed to the workspace or restricted byprotectSensitiveFiles. By default (filterSensitiveEnv: true), common secret environment variables (*_API_KEY,*_TOKEN,*SECRET*,*PASSWORD*,*_PRIVATE_KEY,MCP_PIN,CLOUDFLARE_TUNNEL_TOKEN) are stripped from the inherited shell environment (with per-userenvAllowlist/envBlocklistoverrides in/admin, while leavingOperatorBridgeuntouched). Note that env filtering prevents accidental secret leakage in shell commands, not intentional local file/registry access. DisableallowCommandsin/adminto block shell execution./admin,/admin/api/*,/admin/assets/*, and/internal/tray/*only respond on local loopback (127.0.0.1), reject proxy/tunnel headers (403), block direct/admin/assets/index.htmland unknown assets (404), and require HMAC session cookies orX-Tray-Token.Commands and errors saved in
data/handoffs.jsonare scrubbed for secrets before writing to disk.
License
MIT — see LICENSE.
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
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables secure remote development on Windows by allowing LLM clients to manage files, run commands, and automate browsers within sandboxed workspaces, with multi-project switching and OAuth authentication.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to remotely search, update, manage files, and run terminal commands on a desktop environment via Streamable HTTP with OAuth 2.0, supporting ChatGPT and web agent integrations.1-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to perform local development tasks on Windows by reading and editing files, running commands, and controlling browser and desktop tools, all within isolated workspaces. Supports secure remote access via an optional tunnel for ChatGPT clients.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to operate and monitor Windows workspaces through native tools for filesystem operations, PowerShell execution, background tasks, Windows services, GPU telemetry, PDF generation, and a built-in web gateway/dashboard.2MIT