MCP
Connect Claude Code, Codex, Cursor or any MCP client to Device MCP, so your AI agent can see, tap, type and test on your iPhone and iPad.
Device MCP connects your AI coding agent to your real iPhone and iPad. Your agent can look at the screen, tap and type, open apps, build your project and test it on the device, all from a normal conversation.
1. What is Device MCP's MCP Server?
MCP (Model Context Protocol) is the open standard that AI agents use to talk to tools. Device MCP has an MCP server built in, so Claude Code, Codex, Cursor and other MCP-compatible agents can drive your device the way you do.
The server runs on your Mac only. Your screen and your apps never leave your Mac, except what you ask your agent to look at. See Privacy & Security.
✅ Example Prompts
- Take a screenshot of my iPhone and tell me what's on screen.
- Open Settings and turn on Dark Mode.
- Build my app, run it on the iPad and check that the login screen works.
- Sign in with the test account, add an item to the cart and check the total.
- My app crashed on the device. Find the crash report and fix the bug.
- Open
myapp://profileand take a screenshot. - Record a video of the onboarding flow.
2. Benefits
| Benefit | Description |
|---|---|
| Test on real hardware | Your agent tests on a real iPhone or iPad, with real performance, sensors and system prompts. |
| Closed-loop development | Edit, build, run, tap, screenshot, fix: your agent checks its own work without you. |
| It sees what you see | Your agent reads the words and buttons on screen, so it can tap Sign In by name. |
| You stay in charge | Risky actions ask first, every action is logged, and you can take over anytime. |
| Works with your agent | Claude Code, Codex, Cursor and any other MCP client. |
3. How to add Device MCP to your agent
- Turn on the MCP Server
- Open Device MCP → Settings → MCP.
- Turn on Enable MCP Server.
- Copy the setup for your agent: in Settings → MCP → MCP Configuration, choose Claude Code, Codex or Manual, then click Copy. The same setup is in the Agent tab of the Inspector.
- Add it to your agent with the steps below.
Claude Code
Run this in Terminal:
claude mcp add --scope user device-mcp -- "/Applications/Device MCP.app/Contents/MacOS/device-mcp"
--scope user makes Device MCP available in all of your projects.
Codex
Run this in Terminal:
codex mcp add device-mcp -- "/Applications/Device MCP.app/Contents/MacOS/device-mcp"
This makes Device MCP available in all of your projects.
Cursor and other MCP clients
Add this to your client's MCP settings:
{
"mcpServers": {
"device-mcp": {
"command": "/Applications/Device MCP.app/Contents/MacOS/device-mcp",
"args": []
}
}
}
- Start using Device MCP
- Keep Device MCP open with your device connected.
- Ask your agent, for example: "List my devices and take a screenshot."
4. What your agent can do
Your agent uses the device the way you do: it sees the screen, touches and types, opens apps and links, and can Build & Run your Xcode project. When the device needs you, for Face ID or a passcode, it asks you to step in: see Human Handoff.
5. Stay in control
- Approvals: installing or removing apps, building, opening links and downloading app data ask you first. See Approvals.
- Activity: every action your agent takes is listed in the Agent tab. See Agent Activity.
- Agent is driving: the status at the bottom of the mirror, and a ✨ next to the device in the sidebar, show when an agent is using the device.
- Take over anytime: your clicks and keystrokes always go through, even while an agent works.
6. Debug the network with Proxyman
Device MCP shows your agent the screen. Proxyman, from the same team, shows it the network. With both, your agent can reproduce a bug on the device and read the requests and responses behind it, in one conversation.
- On your Mac: Proxyman captures the HTTP(S) traffic of an iOS Simulator, an iPhone or iPad or an Android emulator. Add Proxyman MCP to your agent next to Device MCP, and it reads the requests straight from Proxyman.
- On your iPhone: Proxyman for iOS captures the traffic on the device itself. Your agent turns on its VPN and reads the requests in the app, through Device MCP.
✅ Example Prompts
- Turn on the Proxyman VPN on my iPhone, open my app and find out why the recipes don't load.
- Open my app on the iPhone simulator, pull to refresh, and find the request that fails in Proxyman.
- Sign in on the Android emulator, then show me the login request and its response in Proxyman.