# XC-MCP

> Trim Xcode output so AI agents can build, run, and drive iOS apps.

- **URL**: https://followmcp.com/en/servers/xc-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 104
- **FMRS Score**: 58/100 (Grade C)
- **Source**: https://github.com/conorluddy/xc-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 20+
- **Auth**: No credential needed

## 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.

## 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
- 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.

## Client config (JSON)
```json
{"mcpServers":{"xc-mcp":{"command":"npx","args":["-y","xc-mcp"]}}}
```

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