
askui/idb-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
An open-source MCP server and Python library that wraps Facebook IDB to control iOS simulators for automation. Built by AskUI.
概要
An open-source MCP server and Python library that wraps Facebook IDB to control iOS simulators for automation. Built by AskUI. This project is based on the Facebook IDB CLI (fb-idb). See the GitHub repository (facebook/idb) and the Python package (fb-idb on PyPI). - : Exposes a set of iOS automation tools (list/select device, screenshot, tap, swipe, type, etc.) over MCP transports (HTTP, SSE or stdio) using fastmcp. - : Import to manage and control iOS simulators programmatically. - 🔧: list devices, select by UDID or name, boot/shutdown, kill IDB. - 👆: tap, swipe, type text, tap keys, tap buttons. - 🖼️: capture screenshots, query screen size, get view description. - 📐: optional scaling to a target viewport for consistent coordinates. ⚠️ Only iOS simulators are supported for UI control. Due to iOS security constraints, idb cannot interact with or automate the UI on real, physical devices. AskUI offers a solution for real-device UI automation—contact support@askui.
README
以下は原文 README の抜粋です。原文を見る。
IDB-MCP
An open-source MCP server and Python library that wraps Facebook IDB to control iOS simulators for automation. Built by AskUI.
This project is based on the Facebook IDB CLI (fb-idb). See the GitHub repository (facebook/idb) and the Python package (fb-idb on PyPI).
What it is
- MCP server: Exposes a set of iOS automation tools (list/select device, screenshot, tap, swipe, type, etc.) over MCP transports (HTTP, SSE or stdio) using
fastmcp. - Python module: Import to manage and control iOS simulators programmatically.
Table of contents
Key features
- Device management 🔧: list devices, select by UDID or name, boot/shutdown, kill IDB.
- Input control 👆: tap, swipe, type text, tap keys, tap buttons.
- Screen utilities 🖼️: capture screenshots, query screen size, get view description.
- Image/coord scaling 📐: optional scaling to a target viewport for consistent coordinates.
Limitations
⚠️ Only iOS simulators are supported for UI control. Due to iOS security constraints, idb cannot interact with or automate the UI on real, physical devices. AskUI offers a solution for real-device UI automation—contact [email protected] for more information.
Requirements
-
Runs on macOS only.
-
Python >= 3.10
-
Xcode with iOS Simulators installed and configured.
-
Verify simulators are visible:
xcrun xctrace list devices
-
-
Facebook IDB companion (using
brew):brew tap facebook/fb brew install idb-companion
Install
pip install idb-mcp
Quick start (CLI)
Why MCP?
Using MCP lets your favorite AI tools connect to idb-mcp seamlessly. The client handles launching and communicating with the server, so you can ask for screenshots, taps, swipes, and more—without leaving your workflow. ✨
Start MCP server
The package installs an idb-mcp command.
# Start MCP server over HTTP (default host/port managed by fastmcp)
idb-mcp start http
インストール
uvx idb-mcp@latest start stdio --target-screen-size 1280 800設定
{
"mcpServers": {
"askui-idb-mcp": {
"command": "uvx",
"args": [
"idb-mcp@latest",
"start",
"stdio",
"--target-screen-size",
"1280",
"800"
]
}
}
}