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.
A complete toolkit for integrating Xcode workflows with AI assistants and automation.
AI agents independently build projects, fix compilation errors, and iterate on solutions without human intervention.
From project creation to device deployment. Manage the entire iOS/macOS development lifecycle through AI commands.
Attach the debugger, set breakpoints, inspect variables, and execute LLDB commands directly from your AI agent.
Interact with simulator UI elements, capture screenshots, and automate user interface testing workflows.
Deploy and test on physical devices over USB or Wi-Fi with comprehensive log capture and debugging support.
Works with Cursor, Claude Code, VS Code, Windsurf, Xcode, and any MCP-compatible client.
Watch XcodeBuildMCP handle real development workflows end to end.
AI agents autonomously building, testing, and iterating on iOS projects.
LLDB integration for setting breakpoints, inspecting state, and fixing issues.
Seamless integration with Xcode's coding agents and development tools.
Every MCP tool is also available from the command line. Use it for scripting, CI workflows, or direct terminal usage alongside your AI agents.
Two-way integration that works inside Xcode and from external tools.
XcodeBuildMCP integrates natively with Xcode 26.3's Claude and Codex coding agents. It automatically detects your selected scheme and simulator, using those values for all operations.
Xcode now has its own MCP server for external agents. XcodeBuildMCP proxies those tools automatically, so you only need one server configured in your client.
Works with your favorite tools
.xcodebuildmcp/config.yaml
schemaVersion: 1 enabledWorkflows: - simulator - ui-automation - debugging sessionDefaults: scheme: MyApp projectPath: ./MyApp.xcodeproj simulatorName: iPhone 16
Configure your project once and let AI agents handle the rest. XcodeBuildMCP gives agents full autonomy over the build, test, and deploy cycle.
Add XcodeBuildMCP to your MCP client configuration.
Add to your MCP client configuration:
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "npx",
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
}
}
}XcodeBuildMCP is MIT licensed and welcomes contributions. Help shape the future of AI-powered Xcode development.