← all repositories
getsentry/XcodeBuildMCP

An MCP Rosetta Stone for Xcode and AI agents

It exposes iOS and macOS build tools to AI agents through a unified CLI and MCP server.

6.1k stars TypeScript Coding Assistants
XcodeBuildMCP
Velocity · 7d
+4.7
★ / day
Trend
steady
star history

What it does

XcodeBuildMCP wraps the Xcode toolchain into a Model Context Protocol server and a standalone CLI, giving AI agents such as Cursor or Claude Code direct access to build and debug iOS and macOS projects. It ships as a single package that doubles as both an agent-facing MCP server and a direct terminal interface. A per-workspace daemon handles stateful work like log capture and debugging sessions.

The interesting bit

The project offers optional agent “skills” — essentially onboarding primers that teach an AI how to use the MCP tools or navigate the CLI, which is a refreshingly honest admission that even large models need context. It also auto-skips Swift Macro validation to sidestep a common class of build failures, and spins up a local daemon so repeated operations do not need to reconstruct state from scratch.

Key highlights

  • Dual-mode package: functions as an MCP server for AI agents and a standalone CLI for developers.
  • Optional agent skills prime models on how to use the toolset or the CLI.
  • Per-workspace daemon manages stateful operations such as log capture and debugging.
  • Provides drop-in configuration snippets for Cursor, Claude Code, and Codex.
  • Automatically requests xcodebuild to skip Swift Macro validation to avoid errors.

Caveats

  • Strictly Apple-ecosystem: requires macOS 14.5, Xcode 16, and either Node.js 18 or a Homebrew install.
  • Device tools require code signing to be configured separately in Xcode.
  • Includes Sentry runtime error telemetry, though the README notes it is internal-only and provides opt-out instructions.

Verdict

Worth exploring if you want AI agents to compile and debug iOS projects instead of hallucinating build commands. Skip it if you do not work in the Apple ecosystem or prefer to keep Xcode interactions strictly manual.

Frequently asked

What is getsentry/XcodeBuildMCP?
It exposes iOS and macOS build tools to AI agents through a unified CLI and MCP server.
Is XcodeBuildMCP open source?
Yes — getsentry/XcodeBuildMCP is open source, released under the MIT license.
What language is XcodeBuildMCP written in?
getsentry/XcodeBuildMCP is primarily written in TypeScript.
How popular is XcodeBuildMCP?
getsentry/XcodeBuildMCP has 6.1k stars on GitHub and is currently holding steady.
Where can I find XcodeBuildMCP?
getsentry/XcodeBuildMCP is on GitHub at https://github.com/getsentry/XcodeBuildMCP.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.