Xcode, the way your agent wants to use it.
An MCP server and CLI that gives AI agents full control over Xcode. Build, test, debug, and deploy your iOS and macOS apps without leaving your agent.
What's inside
XcodeBuildMCP gives AI coding agents up-to 82 tools across 16 workflows for iOS, iPadOS, macOS, watchOS, tvOS, and visionOS development. Build, test, debug, and deploy your iOS and macOS apps without leaving your agent.
.xcodeproj, .xcworkspace, and Swift packages automatically.Two modes, one binary
# Started by your MCP client via stdio
xcodebuildmcp mcpThe MCP server speaks Model Context Protocol over stdio. The CLI exposes every tool directly for scripting, CI, and manual debugging. Both share the same code, the same config file, and the same per-workspace daemon.
Why XcodeBuildMCP
Agents shelling out to xcodebuild get brittle, verbose, and inconsistent results. XcodeBuildMCP gives them:
- Stable tool names and flags, versioned per release.
- Structured outputs with pre-parsed build diagnostics, durable preflight/footer sections, and JSONL streams on demand.
- Session defaults that eliminate repeated scheme/project/simulator boilerplate across tool calls.
- Two optional agent skills (
xcodebuildmcp init) that prime Claude Code, Cursor, and Codex with the right conventions. - Per-workspace daemon for stateful operations (log capture, debugging, video) with automatic start/stop.
XcodeBuildMCP ships with Sentry for internal runtime errors only. User project failures (build, test, config) are never sent, and tool arguments/outputs are never captured. Opt out any time with XCODEBUILDMCP_SENTRY_DISABLED=true. See Privacy & Telemetry.