PC-Control MCPサーバー
コミット 2026年10月14日AIクライアントが、フォーカスを奪ったり、マウスを動かしたり、キーボードを操作したりすることなく、Windowsアプリケーションの表示や操作を行うことを可能にします。
別名 VortexJer/PC-Control
- スター
- 18
- ツール
- 12
- ダウンロード数(30日間)
- —
- 最新バージョン
- —
- 最終コミット
- 2026年10月14日
- ライセンス
- MIT
PC-Control MCPとは
PC-ControlはMCPサーバーです。 AIクライアントが、フォーカスを奪ったり、マウスを動かしたり、キーボードを操作したりすることなく、Windowsアプリケーションの表示や操作を行うことを可能にします。. 12個のツールを提供しており、windows, look, clickなどがあります。
プロジェクトのREADMEから生成された概要
PC-Control MCP server について
PC-Controlは、コンピュータの操作権を失うことなく、AIクライアントを通じてWindowsアプリケーションを操作することを可能にします。このMCP serverを使用すると、Claude Codeやその他の互換性のあるクライアントが、ウィンドウのフォーカスを奪ったり、物理的なマウスを動かしたり、キーボードで入力したりすることなく、Microsoft Wordや各種ターミナルなどのソフトウェアを表示・操作できます。Windows 10および11上で、Python 3.10以降を使用してローカルで動作します。
ユーザーは、look、type、readなどのツールを介して、ドキュメントのスクロール、特定の要素の検索、キーボードショートカットの実行といった複雑なタスクを実行できます。このサーバーは、トークン効率に基づいてUIツリーのテキスト、OCR、画像の中から最適なものを選択することで、コスト効率を高めるよう設計されています。また、厳格なモードからバイパスまで対応する権限モードや、すべてのツール実行を即座に停止するキルスイッチなどの安全機能も備えています。新しいアプリケーションを開く際、サーバーはアプリケーションを最小化した状態で起動するため、作業を中断することなくAIの進捗を監視できます。
できること
- 1バックグラウンドアプリケーションとの対話現在の作業を中断することなく、Wordなどの特定のウィンドウの内容をAIに確認させます。
- 2大規模ドキュメントの効率的な読み取りドキュメントの全文抽出や、ページ内の特定の行の検索をAIに依頼します。
- 3アプリケーションの表示管理AIに新しいプログラムを最小化状態で起動させ、作業の邪魔にならないようにします。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
PC-Control MCPツール 12
READMEから検出windowslookclicktypedragkeyscrollreadshowwait_forstepsopen_app
| windows | — | |
| look | — | |
| click | — | |
| type | — | |
| drag | — | |
| key | — | |
| scroll | — | |
| read | — | |
| show | — | |
| wait_for | — | |
| steps | — | |
| open_app | — |
自動チェック
実行日 2026年11月14日完全なレポート →まだ検証されていません。サーバーには80点のスコア、重大な問題がないこと、および検証に必要な十分なデータが必要です。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能vortexjer/pc-control is public and reachablegithub.com/vortexjer/pc-control ↗合格
- パッケージがこのリポジトリをソースとして指定未チェック
- ビルドの来歴 (Sigstore 証明)未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-10-14github.com/vortexjer/pc-control ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していない未チェック
- パッケージおよびその依存関係に重大な勧告なし未チェック
- モデルへの隠れた指示がない12 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされているNo tool named like delete, drop or exec合格
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るPC-Control

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 any MCP client). Early version: it works, but expect rough edges.
Quick start
Windows 10/11, Python 3.10+ and Claude Code. In PowerShell:
Install
pip install claude-pc-control
pc-control install
Update (from any earlier version, including installs made before the package was renamed)
pc-control update
Uninstall (everything it added, then the package)
pc-control uninstall
pip uninstall -y claude-pc-control pc-control # whichever of the two names is installed
Then open a new Claude Code session and ask, for example, "what do I have open in Word?". Details in Install, Update and Uninstall.
- Sees a window without focusing it.
lookpicks the cheapest of: UI-tree text, OCR text, or an image with numbered marks. It never sends empty text, text that costs more than the image, or text that does not cover the window. - Acts on a window without focusing it. Clicks and typing go straight to the control (
BM_CLICK,EM_REPLACESEL, UI Automation patterns...). Nothing in the package callsSetForegroundWindow,SendInput,keybd_eventorSetCursorPos(a test scans the code for them). - Answers with only what changed after each action, not the whole screen again, and says whether the action had a visible effect.
- Does what people ask for, still without focus. Scroll, read a whole document or page, keyboard shortcuts, drop-downs, find an element (even scrolled out of view) and wait for something to appear.
- Opens apps out of your way, but where you can watch.
open_appstarts the app minimized with its button in the taskbar (no focus taken): open it whenever you want to see Claude work. Its windows are marked opened by Claude, so the model never mistakes yours for its own. - Lets you keep working. You and Claude can use the same app at the same time (see You and Claude in the same app).
Windows 10/11 only. Python 3.10+.
Install
git clone https://github.com/VortexJer/PC-Control.git
cd PC-Control
.\install.ps1 # installs the package and runs `pc-control install` (options: -Mode ask|auto|strict|bypass, -AllowReads, -Editable)
Or by hand, without cloning:
pip install claude-pc-control # from PyPI
pip install https://github.com/VortexJer/PC-Control/archive/refs/heads/main.zip # or the latest code from GitHub (no git needed)
pc-control install
The package is called claude-pc-control (before 0.6 it was pc-control; the commands pc-control and pc-control-mcp and the pc_control
code did not change). If you have an older install, do not pip-install over it: run pc-control update or .\install.ps1, which remove the old
package first (both install the same files, so removing the old one afterwards would delete the new code).
All the commands:
| Command | What it does |
|---|---|
pc-control install [--mode ...] [--scope ...] [--allow-reads] |
Registers PC-Control in Claude Code (see the table below). |
pc-control update |
Gets the latest code (git pull for a checkout, otherwise GitHub), then reinstall. |
pc-control reinstall |
install again with the mode, scope and options recorded by the previous install. |
pc-control uninstall [--keep-data] |
Undoes everything install added. |
pc-control status |
Shows whether it is registered, connected, which mode, and whether it is paused. |
pc-control pause / pc-control resume |
The kill switch: every tool refuses while paused. |
pc-control serve |
Starts the MCP server (what Claude Code runs; you normally never call it). |
What pc-control install does (and nothing else):
| Step | Where |
|---|---|
Registers the MCP server as PC-Control (mcp__PC-Control__*). It runs the pc-control-mcp launcher (full path; a program with its own name, so policy tools can recognize it, unlike python -m ...); without a launcher it falls back to python -m pc_control.server. An update re-registers it, so old installs switch by themselves |
claude mcp add (scope user by default) |
| Writes the usage skill | ~/.claude/skills/pc-control/SKILL.md |
| Adds a short managed block pointing to the skill | ~/.claude/CLAUDE.md (between <!-- pc-control:begin ... --> and <!-- pc-control:end -->) |
Registers the permission hooks (PreToolUse, PermissionRequest) |
~/.claude/settings.json |
| Keeps a record of all of the above | ~/.claude/pc-control-install.json |
| Backs up your settings before editing them (once) | ~/.claude/settings.json.pc-control-bak |
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).
Then open a new Claude Code session; the tools appear as PC-Control.
pc-control status shows whether it is installed, connected and paused. pc-control pause / pc-control resume is the kill switch.
Update
From any earlier version (including the first one, then called pcsight):
pc-control update # or .\update.ps1
It pulls the source if you installed from a git checkout, otherwise installs the latest code from GitHub (first removing the package
under its old name pc-control, if you have one: it is claude-pc-control since 0.6), then runs
pc-control install again with the same mode, scope and options, which also registers the current launcher. On the way it removes whatever an earlier version left behind
(the old pcsight server, skill, CLAUDE.md block, hooks, install record and package, and old ask rules for PC-Control's tools,
which would force a dialog on every call), and only that: your own skills, hooks, rules and notes are kept. Then open a new
Claude Code session.
Uninstall
pc-control uninstall # removes everything install added, and the ~/.pc-control data folder
pip uninstall claude-pc-control # removes the package itself (pc-control if you installed before 0.6)
or, from the checkout, .\uninstall.ps1 (does both; add -KeepData to keep ~/.pc-control, -KeepPackage to keep the package).
pc-control uninstall is exact: it uses the record written by install, so it removes the MCP registration, the skill folder, the
managed block in CLAUDE.md (the file itself is deleted only if install created it and nothing else is in it), our hooks, any
read permissions it added, the settings backup and the data folder. Skills, hooks, permissions and notes that are not ours are left untouched.
Cost
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.
look chooses by cost: it estimates what the text would cost and what an image of the window would cost (about ceil(width/28) * ceil(height/28)
tokens at the size it would send, which adapts to your monitor) and sends the cheaper one, never empty text and never text that does not
cover the window. The text estimate was fitted on real windows against a BPE tokenizer (within about 10 %). After an action it sends
only what changed. In one measured Word window, the UI-tree text cost 713 tokens against 851 for the screenshot; a minimized window is
read as text only. read gives a whole document in one call, and read(find=...) or look(find=...) only the lines or elements you need.
Permission modes
Pick one with pc-control install --mode ... or the PC_CONTROL_MODE environment variable.
| Mode | What it does |
|---|---|
follow (default) |
Follows Claude Code's own permission mode, as cautious as you chose to be: bypassPermissions -> bypass, auto -> auto, default / acceptEdits / plan -> ask. |
auto |
Filters apps by category, no list to maintain: password managers and authenticators, terminals, system administration tools, remote access, crypto wallets, the AI client itself, mail and messaging apps, VPN/security tools, signing/identity apps, developer tools with credentials, and any window whose title is about banking, payments or passwords are protected: PC-Control asks you before Claude can use them. Delicate actions (pay, delete, send, install, sign out...) are asked every time. It never types into a password field. |
ask |
The lowest-risk mode: every window asks. A plain Yes is for that call only; Yes, and don't ask again remembers that one window for the session. Protected windows ask too. |
strict |
auto plus: acting only on apps listed in PC_CONTROL_ALLOW=app1,app2 or ~/.pc-control/allow.txt. |
bypass |
Like --dangerously-skip-permissions: no filters, no confirmations. Use it when you trust the session. |
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).
Terminals
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.
typewrites the text; a line break in it presses Enter (it runs).keysends enter, tab, esc, arrows, home, end, pgup, pgdn, backspace, delete, ctrl+c.- Windows Terminal is ONE process for all its windows and tabs. The tab is found through who owns each console, and picked by the window's title; if that is not unique the answer lists the candidates instead of guessing, because typing into the wrong shell is worse than not typing.
- The terminal Claude Code itself runs in is never a target (it would type into its own prompt).
- What you type in a terminal runs as you, so these windows stay protected: you are asked, and the question shows the full command, also inside
steps. - A program running as administrator cannot be reached from a normal process; the answer says so.
How the questions reach you
Protected windows are not blocked; you decide, not the model. The model has no confirm flag it could set.
- Claude Code: Claude Code itself shows you its permission dialog (1. Yes / 2. Yes, and don't ask again / 3. No), and Claude
cannot answer it. The
PreToolUsehook (python -m pc_control.hook) adds one short sentence, in the language of your Windows, as the first parameter of the call (for example question: "Claude wants to read the whole text of «Terminal» (protected window: terminal or console)."). In Claude Code's normal mode that is all; in its other modes (auto...), where Claude Code might decide by itself, the hook answersaskso the question is always shown (the dialog then also carries a "Hook ... requires confirmation" line). A plain "yes" counts once. If you pick Claude Code's "Yes, and don't ask again", PC-Control narrows it to that one window for the rest of the session (Claude Code saves a per-tool rule; the hook turns it into a per-window approval and removes the rule). - The
PermissionRequesthook answers by itself when you do not need to be bothered (a normal window outside the filter, bypass). It also tells the server that a dialog really is about to be shown: once Claude Code has done that at least once, the server refuses to run a protected action whose dialog was skipped (for example by a "don't ask again" rule), instead of trusting the question. - Other MCP clients (without these hooks): a protected action simply does not run.
What you see: Claude's cursor
When Claude clicks, an orange pointer glides to the element and rings it; when it types, a steady orange I-beam slides to the
insertion point. Only one is shown at a time (the one for the last action; each stays at least a moment so a quick action is visible), and it
moves with its window. Both are transparent click-through windows that never take focus. They fade in when Claude starts and stay visible,
idle at their last position, after it finishes (PC_CONTROL_CURSOR=always default; user: only while you are in that window; off).
Their colour adapts to what is behind them and they scale with the screen DPI.
The cursor is isolated to the app it acts on: it is an owned window of the target, so it follows that window's place in the stacking order. Closing the app removes them for good; minimizing it only hides them and they come back when you restore the window. When Claude Code closes, the PC-Control server exits with it and takes the cursor away.
What is re-verified when Claude acts
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:
| Step | What is checked, live |
|---|---|
| Handle | The window handle still belongs to the same program that was looked at (handles are reused after a window closes). |
| Exists / where | The control is still there; its position is re-read. After a resize, the only replacement accepted is one namesake in the same container with the same id and not far away: two "OK" buttons are never guessed between. |
| Identity | Its live type and name equal the ones that were looked at (case, spaces and invisible direction marks ignored). Nameless controls compare their id; text fields compare type and id, so typing does not trip it. |
| Window policy | The window's protection category is evaluated again right before dispatching (and after the cursor's trip), and so are the dialogs it opened: a title that became a login or a payment, or a sign-in dialog that popped up, aborts the action so you are asked again. |
| Action policy | "Delicate action" (pay, delete, send...) and "secret field" are judged on the live name, id, help text and password flag, not on the snapshot. |
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).
Keeps working when you move or resize the window
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 and Claude in the same app
You can keep working in the app while Claude works in it, as long as you do not hide or move its window:
- Word: Claude has its own insertion point (a hidden bookmark that follows the text if you edit before it). It writes there through COM
and the answer says in which paragraph and after which words. The formatting buttons (bold, italic, alignment...) apply to what Claude
writes, never to your selection. The Styles gallery (Heading 1, Normal, Strong...) works the same way: a style is Claude's own and is applied only to the new paragraph it starts (never to a paragraph of yours; if the text lands in one of yours, the answer says so). In Word
keyonly offersenter,spaceandbackspace, acting at Claude's own insertion point. - Your mouse: if you are holding a mouse button (dragging, selecting), Claude waits for you to release it instead of breaking your gesture.
- Your keyboard: a key press waits until you stop typing, so it never lands in the middle of your word.
- Right click opens the app's real context menu, which closes with any click of yours, so Claude only opens it when you have been idle for a few seconds and no menu is open. Menu entries are pressed through UI Automation patterns (by id, like any button).
Tools
| Tool | What it does |
|---|---|
windows |
Lists windows, most recent first (filter="word" lists only the matching ones: 12 tokens instead of ~150); marks [IN USE] (where you work now), [LAST USED], [PROTECTED: ...] / [ASKS], (minimized), (hidden) and [mine] (opened by Claude). A Store app is listed once. A title that matches several windows is never guessed: the answer lists them with their number. |
look |
Sees a window: UI-tree text, OCR text or an image with numbered marks, whichever is cheapest that works. Text fields show what they contain (never password fields). `find="Save |
click |
Clicks an element by id or by its exact name (several with that name: the ids are listed instead of guessing), or x,y of the last image; right and double supported. Ids stay valid between looks. Title-bar buttons (minimize, maximize, close) and elements of apps that ignore mouse messages are pressed through UI Automation. |
type |
Types into an element id (append, or replace) and reads the field back to confirm the text is really there. On a drop-down or list (classic, WinForms, web <select>) it picks the entry with that text, and the app's change event fires. In Excel the target can be a cell address (B3, Sheet2!A1): numbers stay numbers, =... is a formula, and the answer says what the cell now shows. |
drag |
Holds the button and drags through points (freehand, line, rectangle, ellipse) using mouse messages: no real mouse, no focus. Apps with modern canvases may ignore it. |
key |
A key (enter, tab, esc, arrows, f1-f12...) or a shortcut (ctrl+s, ctrl+shift+n, alt+f4). Shortcuts never press real keys: PC-Control runs the app's own menu command that shows that shortcut, the element declaring it, or the text-box command (ctrl+a/c/x/v/z). If the app has no such command, the answer lists the shortcuts it does have (they depend on its language: in Spanish Notepad, Save is Ctrl+G). |
scroll |
Scrolls the window or an element by pages, or to the top/bottom, through UI Automation, scroll-bar messages or wheel messages: no focus, no mouse. Says the position before and after. |
read |
The whole text of a document, web page, editor or field, also what is scrolled out of view, in pieces (start, length), or only the lines that match (`find="a |
show |
Shows you where something is: an orange outline that follows the element's shape (a circle for small icons and check boxes, a rounded rectangle for the rest; by id, name or x,y) with an optional label, above its window, never clicking. It goes away when you click there, when that spot changes (you did it), or after a few seconds. For "where do I click to...?". |
wait_for |
Same circle as show, but waits until you click it (or the spot changes) and then answers clicked, changed or timeout, so Claude can walk you through several steps one after another without guessing when you are done. |
steps |
Runs up to 12 actions (click, type, key, scroll, read, look, wait) on one window in a single call, much faster than one call each. It stops at the first step that fails, has no visible effect or needs your permission; sensitive steps still ask you one by one. |
open_app |
Launches an app minimized with its taskbar button, so you can open it and watch, in its own folder (as a shortcut does). If the window belongs to a process the launcher starts (Windows Media Player, Git GUI) or to a Store app, it is found and minimized too, and if it grabbed the focus it is handed back to you. Browsers (Edge, Chrome, Brave...) open behind your windows instead, not minimized, because a minimized browser hides its page from accessibility; the focus is never taken. hidden=true uses an invisible desktop, only when you ask for it. behind=true opens it NOT minimized but behind every window of yours, for apps that do not work minimized (browsers, some Store and Chromium apps): the window is sent to the very back the instant Windows creates it, so it is not drawn over what you are doing (0 ms on most apps, a few frames on some) and, on most apps, it does not take the keyboard focus. It returns in about half a second; if an app takes the focus anyway the answer says so. |
Adapts to your PC
- Cursor and caret scale with the DPI of the window they point at (100-300 %, per monitor).
- Screenshots adapt to the monitor the window is on (about 55 % of its long edge, between 768 and 1344 px, never upscaled).
- OCR uses your Windows languages (falls back to English/Spanish, and to images if there is none).
- Delicate-action and sensitive-window detection knows English, Spanish, French, German, Italian and Portuguese; protected app categories are matched by process name, which is language independent.
- Multi-monitor setups and negative coordinates are handled.
PC-Control MCPのよくある質問
PC-Control MCPが提供するツールは
12個のツールを提供しており、windows, look, click, type, dragなどがあります。
このサーバーはマウスを動かしたり、現在のウィンドウからフォーカスを奪ったりしますか?
いいえ、フォーカスを奪うことなく、マウスを動かしたりキーボードで入力したりせずにWindowsアプリを操作します。
サーバーは画面上の内容をどのように「見て」いますか?
lookツールは、UIツリーのテキスト、OCRテキスト、または番号付きのマークが付いた画像など、利用可能な最もコスト効率の高い方法を使用します。
AIと同じアプリケーションを同時に使用できますか?
はい、ユーザーとAIが同じアプリケーションを同時に使用できます。
サポートされているOSは何ですか?
このサーバーはWindows 10およびWindows 11専用に設計されています。