
XcodeBuildMCP
Build, run and test iOS and macOS apps, and drive simulators, from an agent.
- Package checked
- ★ 6.5K GitHub stars
- 51.9K downloads a week
- Last commit 27 Oct 2026
What is XcodeBuildMCP?
XcodeBuildMCP, now called MobileBuildMCP, is Sentry's MCP server and CLI that lets AI agents build, test and run iOS and macOS apps and control simulators through Xcode.
- Tools
- 24
- Runs on
- Your computer
- Licence
- MIT
- GitHub stars
- 6.5K
Good for
- Letting Claude Code or Cursor fix its own build errors
- Running a test target after each change
- Launching an app in a simulator and reading its logs
You'll need
- macOS 14.5 or newer with Xcode 16 or newer
- Node.js 18 or newer, or Homebrew (brew install mobilebuildmcp)
Package checkedThe project renamed its npm package from xcodebuildmcp to mobilebuildmcp, which links back to getsentry/MobileBuildMCP; the config uses the new name.
MCP Shelf take
We started XcodeBuildMCP on our own test machine on 26 Oct 2026 and it answered with 24 tools. 12 of the 24 only read; the other 12 can change things. Every tool comes with a useful description, all of them say whether they change things, and the tool list costs about 1,000 tokens of context before you ask a thing. It sits 9th of 21 in its category on our shelf by GitHub stars (6.5K, with 51.9K downloads a week).
What can XcodeBuildMCP read and change?
It can read
- Your Xcode projects, schemes and build settings
- Simulator screens, UI layout and logs
- Test results and coverage
It can change
- Build products in DerivedData
- Apps installed on simulators and, with signing set up, on devices
- Starts and stops simulators and apps
Safer setup: Everything stays on your Mac. Error reports go to Sentry; the project's privacy page explains how to switch that off.
XcodeBuildMCP in more detail
Agents are good at writing Swift and bad at knowing whether it compiles. XcodeBuildMCP closes that loop: it wraps xcodebuild and the simulator tools so the agent can build a scheme, read the errors, boot a simulator, install the app and capture logs.
The project now lives under Sentry and ships as MobileBuildMCP: a mobilebuildmcp package and command that work as both a CLI and an MCP server. The old xcodebuildmcp package stopped getting releases at 2.7.0.
- Made by
- Sentry (started by Cameron Cooke)
- Latest version
- 2.7.1 (23 Sept 2026)
- npm package
- mobilebuildmcp
- Downloads
- 51.9K a week
- Last commit
- 27 Oct 2026
- Setup checked
- 27 Oct 2026
- Page updated
- 27 Oct 2026
What's in the pod
What tools does XcodeBuildMCP have?
We found 24 tools when we started it on 26 Oct 2026. 12 only read. The rest can change things, so keep your app's "ask before each tool call" setting on for them.
Runs commands1 tool · Can start programs or run code.
| Tool | What it is for |
|---|---|
build_run_sim | Builds the app, installs it on a simulator and launches it in one step. |
Changes things11 tools · Can create, edit, send or delete.
| Tool | What it is for |
|---|---|
boot_sim | Starts an iOS simulator. |
build_sim | Builds an iOS app for the simulator and reports any compiler errors. |
clean | Clears out old build products so the next build starts fresh. |
install_app_sim | Installs a built app on a simulator. |
launch_app_sim | Opens an installed app on the simulator. |
record_sim_video | Records a video of the simulator screen. |
session_clear_defaults | Forgets the saved project, scheme and simulator choices. |
session_set_defaults | Remembers the project, scheme and simulator so later calls need fewer details. |
session_use_defaults_profile | Switches to a saved set of defaults, for repos with several apps. |
stop_app_sim | Closes the running app on the simulator. |
test_sim | Runs the test suite on a simulator and returns the results. |
Only reads12 tools · Looks things up and changes nothing.
| Tool | What it is for |
|---|---|
discover_projs | Finds the Xcode projects and workspaces in a folder. |
get_app_bundle_id | Reads an app's bundle identifier. |
get_coverage_report | Summarises code coverage after a test run. |
get_file_coverage | Shows which lines of one file the tests covered. |
get_sim_app_path | Finds where the built .app sits for the simulator. |
list_schemes | Lists the schemes a project or workspace can build. |
list_sims | Lists available simulators and whether they are running. |
open_sim | Brings the Simulator app to the front. |
screenshot | Captures the simulator screen so the agent can see the app. |
session_show_defaults | Shows the remembered project, scheme and simulator. |
show_build_settings | Prints the Xcode build settings for a scheme. |
snapshot_ui | Describes what is on screen, element by element, with positions the agent can tap. |
Grouped and described by us. The README on GitHub lists the inputs each tool takes.
How clearly it describes its tools to your assistant
- Tools with a description
- 24 of 24
- Say if they change things
- 24 of 24
- Context it takes, at least
- ~1,000 tokens
Every tool says whether it only reads or can change things, so a client can ask before the risky ones.
From the tool list it sent us. The token figure counts names, descriptions and input names; the full schemas your client loads add more.
How do I install XcodeBuildMCP?
Install steps from the XcodeBuildMCP README
The project's own instructions, copied from its README on GitHub on 28 Oct 2026 under its MIT licence. They are the source of truth; the ready-made configs further down are built from them. The rest of the README is in the README tab.
Installation
MobileBuildMCP ships as a single package with two modes: a CLI for direct terminal use and an MCP server for AI coding agents. Either install method gives you both.
Option A — Homebrew
brew tap getsentry/xcodebuildmcp
brew install mobilebuildmcp
Option B — npm (Node.js 18+)
npm install -g mobilebuildmcp@latest
Verify either install:
mobilebuildmcp --help
Connect your MCP client
Drop-in config snippets for Cursor, Claude Code, Codex, can be found in the official docs page MCP Clients. Most clients can also run the MCP server on demand via npx -y mobilebuildmcp@latest mcp without a global install.
What you need first
- macOS 14.5 or newer with Xcode 16 or newer
- Node.js 18 or newer, or Homebrew (brew install mobilebuildmcp)
Add XcodeBuildMCP to your app
Pick your app for a ready-to-paste snippet and where it goes, built from the steps above.
Where it goes: Your terminal
claude mcp add MobileBuildMCP -- npx -y mobilebuildmcp@latest mcpIf you installed it with Homebrew, use mobilebuildmcp mcp after the -- instead, which skips npx's download check each start.
Where it goes: ~/.cursor/mcp.json, or .cursor/mcp.json in a project
{
"mcpServers": {
"xcodebuildmcp": {
"command": "npx",
"args": [
"-y",
"mobilebuildmcp@latest",
"mcp"
]
}
}
}With a Homebrew install, set command to mobilebuildmcp and args to ["mcp"].
Where it goes: claude_desktop_config.json (Settings → Developer → Edit Config)
{
"mcpServers": {
"xcodebuildmcp": {
"command": "npx",
"args": [
"-y",
"mobilebuildmcp@latest",
"mcp"
]
}
}
}With a Homebrew install, set command to mobilebuildmcp and args to ["mcp"]. If Claude cannot find npx, give the full path to it, since the app does not read your shell profile.
Where it goes: .vscode/mcp.json in your project
{
"servers": {
"xcodebuildmcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mobilebuildmcp@latest",
"mcp"
]
}
}
}Where it goes: ~/.codex/config.toml, shared by the Codex CLI, IDE extension and ChatGPT desktop app
[mcp_servers.xcodebuildmcp]
command = "npx"
args = ["-y", "mobilebuildmcp@latest", "mcp"]Or run: codex mcp add xcodebuildmcp -- npx -y mobilebuildmcp@latest mcp
Where it goes: ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"xcodebuildmcp": {
"command": "npx",
"args": [
"-y",
"mobilebuildmcp@latest",
"mcp"
]
}
}
}Where it goes: Not supported
ChatGPT on the web only connects to servers by URL. This one runs on your computer: the ChatGPT desktop app can start it from its MCP servers settings, with the same config as the Codex tab.
Checked against the project's own install docs on 27 Oct 2026: getsentry/MobileBuildMCP README, github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/clients.mdx.
Did this work for you?
Projects change their install steps often. If XcodeBuildMCP did not install, or something here no longer matches the project, tell us and we will check it against the README and fix the page.
New to this? See the setup guides for Claude Code, Cursor, Claude Desktop, VS Code, Codex and ChatGPT. If it will not start, test it in MCP Inspector and look up the error in Fixing MCP server errors.
XcodeBuildMCP not working? Common fixes
- Device builds fail with signing errors
- Set up code signing for the target in Xcode first. Simulator builds do not need it.
- Swift Macro validation errors
- The server already tells xcodebuild to skip macro validation. If you build by hand, add the same flag.
- Agent keeps asking which scheme to build
- Call session_set_defaults once with the project, scheme and simulator, and later calls reuse them.
How do I configure XcodeBuildMCP?
Names are exactly as the project spells them. Required ones are marked.
| Setting | What it does |
|---|---|
mobilebuildmcp mcpConfig · required | The command your client runs to start the server after a Homebrew or npm install."command": "mobilebuildmcp", "args": ["mcp"] |
mobilebuildmcp initConfig | Installs the optional agent skills that teach your agent how to use the tools or the CLI. |
--schemeCommand line flag | Which scheme to build when you use the CLI directly.--scheme MyApp |
--project-pathCommand line flag | Path to the .xcodeproj or .xcworkspace for CLI builds.--project-path ./MyApp.xcodeproj |
XcodeBuildMCP FAQ
How do I install XcodeBuildMCP in Claude Code?
Run claude mcp add MobileBuildMCP -- npx -y mobilebuildmcp@latest mcp on a Mac with Xcode. If you prefer a fixed install, brew tap getsentry/xcodebuildmcp and brew install mobilebuildmcp, then point the command at mobilebuildmcp mcp.
Is XcodeBuildMCP now MobileBuildMCP?
Yes. Sentry renamed it MobileBuildMCP and publishes it as the mobilebuildmcp package and command. The older xcodebuildmcp npm package stopped at 2.7.0, so update configs that still use the old name to get fixes.
What do I need to run XcodeBuildMCP?
A Mac on macOS 14.5 or later with Xcode 16 or later, plus Node.js 18 or later unless you install it with Homebrew. Building for a real device also needs code signing set up in Xcode.
Does XcodeBuildMCP work with Cursor and Codex?
Yes. Its docs give drop-in setup for Cursor, Codex, Claude Desktop, VS Code, Windsurf and the agents inside Xcode itself. It runs locally on your Mac, so ChatGPT on the web cannot use it.
Is XcodeBuildMCP free?
Yes, it is MIT licensed and free. It uses Sentry for runtime error telemetry about the tool itself, not your code; the project's Privacy and Telemetry page explains how to opt out.
Can I use XcodeBuildMCP without an AI agent?
Yes. The same package is a command line tool, so you can run builds, tests and simulator commands yourself with mobilebuildmcp, which is handy for checking what the agent will see.
Why does XcodeBuildMCP fail on device builds?
Usually code signing: device tools need a development team and provisioning set up in Xcode once, and the project's device signing guide walks through it. Swift Macro validation is already handled, since it asks xcodebuild to skip that check for agent builds.
Is it safe to let an agent run xcodebuild?
Everything runs on your Mac with your user account: it builds, installs and launches apps and can erase simulators, but it does not push code or ship to the App Store. Keep the project in git so you can review what the agent changed.
XcodeBuildMCP README
This is the project's own README from getsentry/MobileBuildMCP, written by Sentry (started by Cameron Cooke), and shared under its MIT licence. We copied it on 28 Oct 2026, so the version on GitHub may be newer.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Installation
MobileBuildMCP ships as a single package with two modes: a CLI for direct terminal use and an MCP server for AI coding agents. Either install method gives you both.
Option A — Homebrew
brew tap getsentry/xcodebuildmcp
brew install mobilebuildmcp
Option B — npm (Node.js 18+)
npm install -g mobilebuildmcp@latest
Verify either install:
mobilebuildmcp --help
Connect your MCP client
Drop-in config snippets for Cursor, Claude Code, Codex, can be found in the official docs page MCP Clients. Most clients can also run the MCP server on demand via npx -y mobilebuildmcp@latest mcp without a global install.
Requirements
- macOS 14.5 or later
- Xcode 16.x or later
- Node.js 18.x or later (not required for Homebrew installation)
Skills
MobileBuildMCP now includes two optional agent skills:
MCP Skill: Primes the agent with instructions on how to use the MCP server's tools (optional when using the MCP server).
CLI Skill: Primes the agent with instructions on how to navigate the CLI (recommended when using the CLI).
To install with a global binary:
mobilebuildmcp init
Or install directly via npx without a global install:
npx -y mobilebuildmcp@latest init
For further information on installing skills, see Agent Skills.
Notes
- MobileBuildMCP requests xcodebuild to skip macro validation to avoid errors when building projects that use Swift Macros.
- Device tools require code signing to be configured in Xcode. See Device Code Signing.
Privacy
MobileBuildMCP uses Sentry for internal runtime error telemetry only. For details and opt-out instructions, see Privacy & Telemetry.
CLI
MobileBuildMCP provides a unified command-line interface. The mcp subcommand starts the MCP server, while all other commands provide direct terminal access to tools:
# Install globally
npm install -g mobilebuildmcp@latest
# Start the MCP server (for MCP clients)
mobilebuildmcp mcp
# List available tools
mobilebuildmcp tools
# Build for simulator
mobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj
# Prepare portable test products without running tests
mobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj --simulator-name "iPhone 17" --build-for-testing --test-products-path ./MyApp.xctestproducts
# Run previously prepared test products
mobilebuildmcp simulator test --test-products-path ./MyApp.xctestproducts --simulator-name "iPhone 17"
Check for updates and upgrade in place:
mobilebuildmcp upgrade --check
mobilebuildmcp upgrade --yes
The CLI uses a per-workspace daemon for stateful operations (log capture, debugging, etc.) that auto-starts when needed. See the CLI guide for full documentation.
Documentation
- Installation: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/installation.mdx
- Setup: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/setup.mdx
- MCP clients: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/clients.mdx
- CLI usage: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/cli.mdx
- Configuration and options: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/configuration.mdx
- Tools reference: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/tools.mdx
- Troubleshooting: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/troubleshooting.mdx
- Privacy: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/privacy.mdx
- Skills: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/skills.mdx
- Contributing: https://github.com/getsentry/xcodebuildmcp.com/blob/main/app/docs/_content/contributing.mdx
Licence
This project is licensed under the MIT License - see the LICENSE file for details. For third-party licensing notices see the THIRD_PARTY_LICENSES file for details. For npm package attributions see the THIRD_PARTY_PACKAGE_LICENSES file for details.
Two peas, one chat
Chat with AI about XcodeBuildMCP
Opens a chat primed with XcodeBuildMCP’s README and setup docs from this page, or add it in Cursor to use its tools.
The Cursor button opens Cursor and asks before it adds the server. Fill in any keys it needs in Cursor’s MCP settings.
Peas in a pod
What are the alternatives to XcodeBuildMCP?
How XcodeBuildMCP lines up against its neighbours on the shelf. See every developer tools server.

XcodeBuildMCPThis pea
Build, run and test iOS and macOS apps, and drive simulators, from an agent.
- Tools
- 24
- Runs on
- Your computer
- Licence
- MIT
- Stars
- 6.5K

Screenshots of any Mac app or screen, with optional questions about what is on it.
- Tools
- 4 groups
- Runs on
- Your computer
- Licence
- MIT
- Stars
- 5.4K

Pods, logs, events and resources from your current kubeconfig context.
- Tools
- 14
- Runs on
- Your computer
- Licence
- Apache-2.0
- Stars
- 2.2K

Lets an assistant read and annotate the binary you have open in IDA Pro.
- Tools
- 48
- Runs on
- Your computer
- Licence
- MIT
- Stars
- 13.2K

A hosted server that reads any public GitHub repo's docs and code on request.
- Tools
- 5
- Runs on
- Hosted
- Licence
- Apache-2.0
- Stars
- 8.5K

Decompile, cross-reference and rename inside Ghidra from a chat.
- Tools
- 30
- Runs on
- Your computer
- Licence
- Apache-2.0
- Stars
- 11.6K
Something wrong on this page? Tell us.
For bots & AI agents
Machine-readable versions of XcodeBuildMCP and MCP Shelf. Fetch these instead of parsing this page.
This listing (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs