Skip to content
SwiftSkills

The best MCP servers for Xcode, compared

The best MCP server for Xcode depends on whether Xcode should be running. MobileBuildMCP (formerly XcodeBuildMCP) builds, tests and drives simulators and devices without Xcode open. Apple's xcrun mcpbridge in Xcode 26.3+ talks to the running IDE. iOS Simulator MCP adds UI taps and screenshots, and xcodeproj MCP Server edits project files.

Last updated:

An MCP server for Xcode gives your coding agent (Claude Code, Cursor, Codex and others) tools to build, test and inspect Apple projects instead of guessing xcodebuild flags. In 2026 there are two kinds: Apple's own bridge, which talks to a running Xcode, and community servers that drive the command-line toolchain. This guide compares the ones we list in the Xcode & builds and Simulator & devices categories, with setup commands copied from each project's own documentation. Compare all Xcode MCP servers →

Quick comparison

ServerTypeNeeds Xcode open?LicenseStars (2026-10-18)Last push
Xcode Tools (xcrun mcpbridge)MCP built into Xcode 26.3+Yesships with Xcoden/an/a
MobileBuildMCPMCPNoMIT6,4882026-10-17
iOS Simulator MCPMCPNoMIT2,1942026-08-13
Xcode MCP Server (r-huijts)MCPNoMIT3862026-02-02 ⚠
xcodeproj MCP ServerMCPNoMIT1332026-09-18
XC-MCPMCPNo⚠ see below1002026-09-14
XcodeMCPKitproxy for Xcode's own MCP toolsNo (catalog entry: "headlessly while Xcode stays closed")MIT292026-10-18
Xcode MCP Bridge Wrapperwrapper for xcrun mcpbridgeYes (Xcode 26.3+/27)MIT202026-09-25
InstrumentsMCPMCP (profiling)NoMIT192026-09-11

Stars from the GitHub API, checked on 2026-10-18. License as declared on GitHub and in our catalog.

A ⚠ marks a last push more than 6 months before 2026-10-18.

Compare all Xcode MCP servers →

1. Apple's Xcode Tools: xcrun mcpbridge

Since Xcode 26.3, Xcode includes an MCP server for external agents. According to Cursor's Xcode integration docs (Xcode 26.3), xcrun mcpbridge translates MCP messages into Xcode's XPC layer and exposes 20 built-in tools in five groups: file operations (XcodeRead, XcodeWrite, XcodeUpdate, XcodeGrep…), build and test (BuildProject, GetBuildLog, RunAllTests, RunSomeTests, GetTestList), diagnostics (Issue Navigator), "intelligence" (RenderPreview for SwiftUI previews, DocumentationSearch across Apple docs and WWDC transcripts, ExecuteSnippet) and XcodeListWindows. The Xcode 27 release notes add more MCP tools: a debugger console, schemes and destinations, and build settings (176935844); String Catalog translations (176376425); and simulator control to boot, install, launch, touch and capture screenshots (175179787). The same notes add a preview MCP server that "runs without requiring an open Xcode workspace", turned on with sudo xcrun mcp-server enable (181836944).

Setup. In Xcode, open Settings → Intelligence and under Model Context Protocol turn on Xcode Tools. Then register the bridge as a stdio server. For Cursor (~/.cursor/mcp.json):

json

{
  "mcpServers": {
    "xcode-tools": {
      "command": "xcrun",
      "args": ["mcpbridge"]
    }
  }
}

Source: cursor.com/docs/integrations/xcode. Apple's page: Giving external agents access to Xcode.

Watch out: On the Xcode 26.3 flow, Xcode must be running with a project open (Apple's setup page). Xcode 27's headless preview does not need an open workspace, per the Xcode 27 release notes. If you get unable to find utility "mcpbridge", your developer directory points at the Command Line Tools; the Cursor docs fix it with sudo xcode-select -s /Applications/Xcode.app/Contents/Developer.

Best for: SwiftUI preview screenshots and Apple doc search from the IDE you already have open. Agents that run inside Xcode (Claude Agent, Codex, Gemini, plug-ins) → Cursor: step by step →

2. MobileBuildMCP (formerly XcodeBuildMCP)

The project many tutorials still call XcodeBuildMCP now lives at getsentry/MobileBuildMCP; the old GitHub URL redirects there. It ships as one package with a CLI and an MCP server. The CLI docs list workflows for simulator, device, macos, swift-package, debugging (LLDB) and ui-automation. Requirements per the installation docs: macOS 14.5+, Xcode 16+, Node.js 18+ for the npm path.

Claude Code, from the MCP clients page:

bash

claude mcp add MobileBuildMCP -- npx -y mobilebuildmcp@latest mcp

Only the simulator workflow is enabled by default; enable more in .mobilebuildmcp/config.yaml or with mobilebuildmcp setup. Full walkthrough: MobileBuildMCP / XcodeBuildMCP setup guide. Codex setup →

Best for: a headless build-run-test loop that does not need Xcode open, plus device builds and debugging. For hangs and hitches after the app launches, see iOS and SwiftUI performance with AI agents.

3. XC-MCP

XC-MCP wraps xcodebuild, simctl and idb as 77 tools. Its README focuses on context size: tools that produce large output return a summary plus an ID, and the full output stays retrievable for 30 minutes. Setup from the README:

bash

claude mcp add xc-mcp -- npx -y xc-mcp

Requirements per README: macOS 13+, Xcode/Command Line Tools 15+ (26+ for iOS 26/27 simulators); idb tools need brew install facebook/fb/idb-companion facebook/fb/idb-cli. GitHub shows no license for the repo, so check before using it at work.

4. iOS Simulator MCP

ios-simulator-mcp does one thing: interact with a booted simulator. Its tools include ui_describe_all, ui_tap and ui_view, which let an agent check a screen after a change. README setup for Claude Code:

bash

claude mcp add ios-simulator npx ios-simulator-mcp

It runs on macOS only. Pair it with a build server (MobileBuildMCP or XC-MCP); it does not build your app. Alternatives: mobile-mcp, agent-device, mcp-server-simulator-ios-idb. Compare all iOS Simulator MCP servers → The dedicated comparison is iOS simulator MCP servers compared. Test MCPs compared: Maestro vs XCUITest.

5. xcodeproj MCP Server

xcodeproj-mcp-server edits .xcodeproj files through the tuist/xcodeproj library, so an agent can add files or targets without hand-editing project.pbxproj. The README recommends Apple's container runtime on macOS 26+ and Docker on older systems:

bash

claude mcp add xcodeproj -- container run --rm -i -v '${CLAUDE_PROJECT_DIR:-.}:/workspace' ghcr.io/giginet/xcodeproj-mcp-server:latest /workspace

Which one should you use?

  • You keep Xcode open and want previews/doc search: Apple's xcrun mcpbridge.

  • You want the agent to build, run and test without Xcode open: MobileBuildMCP.

  • Context budget is tight: XC-MCP's summarized outputs, or MobileBuildMCP with only the workflows you need.

  • The agent must "see" the UI: add an iOS Simulator MCP server next to your build server.

  • The agent keeps breaking project.pbxproj: add xcodeproj MCP Server. See Stop AI agents breaking project.pbxproj.

Many setups combine two: one build server plus one UI server. Every tool definition costs context, so start small.

Make agents use them well

MCP gives the agent hands; skills and rules tell it how to write Swift. Browse SwiftUI agent skills, the Xcode Build Optimization skill and the iOS Simulator Skill. For the tests an agent writes and runs, see Swift Testing skills and UI testing tools.

FAQ

What is the best MCP server for Xcode?
There is no single winner. Apple's xcrun mcpbridge is first-party. On the Xcode 26.3 flow it needs Xcode open with the project; Xcode 27 adds a headless preview (sudo xcrun mcp-server enable) that runs without an open Xcode workspace, per Apple's Xcode 27 release notes. MobileBuildMCP (formerly XcodeBuildMCP) covers builds, simulators, devices and debugging without Xcode open. Many developers run one of them plus a simulator UI server.
Is XcodeBuildMCP the same as MobileBuildMCP?
Yes. The repository moved to getsentry/MobileBuildMCP and the old XcodeBuildMCP GitHub URL redirects there. The npm package and CLI are now mobilebuildmcp.
Does Xcode have a built-in MCP server?
Yes, since Xcode 26.3. Enable Xcode Tools under Settings → Intelligence → Model Context Protocol and register xcrun mcpbridge as a stdio server in your client. Xcode 27 adds a headless preview you turn on with sudo xcrun mcp-server enable, per Apple's Xcode 27 release notes. Apple's setup page still describes opening the project first.
Can I use these MCP servers from Cursor and Codex, not just Claude Code?
Yes. They are standard stdio MCP servers. MobileBuildMCP documents Cursor, Codex CLI, Claude Desktop, VS Code, Windsurf and Xcode's own agents.
Which Xcode MCP server works without Xcode running?
MobileBuildMCP, iOS Simulator MCP, xcodeproj MCP Server and XC-MCP drive the command-line toolchain and do not need Xcode open. Apple's xcrun mcpbridge needs a running Xcode with the project open on the Xcode 26.3 flow. Xcode 27's headless preview (sudo xcrun mcp-server enable) runs without an open Xcode workspace, per Apple's Xcode 27 release notes.