# Xcode MCP: connect Claude Code, Codex and other agents to Xcode

Canonical: https://revyl.com/compare/xcode-mcp/
Published: 2026-11-24
Last updated: 2026-11-24

> Xcode MCP lets Claude Code, Codex and other agents build and preview your app through Xcode. Setup steps, plus MobileBuildMCP, Revyl and more compared.

Last verified: November 24, 2026.

Xcode MCP is the Model Context Protocol server built into Xcode 26.3 and later. Allow external agents in Xcode's Intelligence settings, run claude mcp add --transport stdio xcode -- xcrun mcpbridge (or codex mcp add xcode -- xcrun mcpbridge), open your project, and the agent can build, search documentation, explore files, update project settings and capture Xcode Previews on that Mac. MobileBuildMCP, ios-simulator-mcp, Argent and RocketSim's CLI also give agents Xcode and Simulator tools on a Mac. For agents that run in the cloud, on Windows or in Linux CI, Revyl's MCP server starts cloud iOS simulators and Revyl computers, macOS workspaces with Xcode where agents build and test apps, and its Free plan includes up to 1,200 free device minutes a month on iOS, Android and web with no card. Revyl is verification infrastructure for cloud agents, and the same account runs web browsers, Android emulators and Revyl Atlas.

Give your coding agent cloud iOS simulators through Revyl's MCP server: up to 1,200 free device minutes a month on iOS, Android and web, no card. [Start free](https://app.revyl.ai/signup) · [Pro and Enterprise pricing](https://revyl.com/pricing/)

**At a glance**

| | Xcode 26 agentic coding | XcodeBuildMCP (now MobileBuildMCP, Sentry) | ios-simulator-mcp | Argent | RocketSim | Revyl |
|---|---|---|---|---|---|---|
| MCP server | Yes ([source](https://developer.apple.com/documentation/xcode/giving-external-agents-access-to-xcode)) | Yes ([source](https://raw.githubusercontent.com/getsentry/MobileBuildMCP/main/README.md)) | Yes ([source](https://github.com/joshuayoes/ios-simulator-mcp/blob/main/README.md)) | Yes ([source](https://docs.swmansion.com/argent/docs/fundamentals/mcp-server/)) | Not verified | Yes ([source](https://docs.revyl.com/reference/mcp-tools)) |
| CLI | Yes ([source](https://developer.apple.com/documentation/xcode/giving-external-agents-access-to-xcode)) | Yes ([source](https://raw.githubusercontent.com/getsentry/MobileBuildMCP/main/README.md)) | npm/npx package; no standalone CLI documented ([source](https://github.com/joshuayoes/ios-simulator-mcp/blob/main/README.md)) | Yes ([source](https://docs.swmansion.com/argent/docs/fundamentals/getting-started/)) | Yes ([source](https://www.rocketsim.app/docs/features/agentic-development/rocketsim-cli)) | Yes ([source](https://github.com/RevylAI/revyl-cli/blob/stable/README.md)) |
| Cloud iOS simulators | Not verified | Not verified | No ([source](https://github.com/joshuayoes/ios-simulator-mcp)) | Yes ([source](https://docs.swmansion.com/argent/docs/cloud/fundamentals/getting-started/)) | No ([source](https://www.rocketsim.app/docs/features/agentic-development/rocketsim-cli)) | Yes ([source](https://docs.revyl.com/infrastructure/quickstart)) |
| Free tier | 25 Xcode Cloud compute hours/month with Apple Developer Program membership ([source](https://developer.apple.com/xcode-cloud/)) | Yes ([source](https://raw.githubusercontent.com/getsentry/MobileBuildMCP/main/README.md)) | Yes ([source](https://github.com/joshuayoes/ios-simulator-mcp)) | Not verified | Yes ([source](https://www.rocketsim.app/pricing/)) | Yes ([source](https://revyl.com/pricing/)) |

**MCP servers and agent tools for Xcode work (checked November 24, 2026)**

| | What the agent gets | Where the agent runs | Pricing model |
|---|---|---|---|
| Xcode MCP (xcrun mcpbridge) | Xcode's own tools: builds, documentation search, file structure, project settings and Xcode Previews ([source](https://www.apple.com/newsroom/2026/02/xcode-26-point-3-unlocks-the-power-of-agentic-coding/)) | On the Mac where Xcode is open, with the project open ([source](https://developer.apple.com/documentation/xcode/giving-external-agents-access-to-xcode)) | Free with Xcode in the Mac App Store ([source](https://developer.apple.com/documentation/safari-developer-tools/installing-xcode-and-simulators)) |
| MobileBuildMCP (XcodeBuildMCP) | Build, test, run and debug iOS and macOS apps, drive the simulator UI, logs, video and LLDB ([source](https://www.mobilebuildmcp.com/)) | On your Mac, with macOS 14.5+ and Xcode 16+ ([source](https://raw.githubusercontent.com/getsentry/MobileBuildMCP/main/README.md)) | Free, open source (MIT) ([source](https://github.com/getsentry/MobileBuildMCP)) |
| ios-simulator-mcp | Tap, type, screenshot, record and read the accessibility tree of the iOS Simulator ([source](https://github.com/joshuayoes/ios-simulator-mcp)) | On your Mac, against a booted local simulator ([source](https://github.com/joshuayoes/ios-simulator-mcp)) | Free, open source (MIT) ([source](https://github.com/joshuayoes/ios-simulator-mcp)) |
| Argent | Control, debug and profile iOS and Android apps ([source](https://argent.swmansion.com/)) | On your Mac; Argent Cloud hosts iOS simulators on dedicated Macs ([source](https://argent.swmansion.com/cloud/pricing)) | Toolkit free; Argent Cloud $299 per Runner a month ([source](https://argent.swmansion.com/cloud/pricing)) |
| RocketSim CLI and Agent Skill | Read the Simulator screen as text, tap and type by label, and record video ([source](https://www.rocketsim.app/)) | On your Mac, next to Xcode's Simulator ([source](https://www.rocketsim.app/)) | Free plan; Teams €10 per seat/month ([source](https://www.rocketsim.app/pricing/)) |
| Revyl | Cloud iOS simulators, Android emulators, browser sessions and macOS workspaces with Xcode, plus run reports and Atlas ([source](https://docs.revyl.com/agents/mcp)) | Anywhere: a laptop, Windows, Linux CI or a cloud coding agent ([source](https://docs.revyl.com/agents/mcp)) | Free: up to 1,200 free device minutes a month on iOS, Android and web, no card; Pro: $0.075 per device minute on iOS and Android; Revyl computers come with Pro ([source](https://revyl.com/pricing/)) |

Xcode MCP is the Model Context Protocol server built into Xcode 26.3 and later: you allow external agents in Xcode's Intelligence settings, register `xcrun mcpbridge` with Claude Code or Codex, open your project, and the agent can build, search documentation, explore files, update project settings and capture Xcode Previews on the Mac where Xcode is open ([Apple](https://developer.apple.com/documentation/xcode/giving-external-agents-access-to-xcode)). On that same Mac, MobileBuildMCP (formerly XcodeBuildMCP), ios-simulator-mcp, Argent and RocketSim's CLI give agents more control of builds and the iOS Simulator. For agents that run in the cloud, on Windows or in Linux CI, [Revyl's MCP server](https://docs.revyl.com/agents/mcp) starts cloud iOS simulators and Revyl computers, macOS workspaces with Xcode where agents build and test apps. Revyl is verification infrastructure for cloud agents, and the same account runs web browsers, Android emulators and Atlas.

## How do you set up Xcode MCP with Claude Code or Codex?

Apple documents three steps ([Apple](https://developer.apple.com/documentation/xcode/giving-external-agents-access-to-xcode)):

1. In Xcode, choose **Xcode > Settings**, select **Intelligence**, and under Model Context Protocol set **Allow External Agents to Use Xcode Tools** to **Always** or **While Xcode is Open**.
2. In Terminal, register Xcode's server with your agent. For Claude Code, run `claude mcp add --transport stdio xcode -- xcrun mcpbridge`. For Codex, run `codex mcp add xcode -- xcrun mcpbridge`. Check it with `claude mcp list` or `codex mcp list`.
3. Open your project in Xcode, then prompt the agent. Xcode alerts you when an external agent connects and while it's active.

Apple also suggests adding hints about Xcode and your project to the agent's `AGENTS.md` or `CLAUDE.md`. To turn access off, set the Intelligence setting to **Never**.

Let the same agent run your app on cloud iOS simulators through Revyl's MCP server. [Start free](https://app.revyl.ai/signup) · [Pro and Enterprise pricing](https://revyl.com/pricing/)

## What can an agent do through Xcode MCP?

Apple says agents "can search documentation, explore file structures, update project settings, and verify their work visually by capturing Xcode Previews and iterating through builds and fixes" ([Apple newsroom](https://www.apple.com/newsroom/2026/02/xcode-26-point-3-unlocks-the-power-of-agentic-coding/)). The agent works on the project open in Xcode, so Xcode has to be running on that Mac.

Xcode also runs agents inside the IDE. Since Xcode 26.3, Anthropic's Claude Agent and OpenAI's Codex work directly in Xcode, and [Xcode 27](https://developer.apple.com/xcode/) runs coding agents with the model of your choice. Searches for "Xcode Claude" usually mean one of the two: Claude inside Xcode, or Claude Code in a terminal using Xcode MCP.

## Which other MCP servers work with Xcode and the iOS Simulator?

### MobileBuildMCP (formerly XcodeBuildMCP)

[MobileBuildMCP](https://www.mobilebuildmcp.com/) is an open-source MCP server and CLI that builds, tests and runs iOS and macOS apps, drives the simulator UI, captures logs and video, and debugs with LLDB. It needs macOS 14.5+ and Xcode 16+ ([README](https://raw.githubusercontent.com/getsentry/MobileBuildMCP/main/README.md)), and Sentry [acquired the project](https://blog.sentry.io/sentry-acquires-xcodebuildmcp/) in February 2026. It is free under the MIT license.

### ios-simulator-mcp

[ios-simulator-mcp](https://github.com/joshuayoes/ios-simulator-mcp) is a focused MCP server for a booted local simulator. Its tools read the accessibility tree, tap, type, take screenshots, record video and open deep links. It is free under the MIT license.

### Argent

[Argent](https://argent.swmansion.com/), from Software Mansion, is an agent toolkit to control, debug and profile iOS and Android apps on your Mac. [Argent Cloud](https://argent.swmansion.com/cloud/pricing) runs its iOS simulators on dedicated hosted Macs for $299 per Runner a month.

### RocketSim

[RocketSim](https://www.rocketsim.app/) adds a CLI and an Agent Skill to Xcode's Simulator, so an agent can read the screen as text, tap and type by label, and record video. It has a free plan.

### GitHub Copilot for Xcode and Claude Code Desktop

[GitHub Copilot for Xcode](https://github.com/github/CopilotForXcode) is an Xcode extension with chat, completions and an Agent Mode that uses MCP tools. It needs macOS 13+, Xcode 14+ and a GitHub account. Claude Code Desktop's [iOS Simulator pane](https://code.claude.com/docs/en/desktop-ios-simulator) streams the local simulator next to the conversation while Claude builds and taps through your app.

## How do agents use Xcode without a local Mac?

Xcode MCP and the Mac tools above need the agent on a Mac. Cloud coding agents, Windows laptops and Linux CI runners reach Xcode and the iOS Simulator through a hosted service with its own MCP server.

### Revyl

[Revyl's MCP server](https://docs.revyl.com/agents/mcp) lets an agent start an iOS, Android, web or macOS session, act on it in plain language, take screenshots and stop it. A [Revyl computer](https://docs.revyl.com/computers), a macOS workspace for an agent, comes with Xcode and the iOS Simulator, and `revyl computer exec` runs `xcodebuild` on it. The agent can also follow an app's [builds](https://docs.revyl.com/remote-builds) and open a session on a pull request's build. Each test run leaves a [report](https://docs.revyl.com/tests/reports), [Atlas](https://docs.revyl.com/atlas) records the screens the app showed, and through [proof of changes](https://docs.revyl.com/agents/proof) Revyl posts a verdict on the pull request. The Free plan includes up to 1,200 free device minutes a month on iOS, Android and web, with no card. Revyl computers, macOS workspaces where agents build and test apps, come with Pro: add a card to unlock them, and the 1,200 free device minutes a month still cover their sessions ([pricing](https://revyl.com/pricing/)).

### Appetize

Appetize gives agents [mobile sandboxes](https://docs.appetize.io/ai-agents/getting-started) through a CLI and an API, with iOS simulators that stream in the browser.

## How do Xcode MCP setups compare on price?

Prices were checked on November 24, 2026.

- Xcode, including Xcode MCP, is free in the Mac App Store.
- MobileBuildMCP and ios-simulator-mcp are free under the MIT license, and Argent's toolkit is free.
- RocketSim has a free plan, and Teams costs €10 per seat a month ([pricing](https://www.rocketsim.app/pricing/)).
- Revyl Free: up to 1,200 free device minutes a month on iOS, Android and web, 2 devices at once, no card. Pro is pay as you go at $0.075 per device minute on iOS and Android, with 10 devices at once and a $5 starting credit, and agent sessions are $0.05 a session minute, web or macOS, with the macOS workspace included in the session ([pricing](https://revyl.com/pricing/)).
- Argent Cloud is $299 per Runner a month with unlimited simulator time ([pricing](https://argent.swmansion.com/cloud/pricing)).

The local servers cost nothing beyond the Mac they run on. A hosted service costs per minute or per month and adds a simulator that any agent can reach; on Revyl, each run also adds a report and an Atlas record.

## Beyond Xcode MCP: what else Revyl runs

The Revyl MCP server and CLI cover more than iOS work, and each of the following uses the same agent setup.

- Android emulators start from the same tools, so the agent that checks an iOS change can run the same flow on Android ([sessions](https://docs.revyl.com/sessions)).
- Web apps run in browser [sessions](https://docs.revyl.com/sessions) with desktop and mobile viewports.
- [Revyl computers](https://docs.revyl.com/computers) are macOS workspaces where an agent builds, runs and tests apps with Xcode and Safari, and GitHub Actions jobs run in a single-use macOS workspace with `runs-on: revyl-macos`.
- [Atlas](https://docs.revyl.com/atlas) records the screens and transitions Revyl has observed in runs, and agents search it or compare two builds' maps before their next change.
- Each test run produces a [report](https://docs.revyl.com/tests/reports) with video, a step timeline and device logs, and through [proof of changes](https://docs.revyl.com/agents/proof) the pull request gets a verdict.

## Which Xcode MCP setup should you choose?

- Your agent runs on your Mac and you want Xcode's own builds and Previews: Xcode MCP.
- Your agent needs xcodebuild, simulator control and LLDB as tools: MobileBuildMCP.
- Your agent only needs to tap and read the simulator: ios-simulator-mcp or RocketSim's CLI.
- Your agent runs in the cloud, on Windows or in Linux CI, or you want a report and a pull-request verdict for each run: Revyl.
- You want flat monthly pricing on dedicated hosted Macs for the Argent toolkit: Argent Cloud.

## Common questions

**What is Xcode MCP?**

Xcode MCP is the Model Context Protocol server that Xcode provides from Xcode 26.3. External agents such as Claude Code and Codex connect to it through the xcrun mcpbridge command and use Xcode's capabilities on your open project, such as building, searching documentation, updating project settings and capturing Xcode Previews.

**How do I connect Claude Code to Xcode?**

In Xcode, choose Settings, then Intelligence, and set "Allow External Agents to Use Xcode Tools" to Always or "While Xcode is Open". In Terminal, run claude mcp add --transport stdio xcode -- xcrun mcpbridge, check it with claude mcp list, then open your project in Xcode before you prompt Claude Code. Xcode alerts you when the agent connects.

**Is Xcode MCP the same as XcodeBuildMCP?**

No. Xcode MCP is Apple's server inside Xcode. XcodeBuildMCP, now MobileBuildMCP and maintained by Sentry, is an open-source MCP server and CLI that drives xcodebuild, the simulator and LLDB on your Mac. An agent can use both.

**Can I use Xcode MCP on Windows or Linux?**

No. Xcode MCP runs through xcrun on the Mac where Xcode is open, and Xcode runs only on macOS. An agent on Windows, Linux or in the cloud reaches Xcode through a macOS workspace it can use: Revyl's MCP server starts Revyl computers, macOS workspaces with Xcode and the iOS Simulator where agents build and test apps, plus cloud iOS simulators.

**Does Claude run inside Xcode?**

Yes. Since Xcode 26.3, Xcode runs coding agents such as Anthropic's Claude Agent and OpenAI's Codex inside the IDE, and Xcode 27 lets you pick the model. Xcode MCP is the other direction: it lets an agent you launch outside Xcode, such as Claude Code in a terminal, use Xcode's tools.

**What else does Revyl do?**

Revyl is verification infrastructure for cloud agents on web, iOS, Android and macOS. It runs web apps in browser sessions, cloud iOS simulators and Android emulators, and Revyl computers, macOS workspaces where agents build and test apps. Coding agents drive these sessions through the Revyl CLI and MCP server, and Atlas records the screens and transitions Revyl observes in runs. Every test run leaves a report, and through proof of changes, Revyl posts a verdict on the pull request.

**What does Revyl cost past the free minutes?**

Pro is pay as you go, with 10 devices at once instead of 2, a $5 starting credit and no monthly fee. Usage past the free minutes is $0.075 per device minute on iOS and Android. Enterprise is custom, with volume pricing, unlimited devices at once, SAML SSO and SCIM.

## Sources

- [Apple: giving external agents access to Xcode](https://developer.apple.com/documentation/xcode/giving-external-agents-access-to-xcode)
- [Apple newsroom: Xcode 26.3 agentic coding](https://www.apple.com/newsroom/2026/02/xcode-26-point-3-unlocks-the-power-of-agentic-coding/)
- [Apple Xcode](https://developer.apple.com/xcode/)
- [Apple: installing Xcode and Simulators](https://developer.apple.com/documentation/safari-developer-tools/installing-xcode-and-simulators)
- [MobileBuildMCP website](https://www.mobilebuildmcp.com/)
- [MobileBuildMCP README](https://raw.githubusercontent.com/getsentry/MobileBuildMCP/main/README.md)
- [Sentry blog: Sentry acquires XcodeBuildMCP](https://blog.sentry.io/sentry-acquires-xcodebuildmcp/)
- [ios-simulator-mcp](https://github.com/joshuayoes/ios-simulator-mcp)
- [Argent](https://argent.swmansion.com/)
- [Argent Cloud pricing](https://argent.swmansion.com/cloud/pricing)
- [RocketSim](https://www.rocketsim.app/)
- [RocketSim pricing](https://www.rocketsim.app/pricing/)
- [GitHub Copilot for Xcode](https://github.com/github/CopilotForXcode)
- [Claude Code Desktop iOS Simulator pane](https://code.claude.com/docs/en/desktop-ios-simulator)
- [Appetize agents](https://docs.appetize.io/ai-agents/getting-started)
- [Revyl MCP setup](https://docs.revyl.com/agents/mcp)
- [Revyl computers](https://docs.revyl.com/computers)
- [Revyl sessions](https://docs.revyl.com/sessions)
- [Revyl remote builds](https://docs.revyl.com/remote-builds)
- [Revyl test reports](https://docs.revyl.com/tests/reports)
- [Revyl Atlas](https://docs.revyl.com/atlas)
- [Revyl proof of changes](https://docs.revyl.com/agents/proof)
- [Revyl pricing](https://revyl.com/pricing/)
- [github.com/getsentry/MobileBuildMCP](https://github.com/getsentry/MobileBuildMCP)
