Xcode MCP is an MCP server that bridges Apple development environments with AI assistants such as Claude Desktop. It connects directly to Xcode, command-line developer tools, and the iOS Simulator on macOS, serving iOS, macOS, watchOS, and tvOS developers who want to inspect and manage project lifecycles using natural language commands. The server enables AI clients to create new projects from native templates, inspect and update workspace configurations, add source files to target groups, and execute builds or tests with structured error reporting. In addition to core compilation workflows, it provides operations for dependency management through both Swift Package Manager and CocoaPods, allowing assistants to add, remove, and resolve dependencies. It also exposes controls for local iOS simulators, enabling agents to boot devices, install builds, capture screenshots, and record execution sessions. Development teams and individual engineers use this integration to automate repetitive development tasks, query project architectures, and inspect build failures directly within their AI interfaces.
Category: Developer Tools & Code Intelligence
Tags: apple, build, ios, macos, xcode
bash git clone https://github.com/r-huijts/xcode-mcp-server.git cd xcode-mcp-server npm install npm run build 3. Create your configuration file: bash echo "PROJECTS_BASE_DIR=/path/to/your/projects" > .env 4. Add the server to Claude Desktop by editing ~/Library/Application Support/Claude/claude_desktop_config.json: json { "mcpServers": { "xcode": { "command": "node", "args": ["/path/to/xcode-mcp-server/dist/index.js"] } } } 5. Restart Claude Desktop.Part of MCP Servers
Clone the repository from GitHub, run npm install followed by npm run build, and configure your base project directory in a .env file. You can then register the built JavaScript entry file in your MCP client configuration or use the automated setup.sh script provided in the repository.
Xcode MCP lets AI assistants interact with Apple development tools. It supports creating projects from templates, adding files to targets, compiling code, executing test plans, and archiving apps. It also manages Swift Package Manager and CocoaPods dependencies, controls iOS simulators, and executes command-line tasks via xcrun.
Xcode MCP works with Claude Desktop on macOS by adding the server configuration to claude_desktop_config.json. It also supports any client implementing the Model Context Protocol that can launch local stdio processes or communicate over standard HTTP when running the server.
Running Xcode MCP requires macOS with Xcode 14.0 or higher installed, along with Node.js version 16 or newer and npm. Swift 5.5 or higher is necessary for Swift Package Manager workflows, and Ruby with CocoaPods is required if you plan to manage CocoaPods dependencies.