computer-access
Browser-family adapter that captures user-authorized Arc window text and layout geometry for local history search, read, and layout queries through the MCP tools.
Browser-family adapter that captures user-authorized Brave window text and layout geometry for local history search, read, and layout queries through the MCP tools.
Browser-family adapter that captures user-authorized Firefox window text and layout geometry for local history search, read, and layout queries through the MCP tools.
Browser-family adapter that captures user-authorized Helium window text and layout geometry for local history search, read, and layout queries through the MCP tools.
Terminal-family adapter that captures user-authorized iTerm2 terminal text and window layout for local history search, read, and layout queries through the MCP tools.
Browser-family adapter that captures user-authorized Opera window text and layout geometry for local history search, read, and layout queries through the MCP tools.
Built-in Slack adapter that captures user-authorized Slack surface text and window layout for local history search, read, and layout queries through the MCP tools.
Browser-family adapter that captures user-authorized Vivaldi window text and layout geometry for local history search, read, and layout queries through the MCP tools.
Terminal-family adapter that captures user-authorized Warp terminal text and window layout for local history search, read, and layout queries through the MCP tools.
Custom WeChat 4.x adapter using Qt extractSurface and AXParent ownership proof to capture user-authorized WeChat surface text and layout for local history queries through the MCP tools.
Terminal-family adapter that captures user-authorized WezTerm terminal text and window layout for local history search, read, and layout queries through the MCP tools.
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.
computer-history-mcp
Host-agnostic local desktop history daemon, Web Control Panel, and scoped Model Context Protocol (MCP) server.
computer-history-mcp captures user-authorized desktop text, selections, input text, and window layout geometry into a local AES-256-GCM segment store. Humans manage permissions, capture scope, retention, and token leases through a local Web UI; AI agents (Antigravity, Claude Code, Cursor, etc.) query retained context through a least-privilege MCP interface.
Architecture
+---------------------------+ Admin Bearer Token +-------------------------------+
| Browser Control Panel | <------------------------------> | computer-history-mcp serve |
| http://127.0.0.1:43180/ | REST /api/* + Static | (Node HTTP Daemon, 127.0.0.1)|
+---------------------------+ +---------------+---------------+
|
+---------------------------+ Scoped Client Lease Token |
| AI Agents (Antigravity, | POST /mcp (Streamable HTTP) |
| Claude Code, Cursor) | <------------------------------------------------+
| or `stdio` proxy CLI | Tools: status/search/read/layout/pause |
+---------------------------+ |
+---------------------------+---------------------------+
| |
v v
+------------------------------+ +------------------------------+
| SegmentStore (AEAD Log) | | Native Collector Supervisor |
| - store.lock (flock/Win32) | | - macOS AX / Windows UIA |
| - store.meta + seg-*.cah | | - AppAdapter Meta-Framework |
| - Keychain / DPAPI 32B Key | | - Pre-read Privacy Gates |
+------------------------------+ +------------------------------+Related MCP server: computer-copilot
Quickstart
macOS (Full Local Daemon + Native AX Collector)
Requirements: Node.js >= 24.12.0, pnpm, and Xcode Command Line Tools (swift / clang).
pnpm install
pnpm build:storage-lock
pnpm build:native
pnpm build
pnpm serveWindows (Local Daemon + Native Rust UIA Collector & DPAPI Key Store)
Requirements: Node.js >= 24.12.0, pnpm, Visual Studio 2022/2026 Build Tools (Desktop development with C++ workload + Windows 11 SDK), and Rust (stable-x86_64-pc-windows-msvc).
pnpm install
pnpm build:native
pnpm test
pnpm serveWindows Collector Status: Phases 0–5 (full Windows parity except macOS-only
textMarkers) are shipped in the unified Rust (windows-rs) workspace (native/windows/->contract, native Win32 DPAPIcomputer-history-key-store.exe, andcomputer-history-collector.exe), including the out-of-process MTA COM UIA worker with Job Object isolation, shared-memory progress fence, andReadRecoverytimeout recovery; WTS/OpenInputDesktoplock detection;ES_PASSWORD/UIA_IsPasswordPropertyId/incognito/policy pre-read privacy gates; focused text (uia.text/uia.value), selection (uia.text), and window surface (uia.tree); coarseinput.activity(win32.listen-onlyvia Win32 Raw Input); foreground top menu barmenu.action(uia.menu); liveinput.text(win32.unicode) with non-mutatingToUnicodeEx(..., wFlags = 0x0004)translation and hybrid CJK IME handling (modern TSF/UIA controls via agile MTA COMIUIAutomation3::AddTextEditTextChangedEventHandlerwithTextEditChangeType_Compositionprefix purge +VK_RETURNsuppression and gatedTextEditChangeType_CompositionFinalizedcommitted Unicode capture; legacy non-TSF IMM32 controls where UIATextEditevents are unavailable via bounded<= 25msSendMessageTimeoutW(SMTO_ABORTIFHUNG)IMC_GETOPENSTATUS/IMC_GETCONVERSIONMODE(IME_CMODE_NATIVE) probe suppressing raw pinyin/Return leakage while final committed text is captured viatext.snapshot, never calling blockingSendMessageW);--permissionsand--navigate-source; per-app tuning across all 10 built-in Windows adapters (including customWeChatAdapter&FigmaAdapter, UIALandmarkType/AriaRole/StatusBarcanonical mapping, and cross-platformlayout-guides/*.md); and Windows default capture options enabling all channels by default (inputText,inputActivity,menuActions,selectionCapture,captureScope: 'window') with only macOS-specifictextMarkersdisabled (not-applicable-windows)—see native/windows/README.md and docs/roadmap.md.
When computer-history-mcp serve starts, it listens on 127.0.0.1:43180 and prints a local login URL:
Web UI: http://127.0.0.1:43180/#token=<admin-token>
MCP HTTP: http://127.0.0.1:43180/mcpOpen the printed
Web UIlink in your browser (the#token=...fragment is stored insessionStorageand immediately cleared from the URL bar).Click Initialize Encryption Key on the Overview & Permissions tab, grant macOS Accessibility (and optional Input Monitoring) on macOS (Windows UIA requires no separate TCC grant), and click Start Capture.
Open MCP Access (Client Tokens) to generate a scoped token (
chmcp_...) for your AI client.
Connecting Antigravity / Claude / Cursor via MCP
After creating a Client Token in the Web Control Panel, click Copy HTTP MCP Config JSON or Copy stdio MCP Config JSON.
Option A: Streamable HTTP (Direct)
{
"mcpServers": {
"computer-history": {
"url": "http://127.0.0.1:43180/mcp",
"headers": {
"Authorization": "Bearer chmcp_<your_client_token>"
}
}
}
}Option B: stdio Proxy (Recommended for Local Source Checkout)
Use the full node and dist/server/cli.js paths (the Web Control Panel's Copy stdio MCP Config JSON button fills both paths automatically for your machine):
{
"mcpServers": {
"computer-history": {
"command": "/full/path/to/node",
"args": ["/full/path/to/repo/dist/server/cli.js", "stdio"],
"env": {
"COMPUTER_HISTORY_TOKEN": "chmcp_<your_client_token>",
"COMPUTER_HISTORY_URL": "http://127.0.0.1:43180/mcp"
}
}
}
}Exposed MCP Tools
Tool | Required Scope | Purpose |
|
| Service state, active capture scope, and retained time range |
|
| Search retained observations by keyword, bundle ID, kind, and time window |
|
| Read the full observation record by |
|
| Read window-relative node bounds and text from a surface snapshot |
|
| Read cross-platform per-app layout guides (or list available guides) for interpreting |
|
| Pause active capture immediately (cannot start or resume capture) |
|
| Hot-reload the native Collector ( |
Built-In Application Adapters
Both the macOS Swift Collector (native/macos/) and Windows Rust Collector (native/windows/) pair a thin accessibility security kernel with ten built-in adapters (generic fallback, seven declarative adapters, and two custom extractSurface adapters): vscode-family (Antigravity, VSCode, VSCode Insiders, Cursor, Windsurf), browser-family (Chrome, Chromium, Brave, Edge, Arc, Dia, Vivaldi, Opera, Firefox, Zen, Floorp, Comet, Atlas, Helium), terminal-family (Terminal, iTerm2, Ghostty, Warp, Kitty, WezTerm, Rio, Wave, Windows Terminal, Alacritty, ConHost, Mintty), qq, feishu, wechat (WeChat Qt 4.x custom extractSurface with AXIdentifier / Windows dotted AutomationId matching), slack (including Windows MSIX 91750d7e.slack), typora, and figma (Figma Design & Slides custom four-zone extractSurface). Paired cross-platform layout-guides/*.md (platform: all) document app-specific coordinate semantics for MCP clients. See docs/adapters.md.
Security Model Summary
Pre-Read Blocking: Password managers (1Password, Apple Passwords, Keychain Access, Bitwarden, KeePass, KeePassXC, Dashlane, LastPass, NordPass, Proton Pass),
com.apple.safari*, private/incognito browser windows, macOS and Windows System UI overlays, locked screens, active Secure Input, and password/protected UI fields are blocked before text extraction.Encrypted at Rest: Observations are encrypted frame-by-frame using AES-256-GCM in 4 MiB append-only segments (
seg-*.cah), keyed by a 32-byte master key in macOS Keychain (or Windows DPAPI) and guarded by an OS file lock (flockon POSIX,LockFileExviauv_get_osfhandleon Windows).Two-Tier Credentials: Full control requires the local
admin.token(protected byHost/Originvalidation against DNS rebinding and cross-site requests). Agent tokens store only SHA-256 digests on disk, carry explicit expiration/revocation, and never receive lifecycle start, policy edit, or Forget permissions.
Uninstall
macOS / Linux (and Git Bash on Windows)
Run the bundled uninstall.sh script from the repository root to stop running processes, revoke all keys, delete both current (computer-history-mcp) and legacy (computer-access-mcp) encrypted stores, and uninstall global CLI links plus local build artifacts:
# Preview every action without modifying anything
./uninstall.sh --dry-run
# Interactive uninstall (prompts before deletion)
./uninstall.sh
# Non-interactive uninstall (also supports repeatable --data-dir <path> and --keep-build)
./uninstall.sh --yesWhat uninstall.sh removes:
Processes: Stops running
computer-history-mcp/computer-access-mcpdaemons,stdioproxies, collectors, and key-store helpers.All Keys & Credentials:
Deletes all macOS Login Keychain master key entries under
com.computer-history.mcpand legacycom.computer-access.mcp(all accounts, includingmaster-keyandhistory.<deviceId>).Revokes
admin.token,auth-leases.json(invalidating all issuedchmcp_*and legacycamcp_*MCP client tokens),restart-resume.json, and Windowsmaster.key.dpapiinside each data directory.
Current & Legacy Data Stores: Deletes
~/Library/Application Support/computer-history-mcpand~/Library/Application Support/computer-access-mcpon macOS (or$XDG_DATA_HOME/~/.local/shareon Linux,%LOCALAPPDATA%under Git Bash, plus$COMPUTER_HISTORY_DATA_DIR,$COMPUTER_ACCESS_DATA_DIR, and any--data-dirpath), along with macOS runtime lock directories in/private/tmp/dsh-computer-{history,access}-<uid>.Installed CLI & Build Outputs: Uninstalls global
pnpm/npmlinks forcomputer-history-mcp/computer-access-mcpif present, and removes localdist/,native-bin/, and native build directories (unless--keep-buildis passed).
Windows (PowerShell)
Run the bundled uninstall.ps1 script from the repository root to stop running processes (and any matching scheduled tasks), zeroize and revoke DPAPI master keys, admin tokens, and MCP client leases, delete both current (%LOCALAPPDATA%\computer-history-mcp) and legacy (%LOCALAPPDATA%\computer-access-mcp) encrypted stores plus temporary fixture locks, and uninstall global CLI links and local build outputs:
# Preview every action without modifying anything
.\uninstall.ps1 -DryRun
# Interactive uninstall (prompts before deletion)
.\uninstall.ps1
# Non-interactive uninstall (also supports -DataDir <path[]> and -KeepBuild)
.\uninstall.ps1 -YesIf PowerShell script execution is restricted in your shell, run powershell -ExecutionPolicy Bypass -File .\uninstall.ps1 -DryRun (or -Yes).
Manual Cleanup (All Platforms)
Remove
"computer-history"/"computer-access"entries from your MCP client configuration (Antigravity, Claude Code, Cursor).On macOS, optionally revoke Accessibility and Input Monitoring permissions for your terminal/host app in System Settings -> Privacy & Security.
Delete the cloned repository directory if you no longer need the source checkout.
Documentation
See docs/README.md for the full design documentation index.
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
Read-only context from your desktop activity, so your AI assistant knows what you worked on.
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
Memory for your AI: what you saw on screen, said in calls and worked on, searchable by agents.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read what is on a Windows desktop as text — open windows, their contents, and what changed — using Win32 and UI Automation with optional NPU vision. Secrets, password fields, and private windows are withheld and personal data scrubbed on the user's PC before anything reaches the agent.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to operate Windows desktops through native UIA control, OCR text targeting, screenshots, and 54 tools for window, process, input, clipboard, file, registry, and document tasks with pause, observe-only, and privacy safeguards.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to inspect and operate Windows desktop applications and Chrome tabs in the background while the user retains mouse, keyboard, and window control. It provides consent prompts, hard deny lists, visible activity indicators, and an emergency stop for safer computer use.1Apache 2.0
- AlicenseAqualityBmaintenanceEnables local AI clients to observe and control a Windows desktop by listing and focusing windows, capturing screenshots, and—when input is explicitly enabled—performing clicks, typing Unicode text, and pressing keys or shortcuts. Input tools are gated off by default, and no shell execution or remote listener is exposed.6MIT