Atlas / MCP servers / conorluddy / Xcode CLI

Xcode CLISAFE

mcp/conorluddy/xcode-cli

XCode CLI & Simulator MCP. Progressive disclosure of tool responses reduces context and token waste. Lets AI agents build, run and drive iOS apps — without drowning in Xcode's output.

Verdict
SAFE
Grade
B
Trust score
88 /100
Exposed tools
85 63r · 13w · 9d
Transport
stdio
License
—
Stars
97
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://www.npmjs.com/package/xc-mcp) [](https://www.npmjs.com/package/xc-mcp) [](https://codecov.io/gh/conorluddy/xc-mcp) [](https://opensource.org/licenses/MIT)

An MCP server that lets AI agents build, run and drive iOS apps — without drowning in Xcode's output.

XC-MCP wraps xcodebuild, simctl and idb as 77 tools. Its job is not just to expose those commands but to make their output fit in a model's context: summaries first, full detail on demand, and the accessibility tree instead of screenshots wherever the app allows it.

Why it exists

Xcode tooling produces output at a scale no context window survives. Measured against a real app (Grapla, Xcode 27, iPhone 17 Pro simulator):

A single raw build log would overflow a 200k-token context on its own. The full output is never thrown away: it is cached and returned as an MCP resource link, so an agent can drill into the exact errors it needs.

Quick start

Claude Code:

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

Codex CLI:

codex mcp add xc-mcp -- npx -y xc-mcp

or add it to ~/.codex/config.toml directly:

[mcp_servers.xc-mcp]
command = "npx"
args = ["-y", "xc-mcp"]

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
"mcpServers": {
"xc-mcp": { "command": "npx", "args": ["-y", "xc-mcp"] }
Read from source at commit 9793b152c5b0OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add xc-mcp -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "xc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (85)

63 read · 13 write · 9 destructive. Blast radius: 9 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
accessibility-auditread
accessibility-quality-checkread
cache-cleardestructive
cache-get-configread
cache-get-statsread
cache-set-configwrite
debug-workflowwriteComplete iOS debug workflow: build → install → test cycle with validation to prevent testing stale app versions
flickreadFast swipe - snappy and responsive (2775 pts/sec)
gentlereadSlow swipe - reliable but near-minimum threshold (653 pts/sec)
hang-get-detailsread
hang-listread
hang-startwrite
hang-stopwrite
idb-clear-keychaindestructive
idb-crash-deletedestructive
idb-crash-listread
idb-crash-showread
idb-doctorread
idb-installwrite
idb-launchread
idb-list-appsread
idb-simulate-memory-warningread
idb-targetsread
idb-terminatedestructive
idb-ui-describeread
idb-ui-find-elementread
idb-ui-gestureread
idb-ui-inputread
idb-ui-tapread
idb-uninstalldestructive
idb-xctest-listread
localization-auditread
persistence-disablewrite
persistence-enablewrite
persistence-statusread
projectPathreadPath to .xcodeproj or .xcworkspace file
rtfmread
schemereadBuild scheme name
screenshotread
simctl-addmediaread
simctl-appearanceread
simctl-bootread
simctl-cloneread
simctl-containerread
simctl-container-outputreadcached content
simctl-createwrite
simctl-deletedestructive
simctl-erasedestructive
simctl-get-app-containerread
simctl-get-detailsread
simctl-health-checkread
simctl-installwrite
simctl-ioread
simctl-launchread
simctl-listread
simctl-locationread
simctl-openurlread
simctl-pbcopyread
simctl-privacyread
simctl-pushwrite
simctl-renamewrite
simctl-shutdownread
simctl-status-barread
simctl-stream-logsread
simctl-suggestread
simctl-terminatedestructive
simctl-uninstalldestructive
simulatorreadTarget simulator (optional - will use smart defaults if not provided)
standardreadDefault swipe - best for general navigation (1475 pts/sec)
test-record-reportread
test-record-stepread
visual-diffread
workflow-build-and-runwrite
workflow-fresh-installwrite
workflow-tap-elementread
xcode-model-inspectread
xcodebuild-buildread
xcodebuild-cleanread
xcodebuild-get-detailsread
xcodebuild-inspect-schemeread
xcodebuild-listread
xcodebuild-showsdksread
xcodebuild-testread
xcodebuild-validate-capabilitiesread
xcodebuild-versionread
04

Trust audit

SAFEgrade B · trust 88/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (8 observation(s))
Network
none-observed
Shell
declared (2 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (13)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
cache-clear, idb-clear-keychain, idb-crash-delete, idb-terminate, idb-uninstall, simctl-delete, simctl-erase, simctl-terminate, simctl-uninstall
Why it matters. 9 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.prettierignore
.prettierignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
tests/fixtures/coredata/MyModel.xcdatamodeld/.xccurrentversion
.xccurrentversion
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.no_license · CWE-1104
Why it matters. no LICENSE file and no repo licence
Fix. add a licence
LOWFilesystem / path · fs.system_paths · CWE-22, CWE-59
tests/__tests__/tools/diagnostics/idb-doctor.test.ts:30
if (command === 'command -v idb') return idbCli ? ok('/usr/local/bin/idb') : fail();
LOWFilesystem / path · fs.system_paths · CWE-22, CWE-59
tests/__tests__/utils/idb-environment.test.ts:42
if (command === 'command -v idb') return idbCli ? ok('/usr/local/bin/idb') : fail();
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/analysis/localization-audit.ts:2
import { executeCommand } from '../../utils/command.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/cache/clear.ts:1
import { simulatorCache } from '../../state/simulator-cache.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/cache/clear.ts:2
import { projectCache } from '../../state/project-cache.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/cache/clear.ts:3
import { responseCache } from '../../utils/response-cache.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/cache/clear.ts:4
import type { ToolResult } from '../../types/xcode.js';
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
tests/__tests__/tools/simctl-openurl.test.ts:470
url: 'http://192.168.1.1:3000',
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, pixelmatch, pngjs, zod, @eslint/js, @types/jest, @types/node, @types/pngjs
Why it matters. 19 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass, no_license.

Audited 2026-10-07 · audit v0.4.1 · source sha 9793b152c5b0full audit observations/trust-audit/mcp-server/conorluddy__xcode-cli.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-079793b152c5b0SAFEB88first audit
06

Questions

What is the Xcode CLI MCP server?

XCode CLI & Simulator MCP. Progressive disclosure of tool responses reduces context and token waste. Lets AI agents build, run and drive iOS apps — without drowning in Xcode's output.

What tools does Xcode CLI expose?

85 in total: 63 read-only, 13 that write, and 9 that can delete or overwrite (cache-clear, idb-clear-keychain, idb-crash-delete, idb-terminate, idb-uninstall). Every one is listed on this page with its risk.

Is Xcode CLI safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (88/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 9 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Xcode CLI need?

No credential environment variables were found in its source, so it appears to need none.

How does Xcode CLI run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as xc-mcp at 4.2.0.

How current is this page?

The grade is for one exact copy of the source (9793b152c5b0), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement