WinPilot Computer Use MCP

WinPilot Computer Use MCP

Enables AI agents to control Windows GUI applications like a human using screen capture, OCR, mouse and keyboard input, and window management, with safety levels and memory.

Category
访问服务器

README

WinPilot Computer Use MCP

WinPilot is a Windows computer-use MCP server for Codex-style agents. It operates GUI applications the same way a human does:

  • screen capture
  • computer vision
  • OCR
  • mouse movement
  • keyboard input
  • window management

It intentionally avoids application APIs, browser automation APIs, plugins, extensions, and application integrations. Chrome, Photoshop, Elementor, file dialogs, installers, and desktop apps are all treated as pixels plus OS input.

Status

This repository contains the first production-oriented implementation skeleton:

  • MCP tools for observation, element lookup, waiting, input, windows, screenshots, workflows, permissions, and task execution.
  • A vision pipeline with OCR, UI primitive detection, scrollable/dialog heuristics, screenshot diffing, annotated screenshots, and a semantic desktop model.
  • A guarded executor with per-action safety options, before/after screenshots, human-like mouse motion, keyboard entry, and structured logging.
  • Memory and workflow recording so successful layouts and demonstrations can be reused.

Optional advanced detectors such as PaddleOCR, YOLO, OmniParser, Florence2, and Grounding DINO are wired through extension points. The baseline works with local screenshots, OpenCV, Tesseract, and Windows input primitives.

Install

python -m venv .venv
. .venv\Scripts\Activate.ps1
pip install -e ".[dev]"

Install Tesseract OCR separately and make sure tesseract.exe is on PATH.

Optional vision stack:

pip install -e ".[vision]"

Run MCP Server

win-pilot-mcp

Or:

python -m win_pilot_mcp.mcp.server

For a background/local HTTP MCP endpoint:

$env:WIN_PILOT_MCP_TRANSPORT="streamable-http"
$env:WIN_PILOT_MCP_HOST="127.0.0.1"
$env:WIN_PILOT_MCP_PORT="8765"
python -m win_pilot_mcp.mcp.server

Endpoint:

http://127.0.0.1:8765/mcp

Core Loop

Every task is executed as:

  1. Observe the screen.
  2. Think and choose one next action.
  3. Act through mouse, keyboard, or window controls.
  4. Re-observe.
  5. Verify the result.
  6. Retry or recover if needed.

The planner never executes long blind action sequences.

Safety Levels

Actions are classified into:

  • read_only
  • standard
  • full_control
  • dangerous

Each action accepts:

{
  "dryRun": false,
  "requireConfirmation": true,
  "takeScreenshotBefore": null,
  "takeScreenshotAfter": null,
  "verificationMode": "auto"
}

The server defaults to standard, which allows normal navigation/input but blocks dangerous actions unless the permission level is raised. Screenshot verification defaults to auto: low value actions such as mouse move, scroll, focus, key press, hotkey, and wait skip before/after screenshots, while uncertain targets, text entry, clicks, drags, window changes, full-control, and dangerous actions still capture screenshots for accuracy. Set verificationMode to always or explicit takeScreenshotBefore / takeScreenshotAfter booleans to override.

MCP Tools

Representative tools:

  • analyze_screen
  • configure_optimization
  • clear_observation_cache
  • get_performance_stats
  • analyze_application
  • get_desktop_model
  • get_canvas_state
  • get_photoshop_state
  • get_elementor_state
  • get_browser_state
  • get_word_state
  • get_excel_state
  • get_powerpoint_state
  • get_vscode_state
  • get_illustrator_state
  • get_player_state
  • get_settings_state
  • list_supported_apps
  • get_shortcuts
  • run_app_shortcut
  • get_vision_providers
  • detect_objects
  • find_element
  • wait_for_element
  • wait_until_disappears
  • wait_until_stable
  • detect_state_changes
  • compare_screenshots
  • capture_screen
  • capture_region
  • create_annotated_screenshot
  • move_mouse, click, double_click, right_click, drag, drag_and_drop, draw_path
  • scroll
  • type_text, press_key, hotkey, hold_key, paste_text, select_all
  • list_windows, focus_window, maximize_window, resize_window
  • get_permission_level, set_permission_level
  • get_memory, remember_preference, remember_element, get_remembered_element
  • start_recording, stop_recording, list_workflows, learn_from_user, replay_workflow
  • read_logs
  • recover_from_unexpected_state
  • decide_next_action
  • plan_task
  • execute_task

Feature Coverage

  • Screen understanding: OCR text, buttons, icons, toolbars, menus, tabs, dropdowns, checkboxes, radio buttons, inputs, dialogs, images, canvas areas, loading indicators, context menus, notifications, file pickers, scrollables, selected elements, and a semantic desktop model.
  • Element lookup: text, type, description, image template, color, position, and remembered locations.
  • Vision stack: Tesseract/PaddleOCR OCR, OpenCV primitives and similarity, YOLO adapter, and explicit provider hooks for OmniParser, Florence2, and Grounding DINO.
  • Input: human-like mouse movement, click variants, scroll, drag/drop, drawing paths, text typing, key presses, hotkeys, key holds, paste, and select-all.
  • Windows: list, active window, focus, move, resize, maximize, minimize, and close.
  • Screenshots: full screen, region, window, comparison, change detection, annotated captures, and stability waits.
  • Agent loop: observe, plan one step, act, verify, recover, and retry. plan_task exposes the planned steps; execute_task executes one action at a time with re-observation.
  • Recovery: detects loading, dialogs, crashes, visible errors, and authentication blocks, then recommends the next recovery action.
  • Photoshop and Elementor: screenshot/OCR-only semantic state helpers for panels, canvas, widgets, navigator, publish controls, layers/properties/export dialogs, active tool, and inferred document size.
  • Professional app profiles: Word, Excel, PowerPoint, VSCode, Illustrator, media players, Windows Settings, and browsers expose semantic state helpers plus shortcut maps for faster actions without relying on app APIs.
  • Shortcut-first control: common commands such as word bold, excel format_cells, powerpoint new_slide, vscode command_palette, illustrator pen_tool, player play_pause, and settings open_settings map to keyboard shortcuts before falling back to mouse/vision.
  • Memory and workflows: remembered elements, preferences, action logs, macro recording, human demonstration capture, workflow listing, and replay.
  • Safety: read-only, standard, full-control, and dangerous permission levels, plus dryRun, requireConfirmation, and before/after screenshots on mutating actions.

Project Layout

src/win_pilot_mcp/
  mcp/
  agent/
  vision/
  executor/
  planner/
  memory/
  tools/
  workflows/
  permissions/
  logs/
  screenshots/

Runtime artifacts are written to runtime/ by default.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选