{"id":48440935,"url":"https://github.com/blitzdotdev/iphone-mcp","last_synced_at":"2026-04-06T15:04:32.282Z","repository":{"id":341356637,"uuid":"1169693799","full_name":"blitzdotdev/iPhone-mcp","owner":"blitzdotdev","description":"The MCP Server the lets AI use an iPhone","archived":false,"fork":false,"pushed_at":"2026-04-01T06:07:58.000Z","size":3354,"stargazers_count":61,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-01T09:04:19.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blitz.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blitzdotdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-01T04:04:19.000Z","updated_at":"2026-04-01T06:08:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/blitzdotdev/iPhone-mcp","commit_stats":null,"previous_names":["blitzdotdev/ios-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blitzdotdev/iPhone-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitzdotdev%2FiPhone-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitzdotdev%2FiPhone-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitzdotdev%2FiPhone-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitzdotdev%2FiPhone-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blitzdotdev","download_url":"https://codeload.github.com/blitzdotdev/iPhone-mcp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitzdotdev%2FiPhone-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31477014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T14:34:32.243Z","status":"ssl_error","status_checked_at":"2026-04-06T14:34:31.723Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-06T15:04:07.654Z","updated_at":"2026-04-06T15:04:32.274Z","avatar_url":"https://github.com/blitzdotdev.png","language":"TypeScript","funding_links":[],"categories":["カテゴリ"],"sub_categories":["🛠️ \u003ca name=\"developer-tools\"\u003e\u003c/a\u003e開発ツール"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/blitzdotdev/iPhone-mcp/refs/heads/master/BlitzBlue.png\" width=\"100\" /\u003e\n  \u003cbr /\u003e\u003cbr /\u003e\n  \u003cp\u003eiPhone MCP server that lets AI use iPhones\u003c/p\u003e\n\n  [![Website](https://img.shields.io/badge/blitz.dev-website-black)](https://blitz.dev/)\n  [![Discord](https://img.shields.io/badge/discord-join-5865F2?logo=discord\u0026logoColor=white)](https://discord.gg/wJQ6dA95S6)\n  [![npm](https://img.shields.io/npm/v/@blitzdev/iphone-mcp?label=npm\u0026color=blue)](https://www.npmjs.com/package/@blitzdev/iphone-mcp)\n\u003c/div\u003e\n\n# iPhone-mcp\n\nMCP server that lets AI agents control real iPhones and iPhone simulators on MacOS.\nWorks with Claude Code, Cursor, Codex, OpenCode, and any MCP-compatible AI agent.\n\n[\u003cvideo src=\"https://github.com/blitzdotdev/iPhone-mcp/raw/refs/heads/master/demo.mp4\" autoplay loop muted playsinline width=\"100%\"\u003e\u003c/video\u003e\n](https://github.com/user-attachments/assets/b210df5a-ed09-4efd-9c95-d69021fd3d46)\n\n## Requirements\n\n- macOS\n- Xcode (install from App Store or `xcode-select --install`)\n- Node.js 18+\n- Homebrew\n\n## Installation\n\n```bash\nnpm install @blitzdev/iphone-mcp\n```\n\n## Quick Start\n\n### Global (use in any project)\n\n```bash\nnpx @blitzdev/iphone-mcp --setup-all\n```\n\nThis installs dependencies and configures `@blitzdev/iphone-mcp` for all your AI agents. It automatically sets up Claude Code, Cursor, Codex, OpenCode.\n\n\u003ci\u003eNOTE: For Cursor, you need to enable the blitz-iphone MCP server in Cursor Settings\u003c/i\u003e\n\n### Project-scoped (one project only)\n\n```bash\ncd \u003cyour project\u003e\nnpx @blitzdev/iphone-mcp --setup-here\n```\n\nThis prompts you to choose which AI agents to configure (Claude Code, Cursor, Codex, OpenCode) and writes the config files into your project directory. `@blitzdev/iphone-mcp` will only be available when you open an agent inside that directory.\n\n### Then just ask\n\nOpen a new AI agent session and ask:\n\n```\n\u003e scan the simulator screen and tell me what you see\n```\n\n```\n\u003e connect to my iPhone and test the login flow\n```\n\n```\n\u003e find bugs in my app — tap around, try edge cases, report anything weird\n```\n\n\u003c!-- NOTE: Video showing Claude Code responding to \"test my app\", scanning UI, tapping buttons, finding a bug, and screenshotting the result --\u003e\n\n## What can it do?\n\n| Capability | Simulator | Physical iPhone |\n|---|---|---|\n| Tap, swipe, type text | Yes | Yes |\n| Press buttons (Home, Lock, Siri) | Yes | Yes |\n| Scan UI elements with coordinates | Yes | Yes |\n| Take screenshots | Yes | Yes |\n| List \u0026 launch installed apps | Yes | Yes |\n| Auto-detect devices | Yes | Yes |\n| Live screen viewer in browser | -- | Yes |\n\n\u003c!-- NOTE: Image showing a split view — left side has Claude Code terminal with scan_ui output, right side shows the corresponding simulator screen with UI elements highlighted --\u003e\n\n## iPhones\n\nConnect your iPhone via USB or make sure it's on the same Wi-Fi network (home/office networks work, public cafe Wi-Fi won't).\n\n**First-time setup** — your iPhone needs:\n1. **Developer Mode** enabled (Settings \u003e Privacy \u0026 Security \u003e Developer Mode)\n2. **Trust this computer** when prompted on the phone\n\nThen ask your agent:\n\n```\n\u003e connect to my iPhone\n```\n\nThe agent will build and install WebDriverAgent on your phone (takes 1-3 minutes the first time), then give you a URL like `http://localhost:5152?udid=...` — open it in your browser to see a live view of your phone screen.\n\n\u003c!-- NOTE: Image showing the browser-based viewer with an iPhone screen displayed in a dark bezel frame --\u003e\n\n## Simulators\n\nBoot any iPhone simulator, then ask your AI agent to interact with it. No extra setup needed beyond `--setup-all` or `--setup-here`.\n\n```\n\u003e what apps are installed on the simulator?\n\u003e launch Safari and go to example.com\n\u003e take a screenshot\n```\n\n\u003c!-- NOTE: Image showing terminal output of the list_apps tool with clean formatted app list --\u003e\n\n## Example session\n\n```\nYou:    test the checkout flow in my app\nAgent:  Let me scan the simulator to see what's on screen.\n\n        [calls scan_ui]\n\n        I can see the home screen. Let me launch your app first.\n\n        [calls launch_app with bundleId \"com.myapp\"]\n        [calls get_screenshot]\n\n        The app is open on the main screen. I see a \"Shop\" tab at the bottom.\n        Let me tap it and walk through the checkout flow.\n\n        [calls device_action: tap on \"Shop\" tab]\n        [calls scan_ui]\n\n        I see a list of products. Let me add one to cart...\n```\n\n\u003c!-- NOTE: Video showing a full end-to-end testing session — agent launches app, navigates through screens, finds a UI bug, screenshots it, and reports the issue --\u003e\n\n## MCP Tools reference\n\nThese are the tools your AI agent can call:\n\n| Tool | What it does |\n|---|---|\n| `get_execution_context` | Find available simulators and iPhones |\n| `scan_ui` | Find tappable elements — buttons, links, text fields — with their coordinates |\n| `describe_screen` | Full UI element hierarchy (more detail than scan_ui) |\n| `device_action` | Tap, swipe, press buttons, type text, press keys |\n| `device_actions` | Run multiple actions in sequence |\n| `get_screenshot` | Save a screenshot and return the file path |\n| `list_devices` | List all simulators and physical devices |\n| `launch_app` | Launch an app by bundle ID |\n| `list_apps` | List installed apps |\n| `setup_device` | Build \u0026 install WebDriverAgent on a physical iPhone |\n\n## Manual MCP configuration\n\nIf you'd rather configure things yourself:\n\n**Claude Code** — add to `~/.claude.json` (global) or `.mcp.json` (project):\n\n```json\n{\n  \"mcpServers\": {\n    \"blitz-iphone\": {\n      \"command\": \"npx\",\n      \"args\": [\"@blitzdev/iphone-mcp\"]\n    }\n  }\n}\n```\n\n**Cursor** — add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project):\n\n```json\n{\n  \"mcpServers\": {\n    \"blitz-iphone\": {\n      \"command\": \"npx\",\n      \"args\": [\"@blitzdev/iphone-mcp\"]\n    }\n  }\n}\n```\n\n**Codex** — add to `~/.codex/config.toml` (global) or `.codex/config.toml` (project):\n\n```toml\n[mcp_servers.blitz-iphone]\ncommand = \"npx\"\nargs = [\"@blitzdev/iphone-mcp\"]\n```\n\n**OpenCode** — add to `opencode.json` in your project root:\n\n```json\n{\n  \"$schema\": \"https://opencode.ai/config.json\",\n  \"mcp\": {\n    \"blitz-iphone\": {\n      \"type\": \"local\",\n      \"command\": [\"npx\", \"-y\", \"@blitzdev/iphone-mcp\"],\n      \"enabled\": true\n    }\n  }\n}\n```\n\n## Troubleshooting\n\n**\"No booted simulator found\"** — Open Simulator.app or run `xcrun simctl boot \"iPhone 16\"` first.\n\n**Physical device not detected** — Make sure Developer Mode is on, the phone is connected via USB, and you've tapped \"Trust\" on the phone.\n\n**WDA build fails** — Open Xcode \u003e Settings \u003e Accounts and make sure an Apple ID is signed in. Xcode needs a signing identity to build WDA.\n\n**\"Connection refused\" errors** — The idb companion may have crashed. Run `npx @blitzdev/iphone-mcp --setup-all` again to re-initialize.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitzdotdev%2Fiphone-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblitzdotdev%2Fiphone-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitzdotdev%2Fiphone-mcp/lists"}