MobileBuildMCP

Gives coding agents MCP tools and a CLI to drive Xcode builds, simulators and tests on iOS and macOS projects.

Stars
★ 6.6k
Last updated
1mo ago v2.7.1
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
TypeScript

At a glance

How it runs
CLIMCP serverAgent plugin / skill
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free, no paid service needed
Setup effort
Medium · a few setup steps
You'll need
macOS 14.5 or laterXcode 16.x or laterNode.js 18.x or later (not required for Homebrew installation)Shell / CLINetwork accessLocal filesystemMCP Server
Typical use
A developer using Cursor, Claude Code or Codex wants the agent to kick off a simulator build and read the resulting errors while editing iOS code.
Not a fit if
  • Teams building iOS/macOS projects on Linux or Windows
  • Machines with Xcode below 16 or macOS below 14.5
  • Teams that cannot configure code signing yet need device tools
Maintenance
Commits in the last 6 monthslast commit 2026-10-22latest release v2.7.1 (2026-09-23)+2.3 ★/day over 7 days

What does this agent do, and when should you use it?

MobileBuildMCP is an MIT-licensed MCP server and CLI published by Sentry for agents working on iOS and macOS projects. It ships as one package in two modes: an MCP server started with mobilebuildmcp mcp that MCP clients connect to, and a terminal CLI that runs the same tools directly. The toolset sits on top of xcodebuild and simulators: simulator build builds a scheme from a project path, --build-for-testing produces portable .xctestproducts, and simulator test runs tests from those products on a named simulator. Stateful operations such as log capture and debugging go through a per-workspace daemon that starts on demand. The runtime boundary is explicit: macOS 14.5+, Xcode 16.x+, and device tools require code signing configured in Xcode.

It wraps Xcode build and test operations as tools an agent can call. Running mobilebuildmcp mcp exposes the MCP server, and mobilebuildmcp tools lists every available tool. A build runs through mobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj, with --simulator-name picking the simulator; adding --build-for-testing --test-products-path ./MyApp.xctestproducts writes portable test products, which mobilebuildmcp simulator test --test-products-path ... --simulator-name ... later executes. The tool asks xcodebuild to skip macro validation so projects using Swift Macros do not fail to build. mobilebuildmcp init installs two optional agent skills, an MCP Skill and a CLI Skill, that prime the agent to use the tools or navigate the CLI. Long-running stateful work such as log capture and debugging is handled by a per-workspace daemon that auto-starts when needed. Internal runtime error telemetry goes to Sentry, with documented opt-out.

  1. A developer using Cursor, Claude Code or Codex wants the agent to kick off a simulator build and read the resulting errors while editing iOS code.
  2. Local verification outside CI: build with --build-for-testing once, then rerun simulator test against the stored .xctestproducts on a chosen simulator.
  3. A team wants one toolset wired into both an MCP client and shell scripts instead of maintaining two separate build wrappers.
  4. Maintainers of Swift Macros-heavy projects who keep hitting xcodebuild macro validation errors.
  5. Teams that want their agent primed with explicit usage instructions by running mobilebuildmcp init for the MCP Skill or CLI Skill.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • brew install mobilebuildmcp
  • npm install -g mobilebuildmcp@latest
  • npx -y mobilebuildmcp@latest mcp
Runtime
Node.js 18+
Install notes cover
macOS

How do you install or deploy this agent?

Pick either method; both give you the CLI and the MCP server.

Homebrew:

brew tap getsentry/xcodebuildmcp
brew install mobilebuildmcp

npm (Node.js 18+ required):

npm install -g mobilebuildmcp@latest

Verify the install:

mobilebuildmcp --help

Runtime requirements: macOS 14.5 or later and Xcode 16.x or later; the Homebrew path does not need Node.js. Device tools require code signing to be configured in Xcode first.

How do you use this agent?

Start the MCP server on demand without a global install:

npx -y mobilebuildmcp@latest mcp

Or use the installed global binary:

mobilebuildmcp mcp

With the client connected, inspect the tools and run a simulator build:

mobilebuildmcp tools
mobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj

Prepare portable test products first, then run the tests separately:

mobilebuildmcp simulator build --scheme MyApp --project-path ./MyApp.xcodeproj --simulator-name "iPhone 17" --build-for-testing --test-products-path ./MyApp.xctestproducts
mobilebuildmcp simulator test --test-products-path ./MyApp.xctestproducts --simulator-name "iPhone 17"

Install the optional agent skills:

mobilebuildmcp init

Check for updates and upgrade in place:

mobilebuildmcp upgrade --check
mobilebuildmcp upgrade --yes

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • One package delivers both a CLI and an MCP server, so agents and shell scripts share the same tool implementation.
  • --build-for-testing with --test-products-path splits building from running, letting stored .xctestproducts be reused across test runs.
  • Deliberately skips xcodebuild macro validation, removing a common failure for projects that use Swift Macros.
  • Ships optional MCP Skill and CLI Skill files so the agent is primed on correct usage instead of guessing.
  • Installable through Homebrew or npm, and the Homebrew path avoids a Node.js dependency entirely.
Limitations
  • Hard platform requirement: macOS 14.5+ and Xcode 16.x+, so Linux and Windows hosts are excluded.
  • Device tools depend on code signing already configured in Xcode; without it those capabilities are unavailable.
  • Stateful work depends on a per-workspace daemon that auto-starts, adding a process to account for in deployment and troubleshooting.
  • Sends internal runtime error telemetry to Sentry by default; privacy-sensitive teams must follow the documented opt-out.
  • Full documentation lives in a separate xcodebuildmcp.com repository, so configuration and troubleshooting details require jumping to another source.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
MobileBuildMCP This agent 54 · Major gaps CLIFree ★ 6.6k 1mo ago TypeScript Codex · Claude Code
Pachca API Agent Toolkit 69 · Some gaps — ★ 12 1d ago TypeScript ChatGPT · Codex · Claude Code · Claude.ai
Microsoft Learn MCP Server 68 · Some gaps MCP serverFree ★ 2k 1mo ago TypeScript ChatGPT · Codex · Claude Code · Claude.ai
CC Workflow Studio 50 · Major gaps IDE extensionFree + model costs ★ 5.5k 4mo ago TypeScript ChatGPT · Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
54/ 100 5-point scale 2.7 / 5
Trust 11/29
Reliability 9/14
Adaptability 12/18
Convention 10/18
Effectiveness 7/13
Verifiability 5/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

The README says Sentry is used only for internal runtime-error telemetry and points to privacy and opt-out details, which makes the stated data flow partly transparent; this packet does not show telemetry fields, retention, or sensitive-data controls. The product can invoke builds, device, debugging, and UI automation, and examples include upgrades and device operations. No per-action permission, confirmation, or rollback policy is shown, so privilege, confirmation, effects, and recovery receive only partial credit. Publisher identity is unverified and maintenance ownership is unclear.

Reliability9 / 14 · 3.2/5

The README, skills, and package metadata broadly agree on MCP/CLI purpose and macOS, Xcode, and Node requirements. CI is configured for build, static checks, type checking, and tests. Development rules distinguish system errors from user workflow errors, supporting diagnosability in ordinary use. The packet contains no run results or concrete user-facing error examples, so these criteria do not receive full marks.

Adaptability12 / 18 · 3.3/5

The materials identify iOS/macOS workflows and cover simulators, devices, debugging, logs, UI automation, and SwiftPM; they also state that some workflows are disabled by default and require configuration. The skills guide agents to check session defaults and tool availability. The target environment is clear, but other platforms and detailed alternative paths are not covered.

Convention10 / 18 · 2.8/5

The README is organized around installation, requirements, skills, CLI, documentation, and licensing, with Homebrew/npm instructions, command examples, and documentation links. Package name, MCP name, and version are visible, and the MIT license text is present. The supplied changelog evidence is only contributor guidance, with no product release history; limitations and maintenance responsibility are thin, and publisher identity remains unknown.

Effectiveness7 / 13 · 2.7/5

A unified CLI and MCP interface exposes Xcode build, test, run, and diagnostic workflows to agents. The skills help discover commands and reduce repetitive operations, showing a plausible practical benefit. The packet gives few examples and no measured benefit, cost, or resource impact, so cost-benefit support is limited.

Verifiability5 / 8 · 3.1/5

README claims about installation, platform requirements, and telemetry are partly corroborated by package metadata, skills, and CI configuration. CI lists checks but does not establish that this revision passed them. The packet does not map every product claim to implementation detail, so this review relies only on the supplied files and does not infer behavior from unseen source.

Risks and how to mitigate them
  • The product can invoke consequential build, device, and UI workflows; review tool configuration, code-signing requirements, and command arguments before use.
  • Telemetry is described only at a high level; consult the product privacy and opt-out guidance when working with sensitive projects or logs.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 2998ac77ebbc
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/mobilebuildmcp.svg)](https://followagents.com/en/agents/mobilebuildmcp)
<a href="https://followagents.com/en/agents/mobilebuildmcp"><img src="https://followagents.com/badge/mobilebuildmcp.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v2.7.1 Release v2.7.1
    Release notes excerpt
    Release v2.7.1 Changed - Renamed the project from XcodeBuildMCP to MobileBuildMCP. The npm package, CLI binaries (mobilebuildmcp, mobilebuildmcp-doctor), Homebrew formula, MOBILEBUILDMCP_* environment variables, mobilebuildmcp:// resource URIs, mobilebuildmcp.output.* structured output schema IDs, the .mobilebuildmcp/config.yaml project config directory, and the ~/Library/Developer/MobileBuildMCP state directory all use the new name. The xcodebuildmcp.com domain is retired: structured output schema $id URLs now use `https://raw.githubusercontent.com/getsentry/MobileB …
    View on GitHub ↗
  2. v2.7.0 Release v2.7.0
    Release notes excerpt
    Release v2.7.0 New! Xcode 27 Device Hub simulator support UI automation tools now work fully with Xcode 27 simulators through Device Hub, including simulator window launching and keyboard controls. XcodeBuildMCP targets the selected simulator directly and uses locale-independent menu actions, while maintaining backward compatibility with Simulator.app on earlier Xcode versions. Breaking Build and test structured results now use schema version 3 …
    View on GitHub ↗
  3. v2.6.2 Release v2.6.2
    Release notes excerpt
    Release v2.6.2 Fixed - Fixed xcodebuildmcp upgrade so update checks use the latest GitHub release as the canonical target instead of stale package-manager metadata, ensuring multi-version upgrades show release notes for the actual target version. Option A — Homebrew (no Node.js required) Install: ```bash brew tap getsentry/xcodebuildmcp brew install xcodebuildmcp ``` MCP config: ```json "XcodeBuildMCP": { "command": "xcodebuildmcp", "args": ["mcp"] } ``` Option B — npm / npx (Node.js 18+) Install: ```bash npm install -g xcodebuildmcp@latest ``` MCP config: ```json …
    View on GitHub ↗

FAQ

Does it cost anything to use?
No. The project is MIT licensed and the README lists no paid tier or subscription; installation and running are free.
Does it send my project data anywhere?
The README states Sentry is used only for internal runtime error telemetry and documents how to opt out; uploading project source is not described.
Must an agent go through MCP to use it?
No. The same package is a CLI, so an agent can call mobilebuildmcp simulator build and similar commands directly; mobilebuildmcp init installs the MCP Skill or CLI Skill to guide it.
Why prepare .xctestproducts before testing?
Using --build-for-testing separates the build from execution, so simulator test can rerun the stored products on a chosen simulator without rebuilding each time.
Can it run on a non-Mac machine?
No. It requires macOS 14.5 or later and Xcode 16.x or later, neither of which is available on Linux or Windows.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts