- macOS 14.5 or later
- Xcode 16.x or later
- Node.js 18.x or later
npx -y @smithery/cli@latest install cameroncooke/xcodebuildmcp --client client-nameIf you are using Cursor or VS Code you can use the quick install links below.
Most MCP clients use JSON configuration. Add the following to your client configuration under mcpServers:
"XcodeBuildMCP": {
"command": "npx",
"args": [
"-y",
"xcodebuildmcp@latest"
]
}Codex uses TOML for MCP configuration. Add this to your Codex CLI config file:
[mcp_servers.XcodeBuildMCP]
command = "npx"
args = ["-y", "xcodebuildmcp@latest"]
env = { "INCREMENTAL_BUILDS_ENABLED" = "false", "XCODEBUILDMCP_SENTRY_DISABLED" = "false" }If you see tool calls timing out (for example, timed out awaiting tools/call after 60s), increase the timeout:
tool_timeout_sec = 600For more info see the OpenAI Codex configuration docs: https://github.com/openai/codex/blob/main/docs/config.md#connecting-to-mcp-servers
# Add XcodeBuildMCP server to Claude Code
claude mcp add XcodeBuildMCP npx xcodebuildmcp@latest
# Or with environment variables
claude mcp add XcodeBuildMCP npx xcodebuildmcp@latest -e INCREMENTAL_BUILDS_ENABLED=false -e XCODEBUILDMCP_SENTRY_DISABLED=falseNote: XcodeBuildMCP requests xcodebuild to skip macro validation to avoid Swift Macro build errors.
- Configuration options: CONFIGURATION.md
- Session defaults and opt-out: SESSION_DEFAULTS.md
- Tools reference: TOOLS.md
- Troubleshooting: TROUBLESHOOTING.md