vision-bridge
A single MCP server that lets any agent see and act on the screen across native desktop apps, Electron/Chromium windows, and the browser undetected, providing four tools (capture, act, find, wait_for) for UI interaction via structured text.
README
vision-bridge
One vision layer for AI agents on Windows — a single MCP server that lets any agent see and act on the screen: native desktop apps, Electron/Chromium windows, and the browser — undetected.
Most agent setups end up with a pile of disconnected tools: one for the browser,
one for native windows, one for OCR, each with its own quirks. vision-bridge
hides all of that behind four verbs — capture, act, find, wait_for —
so the agent asks "what's on screen?" and "click this" the same way
everywhere. The router picks the right backend underneath.
It is designed for text-only brains too (e.g. DeepSeek, local LLMs): the screen is returned as structured text, not pixels, so an agent that can't consume images can still understand and drive the UI.
- 🖥️ Desktop — native Win32/WPF/UWP via UI Automation (fast, exact, coordinate-free clicks).
- 🧩 Electron/Chromium — OCR fallback when the a11y tree is blind.
- 🌐 Browser, undetected — drive your real Chrome over CDP (live cookies,
sessions never drop) or a stealth browser (patchright, persistent profile,
navigator.webdriver = false). - 🔌 Standard MCP — stdio transport, works with Claude Desktop, Cline, Cursor, or any custom agent, no code changes.
Deep-dive design & rationale (RU):
docs/01_architecture.md
Why (for humans)
An agent that "sees the screen" usually means gluing Playwright + some UIA library
- Tesseract together and teaching the model three different mental models. This project makes that one contract. Add a backend, keep the same four tools. The agent never learns "how" — only "what".
Why (for agents)
If you are an LLM agent reading this to use the server: call capture(target) to
get a list of Elements (each with a stable id) plus a flat text dump of the
screen. Then call act(element_id, action, ...). You never compute coordinates or
CSS selectors — you address elements by the id from the last capture/find.
id prefixes tell you the backend (u=desktop, o=OCR, b=browser); the server
routes automatically.
Tools
| Tool | Purpose |
|---|---|
capture(target, mode="auto") |
Screen of a target → {ok, elements[], text, method_used} |
act(element_id, action, text="", value="") |
click / double_click / type / set_value / focus / read / scroll |
find(query, target="", mode="auto") |
Locate one element by name/value |
wait_for(query, target="", timeout_s=10, mode="auto") |
Poll until an element appears |
browser_open(mode, url, cdp_url, user_data_dir, channel, headless) |
Connect/launch a browser |
browser_goto(url) |
Navigate the open browser |
browser_close() |
Close the browser session |
target: a window title substring for desktop, or "browser" for the page.
Empty target = foreground window. mode: auto | uia | ocr | browser.
Element
{
"id": "u17", // stable ref; prefix = backend (u/o/b)
"role": "button", // button | textbox | link | text | ...
"name": "OK",
"value": null,
"bbox": [120, 80, 60, 24], // screen coords [x, y, w, h]
"state": { "enabled": true, "focused": false, "visible": true, "checked": null },
"backend": "uia"
}
Install
uv sync # core: MCP + pydantic
uv sync --extra desktop # UIA + OCR (uiautomation, pytesseract, mss)
uv sync --extra browser # stealth/CDP browser (patchright)
OCR needs the Tesseract-OCR binary (not the pip package): install it (e.g.
winget install UB-Mannheim.TesseractOCR). For extra languages, pull the models
into a local tessdata/ folder (no admin rights needed — picked up automatically):
uv run python scripts/download_langs.py # Russian + English (default)
uv run python scripts/download_langs.py deu fra # any Tesseract languages
Russian is supported out of the box via the script above (rus+eng). The backend
finds tessdata/ next to the project or via VISION_BRIDGE_TESSDATA.
Run
uv run vision-bridge # stdio server
uv run mcp dev src/vision_bridge/server.py # MCP Inspector
Connect to an agent
Any MCP client with a command/args config:
{
"servers": {
"vision-bridge": {
"command": "uv",
"args": ["run", "--directory", "/path/to/vision-bridge", "vision-bridge"]
}
}
}
Examples
Desktop:
capture("Notepad") # → elements + text of the window
act("u0", "type", text="hello world") # type into the document
act("u0", "read") # → { content: "hello world" }
Browser, undetected — real Chrome (max stealth, keeps your sessions):
# start Chrome with a debug port and your profile first:
chrome.exe --remote-debugging-port=9222 --user-data-dir="C:\path\profile"
browser_open(mode="cdp", cdp_url="http://localhost:9222")
capture("browser")
act("b3", "type", text="search query")
Browser — standalone stealth profile:
browser_open(mode="stealth", url="https://example.com",
user_data_dir="C:\\path\\profile") # navigator.webdriver = false
How routing works
capture(target, mode="auto")
│
target=="browser" ───┼─── desktop window ───────────────┐
│ │ │
┌────▼────┐ UI Automation a11y tree (few elements? →)
│ browser │ ┌──────────────┐ ┌──────────────┐
│ cdp / │ │ UIA │ ── fallback ──▶ │ OCR (Tess.) │
│ stealth │ └──────────────┘ └──────────────┘
└─────────┘
Status & limits
Stages 0–3 implemented and tested live on real apps (Notepad, Chrome). Roadmap: agent skill + scenario tests, optional OmniParser for clickable boxes instead of plain OCR text.
- Stealth is not 100% undetectable (Cloudflare/DataDome evolve) — prefer
mode="cdp"against real Chrome for maximum stealth and session persistence. - Console output with non-ASCII: run under
PYTHONUTF8=1(does not affect the UTF-8 MCP protocol).
License
MIT — see LICENSE.
Кратко (RU)
Единый слой зрения для AI-агентов на Windows как один MCP-сервер. Четыре
глагола — capture, act, find, wait_for — работают одинаково для нативных
окон, Electron/Chromium (через OCR) и браузера. Экран отдаётся текстом, поэтому
подходит даже текстовым моделям (DeepSeek и др.). Браузер — незаметно: реальный
Chrome по CDP (живые куки, сессии не рвутся) или стелс-браузер на patchright
(navigator.webdriver=false). OCR понимает русский (uv run python scripts/download_langs.py). Архитектура и план — в
docs/01_architecture.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。