# XcodeBuildMCP (MCP Server)

> Build, run and test iOS and macOS apps from AI agents

- Type: MCP server
- Publisher: Sentry (official)
- Categories: Development
- Website: https://github.com/getsentry/MobileBuildMCP
- Source: https://github.com/getsentry/MobileBuildMCP
- Transport: stdio
- Launch command: npx -y mobilebuildmcp@latest mcp
- Sign-in: none
- GitHub stars: 6449
- Listed: 2025-03-09

## About

MCP server and CLI (now published as MobileBuildMCP by Sentry, formerly XcodeBuildMCP) for working on iOS and macOS projects. Agents can build and run on simulators, devices and macOS, launch apps, capture logs and run tests. Requires macOS 14.5+ and Xcode 16+.

## Install

1. **Add the server to Codex**

   Codex CLI:

   ```bash
   codex mcp add xcodebuildmcp -- npx -y mobilebuildmcp@latest mcp
   ```

   config.toml:

   ```toml
   [mcp_servers.xcodebuildmcp]
   command = "npx"
   args = ["-y", "mobilebuildmcp@latest", "mcp"]
   ```

   Agents SDK:

   ```python
   from agents import Agent, Runner
   from agents.mcp import MCPServerStdio
   
   async with MCPServerStdio(
       name="XcodeBuildMCP",
       params={"command": "npx", "args": ["-y", "mobilebuildmcp@latest", "mcp"]},
   ) as server:
       agent = Agent(name="Assistant", mcp_servers=[server])
       result = await Runner.run(agent, "Build and run my app on the iPhone 17 simulator")
       print(result.final_output)
   ```

## Tools

- `build_run_sim`
- `build_run_device`
- `build_run_macos`
- `launch_app_sim`
- `launch_app_device`
- `launch_mac_app`
- `list_schemes`

## Example prompts

- "Build and run my app on the iPhone 17 simulator"
- "List the schemes in this Xcode project"
- "Run the unit tests and summarize failures"
- "Launch the macOS app and capture logs"

## Also available as

- plugin: [Sentry](https://chatgptplugins.directory/plugins/sentry.md)

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent

---
Source: https://chatgptplugins.directory/mcp/xcodebuildmcp · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
