Skip to content
XcodeBuildMCP

XcodeBuildMCP

v2.7.0
MIT
xcodeiosmacosswiftbuild

Summary

Sentry's MCP server and CLI for iOS and macOS work — build, run on simulators and devices, capture logs, and drive tests from inside a coding agent.

Features

  • Build and test against iOS simulators from inside the agent loop
  • Device operations for code-signed builds
  • Log capture, so failures are diagnosable rather than just red
  • Dual mode: MCP server or standalone CLI with a per-workspace daemon
  • Skips xcodebuild macro validation so Swift Macros projects build

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "XcodeBuildMCP" tools will be available.
{
  "mcpServers": {
    "xcodebuild-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "xcodebuildmcp@latest",
        "mcp"
      ]
    }
  }
}

Description

Xcode is the part of iOS development an agent cannot reach. It can write Swift, but it cannot build the project, boot a simulator, install the app or read the crash log — so the loop breaks exactly where verification should happen. XcodeBuildMCP closes that gap by exposing xcodebuild and the simulator/device toolchain as MCP tools.

The tool surface covers building and testing against simulators, device operations for signed builds, build management, and log capture for debugging. That is enough for an agent to change code, build it, run it, watch what the app actually printed, and iterate — instead of stopping at "this should compile".

It ships in two modes from one package. As an MCP server it plugs into Claude Code, Cursor and any MCP client; as a CLI it is usable directly in a terminal, backed by a per-workspace daemon that keeps stateful operations alive between invocations. Optional agent skills are included to teach an agent how to use either mode well. A practical detail worth knowing: it asks xcodebuild to skip macro validation, which is what otherwise breaks builds that use Swift Macros.

Maintained by Sentry and MIT licensed. Requires macOS 14.5+, Xcode 16.x or later, and Node 18+ unless installed through Homebrew. Sentry telemetry is on by default and can be opted out of.

Related MCP Servers

MCP: HackerOne

by HackerOne

New

Official read-only MCP server for HackerOne bug bounty reports, programs, and remediation data.

Developer Tools
1 views

MCP: mcp-remote

by Glen Maddern

New

A proxy that lets local-only MCP clients connect to remote servers, handling OAuth and transport differences.

Developer Tools
1 views

MCP: Blender

by Siddharth Ahuja

New

Control Blender from an AI client — build scenes, apply materials, and run Python against the live session.

Developer Tools
2 views

MCP: E2B

by E2B

New

Run AI-generated code safely in an isolated cloud sandbox, with results returned as data rather than text.

Developer Tools
Browse all MCP servers →