XcodeBuildMCP 🔌 MCP server Open source
Build, run, test and debug iOS and macOS apps from AI agents, maintained by Sentry
- GitHub stars
- 6.5k
- Stars this week
- +27
- Forks
- 321
- Licence
- MIT
- Last push
- 2026-10-02
- Maintainer
- getsentry
claude mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest mcpThird-party MCP servers run with your permissions. Read the source before installing, and prefer pinned versions.
Works with
Built on the open MCP standard, so it works in every app that supports MCP.
About XcodeBuildMCP
What it does
XcodeBuildMCP lets coding agents build, run, test and debug iOS and macOS projects. It is now maintained by Sentry. It wraps xcodebuild, the simulator tools, LLDB and Swift Package Manager in structured tools, so the agent can fix its own build errors, launch the app and check the result without you copying logs by hand. The same package works as an MCP server and as a CLI (xcodebuildmcp simulator build ...). The CLI suits agents that work better with shell commands and --help than with a long list of tools. Two optional Agent Skills explain the MCP tools or the CLI to the agent.
Tools it gives your agent
- Simulator (default): build, install, launch and one-step build-and-run on a booted simulator, with logs saved
- Device and macOS: build, test and deploy to physical Apple devices and Mac apps
- Project discovery: list schemes, workspaces, build settings and bundle IDs
- Debugging and UI automation: attach LLDB and set breakpoints; tap, swipe and take screenshots in the simulator
- Extras: Swift packages, code coverage, simulator management, project scaffolding and a bridge to Xcode's own MCP server
To keep the tool list short, only the simulator workflow is on by default. You can turn on more workflows in the config.
Works with
This is a local stdio server and needs macOS 14.5+, Xcode 16+ and Node 18+ (Node is not needed if you install with Homebrew). The docs give ready configs for Claude Code, Cursor, Codex CLI, Claude Desktop, VS Code, Kiro, Windsurf, OpenCode, Trae and the agents built into Xcode.
How to connect
claude mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest mcp
brew tap getsentry/xcodebuildmcp
brew install xcodebuildmcp
Cost and limits
It is free and MIT-licensed. It only runs on a Mac with Xcode installed. The device tools need code signing set up in Xcode first. Codex users may need to raise tool_timeout_sec for long builds.
Safety notes
The server runs real builds, installs and simulator resets on your machine. It also asks xcodebuild to skip Swift macro validation. Sentry error telemetry is on by default. It covers only the server's own crashes, not your code or tool inputs, and you can turn it off with XCODEBUILDMCP_SENTRY_DISABLED=true.
Pros
- Covers simulator, device, macOS, SwiftPM, LLDB and UI automation
- Workflow groups keep the tool list lean; also ships a CLI and Agent Skills
- Ready-made configs for most major agents
Cons
- macOS with Xcode 16+ only
- Error telemetry to Sentry is on by default (opt-out)
Similar MCP servers
All developer tool MCP servers →GitHub MCP Server 🔌 MCP serverFree
GitHub's official MCP server: issues, pull requests, code, Actions and security alerts
Sentry MCP 🔌 MCP serverFreemium
Sentry's MCP server: pull errors, stack traces and issues into your agent
🔥 Sentry for Startups: up to $5,000 in credits (12-month expiry) for companies founded in the last 2 years with under $5M raisedMCP Reference Servers 🔌 MCP serverFree
The official reference MCP servers: fetch, filesystem, git, memory and more
Unity MCP 🔌 MCP serverOpen source
Lets AI agents drive the Unity Editor: scenes, C# scripts, assets, tests and builds
n8n-MCP 🔌 MCP serverFreemium
n8n node docs, templates and validation so agents build workflows that actually run
🔥 Startup Plan: 50% off the self-hosted Business plan (fewer than 20 employees, under €5M raised)MATLAB MCP Server 🔌 MCP serverFree
Official MathWorks server to run, test and lint MATLAB code from AI agents (needs a MATLAB licence)
More from getsentry
Sentry MCP 🔌 MCP serverFreemium
Sentry's MCP server: pull errors, stack traces and issues into your agent
🔥 Sentry for Startups: up to $5,000 in credits (12-month expiry) for companies founded in the last 2 years with under $5M raised