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.
Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.
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
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
[](https://github.com/getsentry/XcodeBuildMCP/actions/workflows/ci.yml)
[](https://badge.fury.io/js/xcodebuildmcp) [](https://opensource.org/licenses/MIT) [](https://nodejs.org/) [](https://developer.apple.com/xcode/) [](https://www.apple.com/macos/) [](https://modelcontextprotocol.io/) [](https://deepwiki.com/getsentry/XcodeBuildMCP) [](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: [](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: [](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) [](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.
Use Cases▌
Extended AI Capabilities
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Context Enhancement
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Workflow Automation
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Implementation Guide▌
Prerequisites
- ›Claude Desktop 0.7.0+ or Cursor IDE with MCP support
- ›Basic understanding of MCP architecture and capabilities
- ›Access credentials for integrated services (if required)
- ›Willingness to experiment and iterate on configuration
Time Estimate
15-60 minutes depending on server complexity
Installation Steps
- 1.Install MCP server: npm install -g [package-name] or via GitHub
- 2.Add server configuration to ~/.claude/mcp.json
- 3.Provide required credentials and configuration
- 4.Restart Claude Desktop to load new server
- 5.Test basic functionality with simple prompts
- 6.Explore capabilities and experiment with use cases
- 7.Document successful patterns for reuse
Troubleshooting
- ⚠MCP server not loading: Check config syntax, verify installation
- ⚠Connection errors: Check network, firewall, credentials
- ⚠Feature not working: Read server docs, check required parameters
- ⚠Performance issues: Monitor resource usage, check for network latency
- ⚠Conflicts with other servers: Check port assignments, namespace collisions
Best Practices▌
✓ Do
- +Read server documentation thoroughly before setup
- +Start with simple use cases to validate functionality
- +Test in non-production environment first
- +Monitor resource usage and performance
- +Keep servers updated for bug fixes and new features
- +Document configuration for team members
- +Use environment variables for sensitive configuration
✗ Don't
- −Don't grant overly permissive access to MCP servers
- −Don't skip reading security considerations in docs
- −Don't expose sensitive data without proper controls
- −Don't run untrusted MCP servers without code review
- −Don't ignore error messages—investigate root cause
💡 Pro Tips
- ★Combine multiple MCP servers for powerful workflows
- ★Create custom MCP servers for your specific needs
- ★Share successful configurations with team
- ★Use MCP inspector for debugging
- ★Join MCP community for tips and troubleshooting
Technical Details▌
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
- Model Context Protocol (MCP)
- JSON-RPC 2.0
- stdio or HTTP transport
Compatibility
- Claude Desktop
- Cursor IDE
- Custom MCP clients
When to Use This▌
✓ Use When
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid When
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.
Integration▌
- →Tool composition: Chain multiple MCP tools in workflows
- →Context augmentation: Provide AI with relevant external data
- →Action delegation: Let AI execute tasks on external systems
- →Bidirectional sync: Keep AI context and external systems in sync
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
List & Promote Your MCP Server
Share your MCP server with the developer community
Ratings
4.5★★★★★69 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