XcodeBuild MCP is an MCP server and command-line interface that connects AI coding agents to Xcode build tooling and Apple simulator management. It allows iOS and macOS software engineers using AI tools like Cursor, Claude Code, and Codex to automate compilation, testing, and debugging directly inside their development environments. The server coordinates project builds using xcodebuild while automatically skipping macro validation to handle Swift Macros without build errors. It also provides tools for discovering available iOS simulators, preparing standalone test products, executing test suites, and deploying applications to physical or emulated devices. Behind the scenes, the integration leverages a background daemon per workspace to maintain state across long-running tasks like log captures and debugging sessions. By packaging native Apple toolchains into standard Model Context Protocol endpoints, XcodeBuild MCP lets agents diagnose compilation errors, verify UI behavior on simulators, and manage testing cycles without manual terminal intervention.
Category: Cloud & Infrastructure
Tags: build-automation, ios, macos, simulator, xcode
bash brew tap getsentry/xcodebuildmcp && brew install xcodebuildmcp or bash npm install -g xcodebuildmcp@latest 3. Alternatively, prepare to run it on demand without installation via npx -y xcodebuildmcp@latest mcp. 4. Register the MCP server in your MCP client configuration (such as Cursor or Claude Code) using the executable command xcodebuildmcp with the argument mcp. 5. Optionally prime agent skills by running xcodebuildmcp init in your terminal.Part of MCP Servers
You can install XcodeBuild MCP via Homebrew by tapping getsentry/xcodebuildmcp and running brew install xcodebuildmcp. Alternatively, install it globally using npm with the command npm install -g xcodebuildmcp@latest. It can also be executed on demand without a global installation using npx.
XcodeBuild MCP requires a Mac running macOS 14.5 or later, Xcode 16.x or later, and Node.js 18.x or later if you are installing through npm. Node.js is not strictly required when installing via Homebrew.
XcodeBuild MCP works with popular Model Context Protocol clients including Cursor, Claude Code, and Codex. Clients can start the server by launching the xcodebuildmcp binary with the mcp argument or via npx.
Yes, XcodeBuild MCP is open source and released under the MIT License. The complete source code and licensing terms can be accessed on its official GitHub repository.