Let an AI see and operate Windows apps cheaply, without stealing focus, moving your mouse or typing on your keyboard. An MCP server for Claude Code and Codex (and any MCP client). Early version: it works, but expect rough edges.
You need Windows 10 or 11, 64-bit Python 3.10+ and Claude Code (or the Codex CLI). In PowerShell:
pip install claude-pc-control pc-control install # for Codex: pc-control install --client codex Then open a new Claude Code (or Codex) session and ask, for example, "what do I have open in Word?".
From any version you have, to the latest release:
pc-control update It keeps your settings, removes what older versions left behind and updates Claude Code and Codex if both are installed. It works with sessions open: they keep their version until you open a new session. (Sessions of a version older than 0.8.4.6 are stopped once, because Windows cannot replace the launcher they run; they reconnect when used.) The update itself never needs changing: it only installs the new release and lets the NEW code configure itself.
If your version is so old that it has no update command, this works from any of them:
pip uninstall -y pc-control pcsight pip install --upgrade claude-pc-control pc-control reinstall Uninstall pc-control uninstall pip uninstall -y claude-pc-control pc-control status says whether it is installed, connected and paused; pc-control pause / pc-control resume is the kill switch.
What pc-control install changes, and nothing else (all of it is recorded, so uninstall removes exactly that):
Options: --mode follow|auto|ask|strict|bypass (default follow, see Permission modes), --scope user|project|local, --allow-reads (let windows and look run without asking). pc-control reinstall repeats the install with the options recorded last time; pc-control uninstall --keep-data keeps the ~/.pc-control data folder.
From a clone (for development): git clone https://github.com/VortexJer/PC-Control.git, then run install.ps1 in it (options -Mode, -AllowReads, -Editable, -Client codex); update.ps1 and uninstall.ps1 (-KeepData, -KeepPackage) do the same as the commands above.
Codex: pc-control install --client codex registers the server with codex mcp add, installs the skill in ~/.agents/skills/pc-control and a managed block in $CODEX_HOME/AGENTS.md. Permission requests reach you through MCP elicitation (if Codex cannot show one, the action is refused). Only user scope; --allow-reads is Claude-only. Both clients can be installed at once; uninstalling one keeps what the other needs.
Native focus guard: included in the package (x64, ARM64 and x86 binaries; no compiler needed). The ARM64 build is cross-compiled and has not been run on ARM hardware.
Older versions: pc-control update works from any earlier version, including the first one (pcsight) and installs made before the package was renamed from pc-control to claude-pc-control (0.6). It removes whatever an older version left behind (server, skill, CLAUDE.md block, hooks, ask rules for PC-Control's tools) and only that.
The tool definitions Claude gets on every request are about 1280 tokens for the 10 tools (the title that the schema generator adds to every parameter, 16 % of it, is stripped). With PC_CONTROL_TRACE=1 each action's answer ends with where its time went (guards 4ms, cursor 270ms, settle 250ms, changes 380ms). Most of an action is the UI Automation walk that tells it what changed; it depends on how fast the app answers accessibility queries.
Pick one with pc-control install --mode ... or the PC_CONTROL_MODE environment variable.
In every mode: creating ~/.pc-control/PAUSE (or PC_CONTROL_PAUSE=1) makes every tool refuse, and type needs an element id from look (no blind typing).
A terminal is not a window where mouse messages or WM_CHAR work (Windows Terminal draws its own text), but every shell reads its keys from a console input buffer, and that buffer can be written to directly. So type, key, read and look talk to the console of the shell itself: no keyboard, no mouse, no focus, nothing of yours is touched, and the answer shows what the console says afterwards (the typing is confirmed, not assumed). It works with classic console windows and with the tabs of Windows Terminal, including terminals you already had open.
Protected windows are not blocked; you decide, not the model. The model has no confirm flag it could set.
The click (or the typing) happens the moment the cursor arrives, never before. Speed: PC_CONTROL_CURSOR_SPEED for the pointer (default 1.5) and PC_CONTROL_CARET_SPEED for the typing bar (default 3); 1 is the original, slower animation.
An element id comes from a look(), but the window is alive: between look() and the action an id can start pointing at something else (a Buy / Sell toggle that changed its label, a recycled row of a virtual list, a dialog that reused a control). So nothing is trusted from the snapshot; every action re-checks, in this order, and refuses with a clear message (NOT EXECUTED: look again) when a step fails:
Also guarded, because they act without naming what they act on: clicking by x,y (the element of the last look under that point is judged and must still be itself), key alt+f4 and the title-bar X on a window Claude did not open (you could lose your work), the clipboard keys ctrl+c/x/v (the clipboard may hold a copied password), and enter / space in a dialog that offers a delicate button (they press the default button unseen). Fields that look like secrets (password, PIN, API key, card number, by name, id or help text) are neither typed into nor read, and open_app asks before running interpreters and system tools (python, curl, certutil, reg...) or a script / installer handed to a launcher. The text read returns is marked as data: instructions found in a window or web page are not yours.
Limits that remain: a click by x,y with no earlier look() of that window knows nothing about what is under the point (use ids); OCR text has no control behind it, so it can only be checked by position; the checks protect against the model misusing PC-Control's tools, not against a model that can run arbitrary commands as you (it could forge the small approval marks under ~/.pc-control/perm: keep Claude Code's own permission for shell and file writes switched on).
Positions are resolved when Claude acts, not when it looked. Moving the window changes nothing (positions are relative to it); resizing re-lays-out the controls, so each target is re-asked to its live control (or found again by name and type). A click with coordinates from an old image is refused with a clear message instead of landing somewhere else.
Some changes cannot be absorbed: shrink a window enough and its ribbon collapses, so the button Claude was about to press no longer exists. Then PC-Control does not guess: it shows a notice on that very window ("If you touch this application, Claude will not be able to act on it. ..."), waits for you to put it back, and carries on by itself. If a button merely moved, PC-Control finds it again, clicks it and says so in the answer.
You can keep working in the app while Claude works in it, as long as you do not hide or move its window:
A browser or Electron app that is minimized hides its page: PC-Control says so instead of answering "not found". Browsers opened with open_app are placed behind your windows for that reason.
Excel and Word are reached through COM from their own window: Claude writes cells by address and text at its own insertion point, never through your selection. While you are editing a cell Excel refuses COM calls; PC-Control retries for a few seconds and then says so. Save (ctrl+s, or ctrl+g in a Spanish Office, where ctrl+s is underline) only works for files that already have a name.
Shortcuts work only where the app exposes them as a command (a classic menu, a menu entry or element with that shortcut, or a text box). Modern menus (WinUI, WPF) only exist while open, so they are searched only for apps on the hidden desktop: opening them on your desktop could take the focus.
Windows running as administrator cannot be read from a normal process (Windows blocks it).
Modern Store/XAML apps (Calculator, Paint, Settings) may ignore background mouse messages. For buttons, PC-Control can use UI Automation patterns. These patterns are app-provided and are not a universal focus-isolation guarantee. The modern Paint canvas ignores background drags: PC-Control now refuses that unsupported operation instead of reporting a successful stroke. Other canvases still require visual verification.
Some apps ignore "start minimized". A native, thread-specific CBT guard now vetoes programmatic activation/focus changes in compatible target threads, rather than restoring focus after it was stolen. It distinguishes top-level windows sharing a process, while allowing their own dialogs and user activation. A temporary, thread-specific message hook confirms delivery with a tagged WM_NULL heartbeat; it inspects no keyboard/mouse contents and is removed immediately. Startup GUI-queue initialization, new broker processes, protected apps and architecture differences still limit coverage; this is not a universal guarantee for every app.
Chromium browsers and Chromium-based apps expose the page contents only while their accessibility support is on: open_app starts them with it; one you started yourself may show only its own controls until it is restarted by open_app.
Shortcuts in apps with no menu entry for them are delivered as keys inside the app; some apps act on keys only while they are in front (Acrobat's zoom, a browser's back): the answer then says there was no visible effect. Web fields are filled through UI Automation (no focus), and web buttons and checkboxes are pressed the same way.
Apps without an accessibility tree rely on OCR; apps that draw everything themselves (some games) may need images.
A minimized window is read through its UI tree only: no screenshot, no scrolling, no clicks by coordinates (it would have to be shown). Open it from the taskbar when that is needed.
Store (UWP) apps cannot run on a hidden desktop.
Background WM_CHAR typing is not accepted by every app. Targeted typing uses native editor messages or writable accessibility value patterns, including the modern Notepad editor. Fields that expose neither are refused rather than focused.
Protected/incompatible target processes may refuse the native hook. Guarded actions then refuse instead of silently using an unprotected fallback. Startup aliases that hand off to another process require monitoring and are not guaranteed race-free. The visible tests record transient foreground/focus events as well as final state.
The input limitations audit records what was fixed, what was tested in real visible windows, and what remains unsupported. It does not claim independent input support in every Windows application.
The tests never touch your real apps: they use throw-away windows (off screen or on a hidden desktop) and a simulated Word. test_cursor shows the orange cursor for a few seconds. Run them one by one:
python tests/test_decide.py # cost/quality rules python tests/test_static.py # no intrusive API calls in the package python tests/test_background.py # clicks and typing without focus python tests/test_hidden.py # hidden desktop: never on your screen python tests/test_taskbar.py # minimized + taskbar button: never on your screen python tests/test_tuck.py # when a new window is (not) sent behind python tests/test_server.py # MCP server end to end, with its safety rules python tests/test_policy.py # permission modes and categories python tests/test_hook.py # the permission hooks python tests/test_cursor.py # the orange cursor (shows it for a few seconds) python tests/test_mark.py # show(): the circle is above its window and goes away when that spot changes python tests/test_resize.py # moving / resizing the window mid-action python tests/test_word.py # Word: Claude's own insertion point (simulated Word) python tests/test_input_share.py # you and Claude working in the same app python tests/test_modern_input.py # focused-target refusal, value-pattern fallbacks, preserved selections and drag limits (simulated controls) python tests/test_richedit.py # independent ranges, Unicode/line breaks, COM errors and no unsafe retry (simulated document) python tests/test_focus_guard.py # real visible app: 24 startup + 24 runtime activation/focus attempts; WinEvent observer python tests/test_focus_safety.py # no acknowledgement => no mutation; partial hooks removed (simulated failures) python tools/visible_input_demo.py # visible real Win32 edits/canvas; nonactivating, ordinary window; foreground/focus events monitored python tools/probe_modern_input.py notepad --exercise # visible disposable document in the installed modern Notepad python tools/probe_modern_input.py mspaint --exercise # visible disposable bitmap; compares canvas pixels and reports the unsupported drag python tests/test_drag.py # drag / draw python tests/test_menu.py # menu entries pressed through accessibility python tests/test_menu_real.py # ... against a real Windows menu python tests/test_more.py # scroll, read, shortcuts, drop-downs, find and wait python tests/test_excel.py # Excel: read and write cells, formulas, save (skipped without Excel) python tests/test_powerpoint.py # PowerPoint: slides and notes (skipped without PowerPoint) python tests/test_web.py # the same on a real web page in Edge (skipped without Edge) python tests/test_unnamed_field.py # fields and buttons without an accessible name still get an id python tests/test_launcher.py # a launcher whose window belongs to a child process: found, minimized, focus kept python tests/test_identity.py # what is re-verified before acting (mocks + a real Buy/Sell toggle) python tests/test_fuzz.py # 59 bad or odd inputs through the real protocol: clear answers, no crashes python tests/test_cli.py # install / uninstall / status / pause, the package rename and its migration python tests/test_hidden_cleanup.py # apps on the hidden desktop end with the session (shutdown, kill, leftovers of older versions) python tests/test_guard_descriptor.py # every tool has an inherit/review decision for HOL Guard (fails when a new tool has none) python tests/test_back_on_create.py # open_app(behind=true): at the very back, not minimized, no focus taken, fast python tests/test_hang.py # a call stuck inside another program (Firefox on a huge page) does not freeze the server python tests/test_terminal.py # terminals: type, key, read and look through the console; the right tab; never the terminal Claude Code runs in python tests/test_steps.py # steps: several actions in one call, stops on failure or permission python tests/test_lifecycle.py # the server exits with Claude Code (EOF or abrupt death), whether launched as a module or as pc-control-mcp python tests/test_hygiene.py # license, README, no personal data HOL Guard HOL Guard lists PC-Control in contributions/mcp-servers/mcp.pc-control.json (in its repository): which tools it should ask about (review) and which it can let through (inherit). When a tool is added here that list goes stale, so it is generated from the live server. The one decision per tool lives in tools/guard_descriptor.py; a new tool is review until it is classified there, and tests/test_guard_descriptor.py fails until it is.
python tools/guard_descriptor.py --guard-repo PATH_TO_HOL_GUARD # show what would change python tools/guard_descriptor.py --guard-repo PATH_TO_HOL_GUARD --check # exit 1 if it is out of date (release checklist) python tools/guard_descriptor.py --guard-repo PATH_TO_HOL_GUARD --write # update it and run Guard's own trust check It only rewrites the tool list, the "keep ... on review" sentence and the pinned version. It never opens a pull request: sending the change to Guard is a human decision.
"verified" = checked on the real app by a test in tests/ or hands-on through the server (date), with your focus, mouse and keyboard untouched. "limits" = what does not work there and is reported as such, never as success.
Earlier releases were also driven, by Claude and by a cheaper model (Haiku) as a test user, in KiCad, OBS Studio, RStudio, Git GUI, Character Map, Windows Media Player and Clock.
python tools/token_bench.py [other_checkout] runs a fixed scenario through the MCP protocol and counts the tokens of the tool definitions and of every answer (needs pip install tiktoken), to compare two versions before and after a change.
python tools/input_monitor.py out.log stop.flag logs focus changes, new windows, the desktop that receives input, mouse clipping and capture, so you can check that PC-Control never takes your focus or input.
PC-Control lets an AI assistant operate your computer. The creator of this tool is not responsible for any action Claude (or any other model) takes through it, nor for its consequences. Nor is the creator responsible for bugs, errors or unexpected behavior of the tool itself (a click or keystroke that lands on the wrong element, a protection that fails, lost or modified data, and so on). The permission system reduces risk, it does not remove it. By using PC-Control you accept all the risks, including those of errors in the tool: review what you allow, keep backups of anything important, and use it at your own risk. The software is provided "as is", without warranty of any kind, as stated in the MIT license.
Both files in this release have provenance metadata.
mcp claude automation windows ui-automation
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 22, 2026 2 release files Full provenance
Nov 21, 2026 2 release files No provenance
Oct 14, 2026 2 release files Full provenance
Oct 12, 2026 2 release files Full provenance




