developer-tools

XcodeBuild

by cameroncooke

XcodeBuild streamlines iOS app development for Apple developers with tools for building, debugging, and deploying iOS an

Enables building, running, and debugging iOS and macOS applications through Xcode with tools for project discovery, simulator management, app deployment, and UI automation testing.

github stars

4.6K

Direct Xcode integrationWorks with Claude and VS Code extensions

best for

  • / iOS developers using AI coding assistants
  • / Building iOS apps from VS Code with Cline or Roo Code
  • / Automating iOS build processes in AI workflows

capabilities

  • / Build iOS Xcode workspaces and projects
  • / Run tests for iOS projects
  • / Handle Xcode build errors and output
  • / Execute xcodebuild commands from AI assistants

what it does

Enables building and testing iOS Xcode projects directly from AI coding assistants like Claude or VS Code extensions. Connects your AI workflow to native Xcode build tools.

about

XcodeBuild is a community-built MCP server published by cameroncooke that provides AI assistants with tools and capabilities via the Model Context Protocol. XcodeBuild streamlines iOS app development for Apple developers with tools for building, debugging, and deploying iOS an It is categorized under developer tools. This server exposes 63 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install XcodeBuild in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

XcodeBuild is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

XcodeBuild MCP A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects. [![CI](https://github.com/getsentry/XcodeBuildMCP/actions/workflows/ci.yml/badge.svg)](https://github.com/getsentry/XcodeBuildMCP/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/xcodebuildmcp.svg)](https://badge.fury.io/js/xcodebuildmcp) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Node.js](https://img.shields.io/badge/node->=18.x-brightgreen.svg)](https://nodejs.org/) [![Xcode 16](https://img.shields.io/badge/Xcode-16-blue.svg)](https://developer.apple.com/xcode/) [![macOS](https://img.shields.io/badge/platform-macOS-lightgrey.svg)](https://www.apple.com/macos/) [![MCP](https://img.shields.io/badge/MCP-Compatible-green.svg)](https://modelcontextprotocol.io/) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/getsentry/XcodeBuildMCP) [![AgentAudit Security](https://img.shields.io/badge/AgentAudit-Safe-brightgreen?logo=data:image/svg%2Bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xMiAxTDMgNXY2YzAgNS41NSAzLjg0IDEwLjc0IDkgMTIgNS4xNi0xLjI2IDktNi40NSA5LTEyVjVsLTktNHoiLz48L3N2Zz4=)](https://www.agentaudit.dev/skills/xcodebuildmcp) ## Installation XcodeBuildMCP ships as a single package with two modes: a **CLI** for direct terminal use and an **MCP server** for AI coding agents. Both installation methods give you both modes. ### Option A — Homebrew ```bash brew tap getsentry/xcodebuildmcp brew install xcodebuildmcp ``` Use the CLI: ```bash xcodebuildmcp --help ``` MCP client config: ```json "XcodeBuildMCP": { "command": "xcodebuildmcp", "args": ["mcp"] } ``` Upgrade later with `brew update && brew upgrade xcodebuildmcp`. ### Option B — npm / npx (Node.js 18+) **For CLI use**, install globally: ```bash npm install -g xcodebuildmcp@latest xcodebuildmcp --help ``` **For MCP server only**, no global install needed — add directly to your client config: ```json "XcodeBuildMCP": { "command": "npx", "args": ["-y", "xcodebuildmcp@latest", "mcp"] } ``` To pin a specific version, replace `@latest` with an exact version (e.g. `xcodebuildmcp@latest`). ### Client-specific setup The examples below use npx (Option B). If you installed via Homebrew, replace the command with `"command": "xcodebuildmcp", "args": ["mcp"]` instead.
Cursor
Recommended (project-scoped): add `.cursor/mcp.json` in your workspace root: ```json { "mcpServers": { "XcodeBuildMCP": { "command": "npx", "args": ["-y", "xcodebuildmcp@latest", "mcp"] } } } ``` For global Cursor config (`~/.cursor/mcp.json`), use this variant so startup is aligned with the active workspace: ```json { "mcpServers": { "XcodeBuildMCP": { "command": "/bin/zsh", "args": [ "-lc", "cd "${workspaceFolder}" && exec npx -y xcodebuildmcp@latest mcp" ] } } } ``` Or use the quick install link: [![Install MCP Server](https://cursor.com/deeplink/mcp-install-light.svg)](https://cursor.com/en-US/install-mcp?name=XcodeBuildMCP&config=eyJjb21tYW5kIjoibnB4IC15IHhjb2RlYnVpbGRtY3BAbGF0ZXN0IG1jcCJ9)
Claude Code
Run: ```bash claude mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest mcp ```
Codex CLI
Run: ```bash codex mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest mcp ``` Or add to `~/.codex/config.toml`: ```toml [mcp_servers.XcodeBuildMCP] command = "npx" args = ["-y", "xcodebuildmcp@latest", "mcp"] ```
Claude Desktop
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`: ```json { "mcpServers": { "XcodeBuildMCP": { "command": "npx", "args": ["-y", "xcodebuildmcp@latest", "mcp"] } } } ```
VS Code / VS Code Insiders
Add to your VS Code settings JSON: ```json "mcp": { "servers": { "XcodeBuildMCP": { "command": "npx", "args": ["-y", "xcodebuildmcp@latest", "mcp"] } } } ``` Or use the quick install links: [![Install in VS Code](https://img.shields.io/badge/VS_Code-XcodeBuildMCP-0098FF?style=flat&logo=visualstudiocode&logoColor=ffffff)](vscode:mcp/install?%7B%22name%22%3A%22XcodeBuildMCP%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22xcodebuildmcp%40latest%22%2C%22mcp%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-XcodeBuildMCP-24bfa5?style=flat&logo=visualstudiocode&logoColor=ffffff)](vscode-insiders:mcp/install?%7B%22name%22%3A%22XcodeBuildMCP%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22xcodebuildmcp%40latest%22%2C%22mcp%22%5D%7D)
Kiro / Kiro CLI
**Workspace-level** (applies only to the current workspace): add `.kiro/settings/mcp.json` in your project root: ```json { "mcpServers": { "XcodeBuildMCP": { "command": "npx", "args": ["-y", "xcodebuildmcp@latest", "mcp"] } } } ``` **User-level** (applies globally across all workspaces): add to `~/.kiro/settings/mcp.json`: ```json { "mcpServers": { "XcodeBuildMCP": { "command": "npx", "args": ["-y", "xcodebuildmcp@latest", "mcp"] } } } ```
Windsurf
Add to `~/.codeium/windsurf/mcp_config.json`: ```json { "mcpServers": { "XcodeBuildMCP": { "command": "npx", "args": ["-y", "xcodebuildmcp@latest", "mcp"] } } } ```
Trae
Add to `~/Library/Application Support/Trae/User/mcp.json`: ```json { "mcpServers": { "XcodeBuildMCP": { "command": "npx", "args": ["-y", "xcodebuildmcp@latest", "mcp"] } } } ```
Xcode (Codex Agent)
Requires Xcode 26.3 or later. Codex agent must be installed and configured in Xcode Settings -> Intelligence -> Open AI. The only way at the time of writing to add an MCP server is to use a project scoped `.codex/config.toml` file in the root of your project workspace: `/path/to/your/project/.codex/config.toml` ```toml [mcp_servers.XcodeBuildMCP] args = [ "-lc", "PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin; export NVM_DIR="$HOME/.nvm"; [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"; nvm use --silent >/dev/null 2>&1 || true; npx -y xcodebuildmcp@latest mcp" ] command = "/bin/zsh" enabled = true tool_timeout_sec = 10000 ``` > **NOTE**: > Codex Agent when running in Xcode has a limited PATH by default. The above example should work for most users but if you find the server doesn't start or is not available, it's likely because npx is not found so you might have to adjust the above configuration accordingly.
Xcode (Claude Code Agent)
Requires Xcode 26.3 or later. Claude Code agent must be installed and configured in Xcode Settings -> Intelligence -> Anthropic. Add to the end or replace the existing `mcpServers` object in Xcode's Claude Code agent config at: `~/Library/Developer/Xcode/CodingAssistant/ClaudeAgentConfig/.claude.json` ```json // ... rest of file ... "mcpServers": { "XcodeBuildMCP": { "command": "/bin/zsh", "args": [ "-lc", "PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin; export NVM_DIR="$HOME/.nvm"; [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"; nvm use --silent >/dev/null 2>&1 || true; npx -y xcodebuildmcp@latest mcp" ] } } } ``` > **NOTE**: > Claude Code Agent when running in Xcode has a limited PATH by default. The above example should work for most users but if you find the server doesn't start or is not available, it's likely because npx is not found so you might have to adjust the above configuration accordingly.
AdaL CLI
Run the following command inside the AdaL CLI prompt: ```console /mcp add XcodeBuildMCP --command npx --args "-y,xcodebuildmcp@latest,mcp" ```

For other installation options see [Getting Started](docs/GETTING_STARTED.md). ## Requirements - macOS 14.5 or later - Xcode 16.x or later - Node.js 18.x or later (not required for Homebrew installation) ## Skills XcodeBuildMCP now includes two optional agent skills: - **MCP Skill**: Primes the agent with instructions on how to use the MCP server's tools (optional when using the MCP server). - **CLI Skill**: Primes the agent with instructions on how to navigate the CLI (recommended when using the CLI). To install with a global binary: ```bash xcodebuildmcp init ``` Or install directly via npx without a global install: ```bash npx -y xcodebuildmcp@latest init ``` For further information on installing skills, see: [docs/SKILLS.md](docs/SKILLS.md) ## Notes - XcodeBuildMCP requests xcodebuild to skip macro validation to avoid errors when building projects that use Swift Macros. - Device tools require code signing to be configured in Xcode. See [docs/DEVICE_CODE_SIGNING.md](docs/DEVICE_CODE_SIGNING.md). ## Privacy XcodeBuildMCP uses Sentry for internal runtime error telemetry only. For details and opt-out instructions, see [docs/PRIVACY.md](docs/PRIVACY. ---

FAQ

What is the XcodeBuild MCP server?
XcodeBuild is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for XcodeBuild?
This profile displays 69 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.569 reviews
  • Kaira Agarwal· Dec 28, 2024

    XcodeBuild is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Naina Lopez· Dec 20, 2024

    XcodeBuild has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Aanya Harris· Dec 20, 2024

    XcodeBuild reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Amina Nasser· Dec 16, 2024

    We wired XcodeBuild into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Harper Patel· Dec 12, 2024

    Useful MCP listing: XcodeBuild is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Pratham Ware· Dec 8, 2024

    XcodeBuild is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Sakshi Patil· Nov 27, 2024

    XcodeBuild is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Kabir Brown· Nov 19, 2024

    XcodeBuild is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Isabella Gill· Nov 11, 2024

    I recommend XcodeBuild for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Amina Chen· Nov 7, 2024

    We evaluated XcodeBuild against two servers with overlapping tools; this profile had the clearer scope statement.

showing 1-10 of 69

1 / 7