TouchBridge
TouchBridge is a local-first MCP server for iOS simulators and physical devices, enabling AI to see, control, test, and redesign iPhone screens through a structured screenshot bridge and tool surface.
README
<div align="center"> <img src="./assets/touchbridge-mark.svg" width="108" alt="TouchBridge logo" /> <h1>TouchBridge</h1> <p><strong>Let an AI see, control, test, and redesign what is on an iPhone.</strong></p> </div>
TouchBridge is a local-first MCP server for iOS simulators and physical devices. It gives ChatGPT, Codex, Claude, Cursor, and other MCP hosts a reliable action layer for app testing—and a structured screenshot bridge for voice-driven design work.
The design workflow is the unusual bit: “capture this screen for editing” produces a full-resolution image, redacted accessibility geometry, normalized editor layers, the sanitized spoken instruction, a preview, and a versioned manifest. An orchestrating agent can reconstruct the screen in Figma without reverse-engineering the raw accessibility tree.
Why TouchBridge
- One tool surface for simulators and real iPhones.
- Active-device filtering avoids stale, paired, or disconnected hardware.
- Sensitive text is redacted from tool results, logs, and design artifacts.
- Durable design snapshots are useful beyond a single agent session.
editor.jsonprovides named layers, normalized frames, interactivity, image scale, and Figma styling hints.- A loopback-only live viewer never binds to the public network.
doctordiagnoses the entire local toolchain in one call.- CI covers Node 20.17 and Node 22, with no production audit findings.
Voice-to-design loop
flowchart LR
V["Voice request"] --> H["ChatGPT / Codex / Claude"]
H --> T["TouchBridge"]
T --> I["iPhone or Simulator"]
T --> S["PNG + redacted UI map + manifest"]
S --> F["Figma / Slides / image editor"]
F --> H
H --> T
MCP servers do not need to call one another or share credentials. The host agent coordinates TouchBridge and the design tool.
Capabilities
| Capability | Simulator | Physical device |
|---|---|---|
| Tap, swipe, type, and press buttons | Yes | Yes |
| Scan interactive elements | Yes | Yes |
| Read the accessibility hierarchy | Yes | Yes |
| Capture temporary screenshots | Yes | Yes |
| Capture durable design snapshots | Yes | Yes |
| List and launch apps | Yes | Yes |
| Live browser viewer | — | Yes |
| Structured environment diagnostics | Yes | Yes |
Requirements
- macOS
- Xcode command-line tools
- Node.js 20.17 or newer
- Homebrew
- Developer Mode and trust pairing for a physical iPhone/iPad
Run from source
git clone https://github.com/MarshallBear1/touchbridge-mcp.git
cd touchbridge-mcp
npm install
npm run check
npm link
touchbridge --setup-all
Restart the MCP host, boot a simulator or connect an unlocked device, then ask:
Run TouchBridge doctor, find my active iPhone, and test the login flow.
Or:
Capture the current screen for editing, reconstruct the interactive regions in Figma,
and label anything that fails accessibility checks.
MCP tools
| Tool | Purpose |
|---|---|
get_execution_context |
Resolve the active simulator/device and viewer state |
doctor |
Diagnose Node, Xcode, Simulator, idb, image tooling, WDA, and targets |
scan_ui |
Return interactive elements with device-point coordinates |
describe_screen |
Return the visible UI/accessibility hierarchy |
device_action |
Perform one tap, swipe, key, button, or text action |
device_actions |
Perform a sequence of actions |
get_screenshot |
Capture a temporary screenshot for visual verification |
capture_design_snapshot |
Create a durable, redacted handoff with voice intent and Figma-ready layers |
list_devices |
List active simulators and physical devices |
launch_app |
Launch an installed app by bundle identifier |
list_apps |
List installed apps |
setup_device |
Prepare WebDriverAgent commands for a physical device |
See the snapshot contract and the orchestration architecture.
Local data and security
TouchBridge stores its state beneath ~/.touchbridge/.
~/.touchbridge/
├── captures/ durable design handoffs
├── python/ isolated idb environment
├── idb-companion/ local companion support
├── wda-build/ WebDriverAgent source and build data
└── bin/ native accessibility helper
- The live viewer listens on
127.0.0.1only. - Capture names are sanitized and cannot escape the capture directory.
- Password, passcode, PIN, OTP, verification-code, secret, and API-key fields are redacted.
- Text input values are never echoed in MCP results or logs.
- TouchBridge stores no Figma, ChatGPT, Claude, or other third-party credentials.
Development
npm install
npm run typecheck
npm test
npm run check
npm pack --dry-run
CI runs the full check on macOS with Node 20.17 and Node 22.
Roadmap
- Semantic element targeting (
tap "Continue"without manual coordinates) - Screenshot diffing and visual-regression baselines
- Session recording and replayable test scripts
- Editable Figma reconstruction with component matching
- Voice interruption, confirmation, and undo policies
- Multi-device test matrices
- Pluggable privacy policies for regulated apps
License and attribution
TouchBridge is MIT licensed. It includes work derived from the MIT-licensed iPhone-mcp project; the required upstream copyright notice is preserved in LICENSE, with provenance in NOTICE.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 模型以安全和受控的方式获取实时的网络信息。