AI Process Manager
This MCP server lets AI agents inspect and control Windows applications through structured JSON/text state instead of screenshots.
Check AIPM backend health, version, and action-tier status
List and search running processes and open windows
Read text from windows (consoles, editors) without screenshots
Get UI Automation trees for native and Chromium/Electron apps
Wait for conditions like process start/end, file stability, window titles
Get system status (CPU, RAM, GPU, disk), recent PC events, and file/folder info
Find interactive UI elements and inspect learned per-app recipes
Perform UI actions by element: click, set value, select option, focus, drag, send keys (requires opt-in action tier and app allowlist)
Report task/action outcomes to local metadata-only telemetry
Post/read local agent notes and view audit logs
Read token-economy stats comparing structured state vs screenshots
Click on "Deploy 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., "@AI Process Manager is the render still running?"
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.
AI Process Manager — MCP Server
Structured Windows state for AI agents — no screenshots.
This MCP server exposes the AI Process Manager local HTTP API as tools for Claude Desktop, Cursor, and any MCP client. Instead of capturing pixels (~2,765 tokens per 1080p screenshot), agents read JSON and text (~15–150 tokens per query) from processes, windows, consoles, and UI Automation trees.
Requires: AIProcessManager.exe running on Windows (system tray). Node.js ≥ 14. Zero npm dependencies.
Why this exists
Computer-use agents often "look" at the desktop via screenshots. That is slow (3–5 s), expensive in tokens, and sends pixel data through the model. AIPM answers structured questions on loopback:
Question | Screenshot | AIPM tool |
Is the render still running? | ~2,765 tokens |
|
What's the console output? | screenshot + OCR |
|
Did the export finish? | poll + screenshots |
|
~94–98% fewer perception tokens per action vs screenshots (2,765 → ~60 tokens per query; the two inputs are the assumptions block of GET /analytics/summary, not a benchmark).
Related MCP server: Windows-MCP
Quick start
1. Start the backend
Ensure AIProcessManager.exe is running in your system tray.
2. Configure your MCP client
Claude Desktop — claude_desktop_config.json:
{
"mcpServers": {
"ai-process-manager": {
"command": "node",
"args": ["C:\\path\\to\\ai-process-manager\\mcp\\server.js"]
}
}
}Cursor and other stdio MCP clients take the same command / args pair. Optional env var
AIPM_API overrides the API base URL (default: read from
%LOCALAPPDATA%\AIProcessManager\endpoint.txt, else http://127.0.0.1:9147).
Optional env var AIPM_AGENT_NAME names this agent in the API's activity log (default mcp).
Every request is sent with User-Agent: AIPM-Agent/<name> (<client>) mcp:<client>, and the API
extracts <name> into the agent field of /audit, /activity and /notes. Use it when several
agents share one MCP client, so GET /activity can tell them apart:
"env": { "AIPM_AGENT_NAME": "revisor" }The name is normalized to [a-z0-9._-], max 40 chars. It is an identity the caller declares about
itself — observability and coordination only, never authorization. Anyone can write any name here;
nothing in the product grants or denies permission based on it. The only barrier remains the
deny-by-default action allowlist, which is per app.
3. Restart the MCP client
Tools appear as ai-process-manager. Call health_check first.
Tools (28)
The 15 perception tools and the two UI probes are annotated readOnlyHint: true — clients may
auto-approve them. The seven UI actions are readOnlyHint: false and refuse to run unless the user
opts in (see Privacy).
Tool | Title | Endpoint |
| Does the AIPM already do this? Ask before writing code or reaching for the shell |
|
| Status + which action family to use + real-input arm state |
|
| Check if a process is running |
|
| List running processes |
|
| List open windows |
|
| Get system status (CPU, RAM, GPU, disk) |
|
| Show taskbar apps |
|
| Read text from a window |
|
| Get a window's UI element tree |
|
| Wait until a condition is met |
|
| List recent PC events |
|
| Check a file or folder |
|
| Get learned recipes for an app |
|
| Get token economy statistics |
|
| View API audit log |
|
| Read the local agent noticeboard |
|
UI tools — state first, then opt-in actions:
Tool | Title | Endpoint |
| Find interactive UI elements |
|
| Find the UI element under a screen pixel |
|
| Act by intent (decides UIA vs real input) |
|
| Click a UI element |
|
| Set the value of a UI field |
|
| Type text with synthetic keystrokes (last resort) |
|
| Drag an element onto another |
|
| Select an option in a dropdown |
|
| Bring a window to the foreground |
|
Local telemetry (writes to the local store, metadata only):
Tool | Title | Endpoint |
| Report task outcome (telemetry) |
|
| Report UI action outcome (telemetry) |
|
Local agent coordination (stored only on this machine):
Tool | Title | Endpoint |
| Post a note to the agent noticeboard |
|
Reading deep UI trees (Chromium/Electron)
get_ui_tree defaults to depth=4, which is enough for native Win32 apps. Chromium/Electron
apps (VS Code, Slack, Discord, Claude Desktop, Teams) bury content under ~10 levels of
Pane/Group wrappers — at low depth the response is only empty panes. Ask for depth=15-20
there (max 30) and cap cost with max_nodes (default 200, max 1000): max_nodes is the cost
brake, not depth. When the response has truncated: true, the tree was cut — repeat with a
higher depth/max_nodes before concluding anything about the window.
Acting: two families, and picking the wrong one is the classic failure
This is the part agents get wrong by default, because every other computer-use tool they have ever seen needs the window in front. Here, most of them do not:
ui_act picks between the two families below for you — try it first for click / type / pick.
It attempts UI Automation and drops to real input by itself only when UIA reports the pattern is
missing on that element (never for intent=escolher, where a physical click would trigger the
element instead of picking an option inside it), and tells you which one ran in mecanismo
(uia/fisico). It also refuses an ambiguous target with 409 alvo_ambiguo and hands back the
candidates with their rect, instead of silently taking the first name match the way the tools
below do. Read on for what each family means and when to call one of them directly instead.
Family | Tools | Needs the window in the foreground? |
By element (UI Automation) |
| No. Works with the window behind others, unfocused, while the user keeps typing elsewhere. |
By synthetic input |
| Yes. Refuses with |
Why: the first family talks to the app's accessibility provider and ignores z-order; the second
emits real keyboard/mouse events, which Windows delivers to whatever is in the foreground — not
to the hwnd you passed.
Calling the families directly: start with by-element, every time. Do not call focus_window
"just in case" before it: that steals the user's foreground and buys nothing. Reach for ui_send_keys only
after ui_set_value actually returned valor_nao_aplicado on that field (a contenteditable
in a controlled framework), and for ui_drag only for what genuinely only moves by dragging —
there is no UIA pattern for dragging.
If focus_window itself fails with foco_nao_aplicado, do not loop on the second family: it
cannot succeed without the foreground. health_check reports the real-input arm (ForgePilot)
under executor/forgepilot, and warns when it is installed but stopped.
Privacy
No data about you leaves the machine. There is no remote telemetry, no cloud service, and no account. There is exactly one outbound request, it carries nothing about you, and you can turn it off:
Update check. Once a day the engine asks GitHub's public Releases API whether a newer version exists. The request goes to GitHub, not to us: no identifier, no telemetry, nothing about your machine or your apps. It can be switched off in the tray menu, and when off no outbound request is made at all. Everything else in AIPM remains local.
Network
The backend listens on the loopback interface only (
127.0.0.1:9147) — not on0.0.0.0, so nothing on the LAN can reach it.Every request must carry a
Hostheader oflocalhostor127.0.0.1; anything else is rejected with403 forbidden_host(anti DNS-rebinding, so a web page you visit cannot drive the API).This MCP server makes exactly one kind of outbound call: HTTP to that local address. It sends a
User-Agentofmcp:<your MCP client name>so the local audit log shows which agent asked.
Read-only by default
The 15 perception tools plus
ui_findare plain reads.ui_find_atis also semantically read-only, but its pixel probe uses a guardedPOST; all 17 carryreadOnlyHint: true.The 7 UI action tools (
ui_act,ui_invoke,ui_set_value,ui_send_keys,ui_drag,ui_select_option,focus_window) return403 action_denieduntil the user does both: enable Agent actions in the tray menu and add the target process to a per-app allowlist. Neither is on by default, and the setting is per app — allowing Notepad does not allow the browser.
What the telemetry stores — metadata only
Recorded: app/process name, element role (Button, Edit…), the element name the agent
asked for, the action (invoke/set_value/focus), success or failure, duration in ms, and a
failure reason. Two mechanical invariants make "metadata only" verifiable rather than a promise:
An action record stores what the agent requested, not what the app displayed. The role and name come from the agent's own
role=/name_contains=arguments. The name of the element actually resolved on screen is never written, so what the tool saw never becomes telemetry.The failure reason is a closed vocabulary (
elemento_nao_encontrado,ui_timeout,erro_uia,outro, …). Any other string is stored asoutro. An exception message — which could carry a file path or on-screen text — therefore cannot reach the disk.
Never stored: screen contents, window text read by read_window, the text typed by
ui_set_value (value=), file contents, keystrokes, screenshots. The passively learned UI shape
(ui_shape) holds only counts, UIA role names, depth and booleans: exposes_text says whether
text exists, named_controls says how many elements have a name — never the text itself.
Masking: before any request is recorded, value= and api_key= are replaced with ***, so
neither get_audit_log nor the on-disk query log can reveal typed text or a secret.
One honest nuance: the audit/query log stores the request line, so other query arguments
stay readable — e.g. check_file(path=D:/videos/out.mp4) is logged as that path, and
check_process(title_contains=...) keeps that fragment. It is a local log of what the agent
asked for. Only value= and api_key= are masked.
Where the data lives, and how to delete it
Everything is under %LOCALAPPDATA%\AIProcessManager\:
Path | Contents |
| telemetry: tasks, actions, queries, UI shapes, counters |
| tamper-evident hash-chained log of reported/executed actions (metadata only) |
| whether the action tier is on + the per-app allowlist |
| update-check preference (on/off) and its cache: last check time, latest tag, dismissed tag |
| app log and the API address currently in use |
To erase: quit the app from the tray, then delete the folder (or just db\ to reset learning and
the economy counters; deleting actions.cfg turns the action tier back off). Nothing is written
anywhere else, and the /audit ring buffer lives in memory only — it disappears when the app
closes. You can inspect everything the store holds with get_audit_log, get_economy_stats, and
GET /analytics/actions.
Troubleshooting
Symptom | Meaning | Fix |
| AIProcessManager.exe is not running | Start it from the Start menu (green tray icon) |
| Action tier off, or app not in the allowlist | Tray menu → Agent actions, then allow that app |
| The user paused the API from the tray | Tray menu → Resume API |
Empty |
| Retry |
Every error payload carries a next_action field with the same guidance.
Coverage (measured, honest)
Stack | Read state | Semantic actions |
Win32 / WinForms / WPF / UWP | ✅ full | ✅ |
Delphi VCL (legacy business apps) | ✅ full | ✅ |
Console (cmd, PowerShell, Windows Terminal) | ✅ text | — |
Chromium / Electron (Chrome, Cursor, Claude Desktop) | ✅ after waking the a11y tree | ✅ |
Electron on the legacy MSAA bridge (e.g. Discord) | ⚠️ wakes, but ~120 ms/node — too slow today | ⚠️ |
Java Swing | ⚠️ needs the Java Access Bridge | roadmap |
We publish what does not work yet on purpose — you should know the edges before relying on it.
Behaviour note: the first read of a Chromium/Electron window asks it to activate its accessibility tree — the same standard request a screen reader makes. That app then keeps computing accessibility data (a CPU cost in that app) and does not go back to sleep on its own. Native Win32 apps are unaffected.
Free vs paid
Free & open (MIT): this MCP server.
Free (closed): the
AIProcessManager.exebackend — the sensor. Yours to run at no cost.Paid: AIPM Pilot, the autonomous computer-use agent that drives apps end-to-end using AIPM's structured perception.
Support the project
If AIPM saves you tokens, consider sponsoring.
License
MIT for the MCP server. The backend and AIPM Pilot are separate products.
Available Tools
20 toolscheck_fileARead-only
File or folder status: exists, size, last modified, locked?, locking process. Ideal for checking if a render/export finished without opening Explorer.
Inputs: path (required).
check_processARead-only
Check if a process is running on the user's Windows machine — no screenshot. Filter by executable name fragment (e.g. "python", "ffmpeg") and/or window title (e.g. "RENDER VIDEO 02"). Returns PID, CPU%, RAM, title, command line, start time. Command lines are truncated to 120 chars unless full_command_line=true. Results are capped at 10 matches, windowed processes first.
Inputs: name_contains, title_contains, full_command_line.
focus_windowAIdempotent
Bring a window to the foreground. REQUIRES action tier + app allowlist.
Inputs: hwnd, title_contains.
get_app_knowledgeARead-only
Query what AIPM learned locally about an app: successful (role, name) -> action recipes, plus common_failures (targets that keep failing — do not retry them). Call BEFORE acting in an app. Even with known=false you may get ui_shape: the shape of the app's UI tree (counts, roles, depth) learned passively from earlier reads — useful cold-start map. Pass the process name as shown in task manager (e.g. "notepad.exe", "chrome.exe").
Inputs: name (required).
get_audit_logARead-only
Recent API audit log: which agents called which endpoints and when. Works even when the API is paused. For compliance and debugging agent behavior. Secrets and typed text (api_key=, value=) are masked before being recorded.
Inputs: limit.
get_economy_statsARead-only
Local economy metrics: tokens and time saved by structured state vs screenshots, queries served, task/action success rates, top apps, 24h/7d trends. Two independent views of savings — economy_measured_by_api (measured here) and economy_reported_by_agents (self-reported): never add them together. The store block states which local database the totals came from.
Inputs: no named parameters.
get_recent_eventsARead-only
Last 24h of PC events: process_started, process_ended (with duration), window_focused, file_changed. Useful for "what happened while I was away" (e.g. when did the render finish?).
Inputs: type, limit.
get_system_statusARead-only
Machine snapshot: CPU%, RAM used/total, GPU name and usage, disk free space per drive, network, uptime, active displays.
Inputs: no named parameters.
get_taskbarARead-only
Human view of the taskbar: pinned apps and running apps grouped with window titles.
Inputs: no named parameters.
get_ui_treeARead-only
UI Automation tree of a window (roles, names, states) — the accessibility snapshot of a native Windows app. depth: default 4, max 30. max_nodes: default 200, max 1000 — max_nodes is the cost brake, NOT depth. Win32 apps expose content within 4-6 levels. Chromium/Electron apps (VS Code, Slack, Discord, Claude Desktop, Teams) bury real content under ~10 levels of Pane/Group wrappers: at low depth you get only empty Panes and conclude, wrongly, that the window is empty. Measured on Claude Desktop: depth=8 -> 15 useless nodes; depth=17 -> 115 nodes, 87 of them named (~8 KB) — the tree saturates at 17. So for Chromium/Electron ask for depth=15-20 and cap cost with max_nodes. The response reports depth, max_nodes, nodes, depth_reached and truncated; when truncated=true the tree was cut (read next_action) and you should repeat with a higher depth and/or max_nodes before concluding anything about the window. For finding a clickable target prefer ui_find (already filtered to interactive elements).
Inputs: hwnd, depth, max_nodes, title_contains.
health_checkARead-only
Ping the AI Process Manager backend. Returns version, API URL, and whether the local service is reachable. Call this first in a new session.
Inputs: no named parameters.
list_processesARead-only
List running processes sorted by CPU. Use "top" to limit (default 25, max 200). Prefer check_process when searching for one process. Command lines truncated unless full_command_line=true.
Inputs: top, full_command_line.
list_windowsARead-only
List open desktop windows: title, process, minimized/maximized state, position, Z-order, and which has focus. Replaces screenshots for "what is open".
Inputs: no named parameters.
read_windowARead-only
Read TEXT from inside a window via UI Automation — no screenshot. Works with consoles (cmd, PowerShell, Windows Terminal), editors, and most native apps. Typical use: read render progress from a console ("frame 4812/5000"). Identify the window by title_contains or hwnd from list_windows.
Inputs: hwnd, max_chars, title_contains.
report_action_outcomeA
Report one UI action outcome (invoke/set_value/focus). Feeds per-app recipes in get_app_knowledge. Metadata only — never screen content or typed text. Report FAILURES too (ok=false plus reason): they become common_failures and stop the next agent from repeating the same dead end.
Inputs: app (required), action (required), ms, ok, +3 more.
report_task_outcomeA
Report task outcome to local telemetry (metadata only — never screen content). Call at END of a computer-use task. Feeds get_app_knowledge and get_economy_stats.
Inputs: app (required), task, notes, steps, +4 more.
ui_findARead-only
List interactive UI elements in a window (buttons, fields, menus first; grid cells last). Each item has a stable global element_index plus can_invoke/can_set_value flags. Paginated (total/offset/limit/has_more). Read-only — no action tier required. Pass element_index to ui_invoke/ui_set_value.
Inputs: hwnd, role, limit, offset, +2 more.
ui_invokeADestructive
Semantically CLICK a UI element via UI Automation (button, menu item, checkbox). Target by name_contains or element_index from ui_find. REQUIRES user-enabled action tier + app allowlist; otherwise returns action_denied. Confirm with the user before acting.
Inputs: hwnd, element_index, name_contains, title_contains.
ui_set_valueADestructive
Set text in an editable field via UI Automation (no key simulation). REQUIRES action tier + allowlist. Check can_set_value in ui_find; modern apps (e.g. Win11 Notepad) may not expose fields. Confirm with the user first.
Inputs: value (required), hwnd, element_index, name_contains, +1 more.
wait_forARead-only
Long-poll until a condition is met (or timeout). Replaces polling loops. Conditions: process_ended, process_started, file_stable (render/download done), file_exists, window_title_contains. Max 50s per call; if satisfied=false, call again to keep waiting.
Inputs: timeout, stable_for, file_exists, file_stable, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool has a clearly distinct purpose and resource/action, with overlapping pairs (e.g., check_process vs. list_processes, list_windows vs. get_taskbar) explicitly disambiguated in their descriptions. The ui_* tools are further segmented by operation (find, read, invoke, set_value), leaving no ambiguity.
Tool names predominantly follow a verb_noun snake_case pattern (get_, list_, check_, report_), but a few deviations like 'health_check' and 'wait_for' break consistency. The ui_* prefix creates a coherent subgroup, though it mixes verb positions (ui_find vs. ui_set_value).
At 20 tools, the server is on the heavy side but each tool earns its place given the combined scope of process monitoring, UI automation, and telemetry. The count slightly exceeds the comfortable 3-15 range but is not bloated.
The tool set covers core workflows: observing processes/windows, reading and interacting with UI, waiting for conditions, and reporting outcomes. Notable gaps include lack of direct process start/termination and no file management beyond single-file checks, which agents may need to work around.
Maintenance
Related MCP Connectors
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Up to 90% fewer tokens: deterministic, declared tool calls, each with a receipt and an audit trail.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Shared distillation cache for AI agents — every fetch ~73-89% fewer tokens via a shared cache.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with Windows operating systems through native UI automation, file navigation, application control, and system commands. Provides seamless integration between LLMs and Windows environments for tasks like clicking, typing, launching apps, and capturing desktop state.MIT
- AlicenseNot gradedqualityDmaintenanceA lightweight server that enables AI agents to interact natively with the Windows operating system for tasks like UI automation and application control. It allows LLMs to perform file navigation, simulate user input, and manage windows without requiring specialized computer vision models.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to automate real desktop applications across Windows, Linux, and macOS using incremental screen perception, accessibility trees, OCR, and window management, dramatically reducing token usage compared to screenshot-per-step approaches.32 PyPI4MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control and interact with the Windows operating system, including file navigation, application control, UI automation, and QA testing.MIT