Skip to content
MCP Shelf

XcodeBuildMCP

Build, run and test iOS and macOS apps, and drive simulators, from an agent.

View on GitHub
  • 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).
MCP Shelf tests: numbers from our own runs, not the README · tested on 26 Oct 2026

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.

ToolWhat it is for
build_run_simBuilds the app, installs it on a simulator and launches it in one step.

Changes things11 tools · Can create, edit, send or delete.

ToolWhat it is for
boot_simStarts an iOS simulator.
build_simBuilds an iOS app for the simulator and reports any compiler errors.
cleanClears out old build products so the next build starts fresh.
install_app_simInstalls a built app on a simulator.
launch_app_simOpens an installed app on the simulator.
record_sim_videoRecords a video of the simulator screen.
session_clear_defaultsForgets the saved project, scheme and simulator choices.
session_set_defaultsRemembers the project, scheme and simulator so later calls need fewer details.
session_use_defaults_profileSwitches to a saved set of defaults, for repos with several apps.
stop_app_simCloses the running app on the simulator.
test_simRuns the test suite on a simulator and returns the results.

Only reads12 tools · Looks things up and changes nothing.

ToolWhat it is for
discover_projsFinds the Xcode projects and workspaces in a folder.
get_app_bundle_idReads an app's bundle identifier.
get_coverage_reportSummarises code coverage after a test run.
get_file_coverageShows which lines of one file the tests covered.
get_sim_app_pathFinds where the built .app sits for the simulator.
list_schemesLists the schemes a project or workspace can build.
list_simsLists available simulators and whether they are running.
open_simBrings the Simulator app to the front.
screenshotCaptures the simulator screen so the agent can see the app.
session_show_defaultsShows the remembered project, scheme and simulator.
show_build_settingsPrints the Xcode build settings for a scheme.
snapshot_uiDescribes 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 Code
claude mcp add MobileBuildMCP -- npx -y mobilebuildmcp@latest mcp

If you installed it with Homebrew, use mobilebuildmcp mcp after the -- instead, which skips npx's download check each start.

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.

SettingWhat it does
mobilebuildmcp mcpConfig · requiredThe command your client runs to start the server after a Homebrew or npm install."command": "mobilebuildmcp", "args": ["mcp"]
mobilebuildmcp initConfigInstalls the optional agent skills that teach your agent how to use the tools or the CLI.
--schemeCommand line flagWhich scheme to build when you use the CLI directly.--scheme MyApp
--project-pathCommand line flagPath 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

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
  • Peekaboo

    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
  • Kubernetes MCP Server

    Pods, logs, events and resources from your current kubeconfig context.

    Tools
    14
    Runs on
    Your computer
    Licence
    Apache-2.0
    Stars
    2.2K
  • IDA Pro MCP

    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
  • GitMCP

    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
  • GhidraMCP

    Decompile, cross-reference and rename inside Ghidra from a chat.

    Tools
    30
    Runs on
    Your computer
    Licence
    Apache-2.0
    Stars
    11.6K
Full docs on GitHubgetsentry/MobileBuildMCP

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