← Back to directory
X

XC-MCP

Community
Trim Xcode output so AI agents can build, run, and drive iOS apps.
Category
Dev Tools #132 of 751
Stars
★ 104 Popular
Transport
stdio (local process)
Runtime
Node.js 20+
Credentials
No credential needed
Last commit
Tools
81
58FMRS · C

This project provides MCP tools for Xcode and iOS simulator workflows, with a focus on reducing large outputs and exposing details on demand. The README declares an MIT license; the supplied repository metadata marks the license as unknown. No server manifest was provided.

Strongest · Documentation 15/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
11/20
Maintenance
10/20
Documentation
15/20
Setup experience
12/20
Why each score
Reliability 10/20
The README describes output caching, error summaries, dependency requirements, and troubleshooting, and discloses some Duo verification limits and idb failure modes. However, no manifest, reviewable source, CI workflow, or committed test evidence was supplied to verify startup, the MCP handshake, or that tool behavior matches its declarations. Under the static calibration, the score stays at or below 12 and is reduced for the lack of verification.
Security and permissions 11/20
The documentation says tools declare read/write and destructive hints, and that erase, delete, uninstall, and photo-library clearing require explicit confirmation, providing some control over local side effects. The server can invoke build and simulator commands, and caches full output for 30 minutes with resource access. The supplied material does not explain data boundaries, credential handling, permission scope, or network behavior, and the confirmation logic cannot be verified. No evidence of a specified red-line issue appears, so the 0–4 red-line range is not triggered; points are deducted for incomplete security evidence.
Maintenance 10/20
The README identifies the license as MIT, describes version history, links a changelog, and gives contribution guidance; supplied metadata says the repository is not archived. There is no reviewable evidence of recent releases, commits, issue responses, dependency updates, or a security response channel. The supplied license metadata is also unknown, so sustained maintenance and mature governance are not assumed.
Documentation 15/20
The README provides configuration examples for several clients, platform and version requirements, tool categories, call examples, output-cache details, troubleshooting, and limitations for Duo and accessibility automation. Points are deducted because the manifest is unavailable, parameter details rely on unprovided documents or runtime queries, and many capability, performance, and verification claims cannot be corroborated from the supplied material.
Setup experience 12/20
The README gives configuration examples for Claude Code, Codex CLI, and Claude Desktop, and lists macOS, Node.js, Xcode, and idb requirements, making the setup path fairly clear. Points are deducted because setup requires macOS, Xcode, and an extra idb installation, and the supplied material lacks a manifest or source to verify that npm startup and MCP connection work. The static evidence does not support a higher score.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

Best for

  • People developing iOS apps on macOS with Xcode.
  • MCP workflows that automate simulators, test apps, or inspect accessible interfaces.
  • Workflows that need concise summaries first and large command output only when requested.

Not for

  • Users without a macOS or Xcode environment.
  • Workflows that do not involve iOS builds, simulators, or app UI automation.
  • Use cases requiring real iPhone device control, which the source does not describe.

Required permissions

  • Requires access to local Xcode, xcodebuild, simctl, and configured idb CLI and companion.
  • Building, testing, installing apps, or controlling simulators and UI requires permission to perform those local operations.
  • Some destructive actions require explicit confirmation, including erasing or deleting simulators, uninstalling apps, and clearing the photo library.

Risks and side effects

  • Erasing or deleting simulators, uninstalling apps, and clearing the photo library can cause data loss; these actions require confirm: true.
  • The server builds, tests, and operates simulators or apps; tool calls can change the local development environment or app state.
  • iPhone Duo support uses experimental private interfaces, and operations such as rotation may time out or fail; check the returned success value and observed state.
  • Simulator UI operations require idb; with Xcode 27, older companions may report success while touch events fail.

Setup

Before you start

Runtime:Node.js 20+

Other optional settings (3)
XC_MCP_CACHE_DIR optional Sets the cache persistence directory; defaults to `~/.xc-mcp` and honors `XDG_CACHE_HOME`.
XC_MCP_HANG_DIR optional Sets the HangBuster capture session directory; defaults to `~/.xc-mcp/hang-sessions`.
XC_MCP_RECORDINGS_DIR optional Sets the test recording reports directory; defaults to `~/.xc-mcp/test-recordings`.

Requires macOS 13+, Node.js 20+, and Xcode with Command Line Tools 15+. UI automation also requires idb CLI and companion 1.5.1+. In Claude Code, Codex CLI, or Claude Desktop MCP configuration, set the command to npx and arguments to ["-y", "xc-mcp"]. After connecting, call rtfm to list tool categories and descriptions.

.mcp.json
{"mcpServers":{"xc-mcp":{"command":"npx","args":["-y","xc-mcp"]}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "xc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "xc-mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.xc-mcp]
command = "npx"
args = ["-y", "xc-mcp"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

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

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After connecting, confirm that `rtfm` and `xcodebuild-build` appear in the client’s tool list. Call `rtfm` to see the tool categories.

Troubleshooting

  1. Run idb-doctor to check the CLI, companion version, Xcode framework layout, stale registrations, and version mismatches.
  2. On Xcode 27, verify idb-companion is version 1.5.1 or newer.
  3. If idb reports Connection refused, check for a dead companion registration and follow the documented suggestion to run idb disconnect <udid>.
  4. The first idb call may take several seconds while its cache warms; run idb-doctor if UI automation misbehaves.
  5. For Duo timeouts or failures, inspect the returned success value and observed state; rapid rotation may time out.

Things to try

Once connected, you can ask your AI assistant things like:

  • Build and run my iOS app, then summarize the build result.
  • Find the “Sign In” button in the simulator and tap it.
  • Check the app’s accessibility quality and list issues to fix.

Tools 81

xcodebuild-build writes
xcodebuild-test writes
xcodebuild-clean destructive
xcodebuild-list read-only
xcodebuild-version read-only
xcodebuild-showsdks read-only
xcodebuild-get-details read-only
xcodebuild-inspect-scheme read-only
Show 73 more tools
xcodebuild-validate-capabilities read-only
simctl-list read-only
simctl-get-details read-only
simctl-suggest read-only
simctl-health-check read-only
simctl-boot writes
simctl-shutdown writes
simctl-create writes
simctl-delete destructive
simctl-erase destructive
simctl-clone writes
simctl-rename writes
simctl-duo writes
simctl-install writes
simctl-uninstall destructive
simctl-launch writes
simctl-terminate writes
simctl-openurl writes
simctl-get-app-container read-only
simctl-container writes
idb-ui-describe read-only
idb-ui-find-element read-only
idb-semantic-action writes
idb-ui-tap writes
idb-ui-input writes
idb-ui-gesture writes
idb-targets read-only
idb-list-apps read-only
idb-install writes
idb-uninstall destructive
idb-launch writes
idb-terminate writes
accessibility-quality-check read-only
accessibility-audit read-only
idb-doctor read-only
idb-crash-list read-only
idb-crash-show read-only
idb-crash-delete destructive
hang-start writes
hang-stop writes
hang-get-details read-only
hang-list read-only
simctl-privacy writes
simctl-push writes
simctl-pbcopy writes
simctl-addmedia writes
simctl-status-bar writes
simctl-stream-logs read-only
simctl-appearance writes
simctl-location writes
idb-library read-only
idb-simulate-memory-warning writes
idb-clear-keychain destructive
idb-xctest-list read-only
screenshot read-only
simctl-io writes
visual-diff read-only
localization-audit read-only
xcode-model-inspect read-only
workflow-build-and-run writes
workflow-fresh-install destructive
workflow-tap-element writes
test-record-step writes
test-record-report read-only
app-state-capture writes
cache-get-stats read-only
cache-get-config read-only
cache-set-config writes
cache-clear destructive
persistence-enable writes
persistence-disable writes
persistence-status read-only
rtfm read-only

Use cases

Build, test, and inspect Xcode projects and schemes.
Create, boot, and manage iOS simulators, and install, launch, or stop apps.
Find and operate UI elements through the accessibility tree and assess app accessibility.
Review build summaries, crash and hang diagnostics, and retrieve detailed output on demand.
Control hinge angle and orientation and capture a selected display on supported iPhone Duo simulators.

Supported clients

Claude Code
Codex
Claude Desktop

Listed from the project's documentation, not tested by this site.

Overview

XC-MCP wraps xcodebuild, simctl, and idb as MCP tools for builds and tests, simulator management, app installation and launch, UI automation, accessibility checks, diagnostics, and screenshot analysis. Large outputs start with a summary; full details are available on demand through a resource link or a details tool. UI automation favors the accessibility tree. iPhone Duo simulator controls include hinge angle, rotation, and display capture. The server communicates with MCP clients over standard input and output.

Similar servers

Source revision f8e1f5072c2e Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/xc-mcp.svg)](https://followmcp.com/en/servers/xc-mcp)