xcode-pilot-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@xcode-pilot-mcp Build and run my app in the iPhone 16 simulator"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
xcode-pilot-mcp
A comprehensive Model Context Protocol (MCP) server for iOS and macOS development. Provides 65 tools across 11 categories that give AI assistants full control over the Xcode development lifecycle — from building and testing to simulator management, app deployment, code signing, and more.
The iOS equivalent of android-pilot-mcp.
Table of Contents
Related MCP server: iOS Development MCP Server
Features
Category | Tools | Description |
Build & Compile | 8 | Build, clean, archive, export IPA, run tests with |
Simulator Management | 10 | Create, boot, shutdown, delete, clone simulators with |
App Lifecycle | 8 | Install, launch, terminate apps, manage permissions |
Debugging & Logging | 6 | Stream logs, capture screenshots, record screen |
Simulator Environment | 5 | Set GPS location, send push notifications, override status bar |
Code Signing | 5 | List identities, inspect provisioning profiles, check entitlements |
Package Management | 6 | SPM resolve/update, CocoaPods install/update/outdated |
Project Scaffolding | 5 | Create projects, generate SwiftUI views, ViewModels, widgets |
IPA Analysis | 4 | Inspect IPA contents, permissions, binary size, dSYM verification |
Code Quality | 4 | SwiftLint, swift-format, build warnings extraction |
Physical Devices | 4 | List, install, launch apps on connected iOS devices via |
Requirements
macOS (required — Xcode tools are macOS-only)
Node.js >= 20
Xcode installed from the App Store
Xcode Command Line Tools — install with:
xcode-select --install
Optional tools (for specific features)
Tool | Install | Used by |
SwiftLint |
|
|
swift-format |
|
|
CocoaPods |
|
|
XcodeGen |
|
|
Quick Start
Install globally
npm install -g xcode-pilot-mcpOr run directly with npx
npx xcode-pilot-mcpVerify installation
# The server starts on stdio — it will listen for MCP messages
xcode-pilot-mcpEditor Setup
Claude Code
claude mcp add xcode-pilot -- npx xcode-pilot-mcpCursor
Add to your MCP settings (~/.cursor/mcp.json):
{
"mcpServers": {
"xcode-pilot": {
"command": "npx",
"args": ["-y", "xcode-pilot-mcp"]
}
}
}Windsurf
Add to ~/.windsurf/mcp.json:
{
"mcpServers": {
"xcode-pilot": {
"command": "npx",
"args": ["-y", "xcode-pilot-mcp"]
}
}
}VS Code (Copilot)
Add to your VS Code settings.json:
{
"mcp.servers": {
"xcode-pilot": {
"command": "npx",
"args": ["-y", "xcode-pilot-mcp"]
}
}
}Local development
Use the .mcp.json at the project root:
{
"mcpServers": {
"xcode-pilot": {
"command": "node",
"args": ["build/index.js"],
"transportType": "stdio"
}
}
}Usage Examples
Build and test a project
"Build my iOS app with the Debug configuration for the iPhone 16 simulator"
→ Uses xcode_build with scheme, configuration, and destination
"Run all unit tests for the MyApp scheme"
→ Uses xcode_test with the appropriate destination
"Run only the LoginTests test class, skip SlowTests"
→ Uses xcode_test with onlyTesting and skipTesting filtersManage simulators
"List all available simulators"
→ Uses simulator_list to show all devices with their state
"Create a new iPhone 16 Pro simulator with iOS 18"
→ Uses simulator_list_device_types + simulator_list_runtimes to find IDs,
then simulator_create
"Boot the simulator and install my app"
→ Uses simulator_boot, then app_install with the .app pathDebug and capture
"Take a screenshot of the simulator"
→ Uses screenshot, returns the file path
"Record the simulator screen for 15 seconds"
→ Uses screen_record with duration=15
"Show me the last 5 minutes of logs for my app"
→ Uses log_collect with last="5m" and predicate filter
"Stream live logs from the simulator for 10 seconds"
→ Uses log_stream with timeout=10App lifecycle
"Launch com.example.myapp on the booted simulator"
→ Uses app_launch with the bundle ID
"Grant camera permission to my app"
→ Uses app_privacy with action="grant", service="camera"
"Open a deep link: myapp://settings/profile"
→ Uses app_open_url with the custom URL scheme
"Where is my app's data stored?"
→ Uses app_get_container with container="data"Environment simulation
"Set the simulator location to San Francisco"
→ Uses location_set with latitude=37.7749, longitude=-122.4194
"Send a test push notification with title 'Hello'"
→ Uses push_notification with APNs JSON payload
"Set the status bar to 9:41, full battery, full wifi"
→ Uses status_bar_override with time, batteryLevel, wifiBars
"Switch the simulator to dark mode"
→ Uses device_appearance with appearance="dark"Code signing
"List all my code signing identities"
→ Uses signing_identities
"Show me all installed provisioning profiles"
→ Uses provisioning_profiles with summary for each
"Inspect the entitlements of my built app"
→ Uses entitlements_check on the .app bundlePackage management
"Resolve all SPM dependencies"
→ Uses spm_resolve
"Update my CocoaPods and check for outdated pods"
→ Uses pod_update then pod_outdated
"Show me the dependency tree for my Swift package"
→ Uses spm_show_dependencies with JSON formatScaffolding
"Create a new SwiftUI iOS project called WeatherApp"
→ Uses project_create with template="swiftui", platform="ios"
"Generate a SwiftUI view called SettingsView with a preview"
→ Uses scaffold_view with includePreview=true
"Create a Core Data model called Task with title, isDone, and dueDate"
→ Uses scaffold_coredata_model with custom attributesAnalysis
"Analyze this IPA file — what's the bundle ID, size, and architectures?"
→ Uses ipa_analyze to unzip and inspect
"Check what privacy permissions this IPA requires"
→ Uses ipa_permissions to list NS*UsageDescription keys
"Verify that my dSYM file matches the release binary"
→ Uses dsym_verify to compare UUIDsPrompt Cookbook
Ready-to-use prompts for common iOS development workflows:
Full build-test-deploy cycle
Build my project with the Release configuration, run all tests on an iPhone 16 Pro
simulator, and if tests pass, create an archive. Show me the test results.Simulator setup from scratch
List available iOS runtimes, create a new iPhone 16 simulator with the latest iOS,
boot it, and open the Simulator app so I can see it.Debug a crash
Stream the simulator logs for 30 seconds while I reproduce the crash.
Filter for error-level messages from my app's bundle ID com.myteam.myapp.App Store screenshot preparation
Boot the simulator, set the status bar to 9:41 with full battery and full wifi
signal, set carrier name to an empty string, then take a screenshot.CI/CD validation
Clean the project, build with Release configuration, run all tests,
check SwiftLint violations, and verify the binary size of the built product.Dependency audit
Show me the full SPM dependency tree, then check if any CocoaPods are outdated.
Also run SwiftLint to check code quality.New feature scaffolding
Create a SwiftUI view called ProfileView, a corresponding ProfileViewModel,
and a Core Data model called UserProfile with fields: id (UUID), name (String),
email (String), avatarURL (String), and lastLogin (Date).Physical device deployment
List connected physical devices, install my built app on the first device,
launch it, and stream the device console logs for 20 seconds.Tool Reference
Build & Compile (8 tools)
Tool | Description | Key Parameters |
| Build project/workspace |
|
| Clean build artifacts |
|
| Create archive for distribution |
|
| Export IPA from archive |
|
| Run unit and UI tests |
|
| Run tests without rebuilding |
|
| List schemes, targets, configurations |
|
| Show resolved build settings |
|
Simulator Management (10 tools)
Tool | Description | Key Parameters |
| List all simulators with state |
|
| Create new simulator |
|
| Boot a simulator |
|
| Shutdown simulator(s) |
|
| Delete a simulator |
|
| Erase all content and settings |
|
| Open Simulator.app for a device |
|
| List iOS/watchOS/tvOS/visionOS runtimes | — |
| List device types (iPhone, iPad, etc.) | — |
| Clone an existing simulator |
|
App Lifecycle (8 tools)
Tool | Description | Key Parameters |
| Install .app on simulator |
|
| Uninstall by bundle ID |
|
| Launch app by bundle ID |
|
| Terminate running app |
|
| Get app container path |
|
| List installed apps |
|
| Open URL for deep link testing |
|
| Grant/revoke/reset permissions |
|
all, calendar, contacts-limited, contacts, location, location-always, photos-add, photos, media-library, microphone, motion, reminders, siri, speech-recognition, camera, faceid, health, homekit, usertracking
Debugging & Logging (6 tools)
Tool | Description | Key Parameters |
| Stream live logs for N seconds |
|
| Collect recent logs |
|
| Capture screenshot as PNG |
|
| Record screen as MP4 |
|
| Collect diagnostic report |
|
| Set light/dark mode |
|
subsystem == "com.example.app"
eventMessage contains "error"
subsystem == "com.example.app" AND messageType == error
process == "MyApp"Simulator Environment (5 tools)
Tool | Description | Key Parameters |
| Set GPS coordinates |
|
| Clear simulated location |
|
| Send push via APNs JSON payload |
|
| Override status bar |
|
| Reset status bar to defaults |
|
{
"aps": {
"alert": {
"title": "New Message",
"body": "You have a new message from John"
},
"badge": 1,
"sound": "default"
},
"customKey": "customValue"
}Code Signing & Provisioning (5 tools)
Tool | Description | Key Parameters |
| List code signing identities | — |
| List installed profiles with details | — |
| Decode and inspect a profile |
|
| List keychains | — |
| Show entitlements of built app |
|
Package Management (6 tools)
Tool | Description | Key Parameters |
| Resolve SPM dependencies |
|
| Update SPM packages |
|
| Show dependency tree as JSON |
|
| Run CocoaPods install |
|
| Update pods (all or specific) |
|
| Check outdated pods |
|
Project Scaffolding (5 tools)
Tool | Description | Key Parameters |
| Create new project + XcodeGen |
|
| Generate SwiftUI View |
|
| Generate @Observable ViewModel |
|
| Generate Core Data model |
|
| Generate WidgetKit extension |
|
String, Integer16, Integer32, Integer64, Double, Float, Boolean, Date, Binary, UUID, URI
IPA & App Analysis (4 tools)
Tool | Description | Key Parameters |
| Inspect IPA: size, Info.plist, architectures, frameworks |
|
| List privacy usage descriptions |
|
| Analyze Mach-O binary size by segment |
|
| Verify dSYM matches binary UUID |
|
Code Quality (4 tools)
Tool | Description | Key Parameters |
| Run SwiftLint analysis (JSON output) |
|
| Auto-fix SwiftLint violations |
|
| Run swift-format lint |
|
| Extract warnings from build log |
|
Physical Devices (4 tools)
Tool | Description | Key Parameters |
| List connected iOS devices (Xcode 15+) | — |
| Install app on device |
|
| Launch app on device |
|
| Launch app and stream console output |
|
Architecture
src/
├── index.ts # MCP server entry point, registers all 11 tool categories
├── types.ts # Environment, ExecResult, ExecOptions interfaces
├── executor.ts # Shell command execution (execFile, spawn, stdin piping)
├── environment.ts # Xcode environment detection (xcode-select, xcrun, simctl, devicectl)
├── utils/
│ ├── response.ts # textResponse, errorResponse, execResultResponse, withErrorHandling
│ ├── validation.ts # Path, bundle ID, and name validation
│ └── logger.ts # Structured stderr logging (stdout reserved for MCP protocol)
├── tools/
│ ├── xcodebuild/ # 8 tools — xcodebuild build, clean, archive, export, test
│ ├── simulator/ # 10 tools — xcrun simctl create, boot, shutdown, list, clone
│ ├── app/ # 8 tools — install, launch, terminate, privacy, openurl
│ ├── debug/ # 6 tools — log stream/collect, screenshot, screen record
│ ├── environment/ # 5 tools — location, push notifications, status bar
│ ├── signing/ # 5 tools — identities, profiles, entitlements
│ ├── packages/ # 6 tools — SPM resolve/update, pod install/update
│ ├── scaffold/ # 5 tools — project creation, view/viewmodel/widget generation
│ ├── analyze/ # 4 tools — IPA analysis, binary size, dSYM verification
│ ├── quality/ # 4 tools — SwiftLint, swift-format, build warnings
│ └── device/ # 4 tools — physical device list, install, launch, console
└── templates/ # Swift project and component templates (source of truth for scaffold tools)
├── SwiftUIView.swift.template
├── ViewModel.swift.template
├── CoreDataModel.swift.template
├── Widget.swift.template
└── WidgetConfigurable.swift.template
tests/ # 195 tests across 15 test files
├── executor.test.ts
├── environment.test.ts
├── utils/
│ ├── response.test.ts
│ └── validation.test.ts
└── tools/ # One test file per tool categoryDesign Principles
One handler per tool — each tool is a single async function in its own file
Zod validation — all input parameters validated at the MCP registration layer
JSON-first — prefers
-jflag for JSON output from simctl commandsGraceful errors — actionable error messages (e.g., "Is the simulator booted?")
Response truncation — long outputs are truncated using head+tail (start and end) to preserve both log boundaries; 100KB cap on success and error output
Timeout management — configurable per-tool with optional
timeoutSecondsparam; defaults vary by operationNo Xcode required at install — environment detection happens at runtime; graceful guidance when tools unavailable
Development
Setup
git clone https://github.com/sitharaj88/xcode-pilot-mcp.git
cd xcode-pilot-mcp
npm installBuild
npm run build # Compile TypeScript + copy templates + chmod +x
npm run dev # Watch mode (tsc --watch)Test
npm test # Run all tests
npm run test:coverage # Run with coverage reportCode Quality
npm run lint # ESLint
npm run lint:fix # ESLint with auto-fix
npm run format # Prettier write
npm run format:check # Prettier check only
npm run typecheck # TypeScript --noEmit
npm run check # All of the aboveScripts Reference
Script | Description |
| Compile TS, copy templates, make executable |
| TypeScript watch mode |
| Run vitest |
| Run vitest with V8 coverage |
| ESLint check |
| ESLint auto-fix |
| Prettier write |
| Prettier check |
| TypeScript type check |
| typecheck + lint + format:check |
| Husky git hooks setup |
| Full quality gate before npm publish |
Contributing
See CONTRIBUTING.md for development setup, coding standards, and PR guidelines.
License
MIT — Sitharaj Seenivasan
Available Tools
65 toolsapp_get_containerB
Get the file system path to an app's container (app bundle, data, or app group)
Inputs: bundleId (required), deviceId (required), container.
app_installC
Install a .app bundle on a simulator
Inputs: appPath (required), deviceId (required).
app_launchB
Launch an installed app on a simulator
Inputs: bundleId (required), deviceId (required), args, timeout, +1 more.
app_listA
List all installed apps on a simulator
Inputs: deviceId (required).
app_open_urlA
Open a URL on a simulator for deep link and universal link testing
Inputs: url (required), deviceId (required).
app_privacyB
Grant, revoke, or reset privacy permissions for an app on a simulator
Inputs: action (required), service (required), deviceId (required), bundleId.
app_terminateB
Terminate a running app on a simulator
Inputs: bundleId (required), deviceId (required).
app_uninstallC
Uninstall an app from a simulator by bundle ID
Inputs: bundleId (required), deviceId (required).
binary_sizeA
Analyze Mach-O binary size breakdown by segment
Inputs: binaryPath (required).
build_warningsB
Extract and summarize warnings from the most recent Xcode build log
Inputs: projectPath, derivedDataPath.
device_appearanceC
Set the simulator to light or dark mode
Inputs: deviceId (required), appearance (required).
diagnosticsB
Collect a diagnostic report from the simulator subsystem
Inputs: outputPath.
dsym_verifyB
Verify that a dSYM file matches a binary by comparing UUIDs
Inputs: dsymPath (required), binaryPath (required).
entitlements_checkB
Show the entitlements embedded in a built app bundle
Inputs: appPath (required).
ipa_analyzeA
Analyze an IPA file: size, bundle ID, version, architectures, embedded frameworks
Inputs: ipaPath (required).
ipa_permissionsA
List privacy usage descriptions (NSCameraUsageDescription, etc.) from an IPA's Info.plist
Inputs: ipaPath (required).
keychain_listB
List all keychains on this machine
Inputs: no named parameters.
location_clearB
Clear the simulated GPS location on a simulator
Inputs: deviceId (required).
location_setB
Set a simulated GPS location on a simulator
Inputs: deviceId (required), latitude (required), longitude (required).
log_collectA
Collect recent logs from a simulator with time range and predicate filtering
Inputs: deviceId (required), last, style, predicate.
log_streamC
Stream live logs from a simulator for a specified duration
Inputs: deviceId (required), level, timeout, predicate.
physical_device_consoleA
Launch an app on a physical device and stream its console output for N seconds
Inputs: bundleId (required), deviceId (required), timeout.
physical_device_installC
Install an app on a connected physical device
Inputs: appPath (required), deviceId (required).
physical_device_launchC
Launch an installed app on a connected physical device
Inputs: bundleId (required), deviceId (required).
physical_device_listB
List connected physical iOS devices (requires Xcode 15+ with devicectl)
Inputs: no named parameters.
pod_installB
Run CocoaPods install to set up pod dependencies
Inputs: repoUpdate, projectPath.
pod_outdatedC
Check for outdated CocoaPods dependencies
Inputs: projectPath.
pod_updateC
Update CocoaPods dependencies (all or a specific pod)
Inputs: podName, projectPath.
profile_inspectB
Decode and inspect a provisioning profile to see its full contents
Inputs: profilePath (required).
project_createA
Create a new Xcode app project (source tree + XcodeGen project.yml). If xcodegen is installed on PATH, runs xcodegen generate and returns the resulting .xcodeproj path; otherwise creates the source tree and project.yml and reports how to generate the .xcodeproj manually
Inputs: name (required), platform (required), template (required), outputPath (required), +3 more.
provisioning_profilesA
List all installed provisioning profiles with name, UUID, team, and expiration
Inputs: no named parameters.
push_notificationA
Send a push notification to an app on a simulator via APNs payload JSON
Inputs: payload (required), bundleId (required), deviceId (required).
scaffold_coredata_modelB
Generate a Core Data NSManagedObject subclass with attributes
Inputs: name (required), outputPath (required), attributes.
scaffold_viewB
Generate a SwiftUI View file with optional preview provider
Inputs: name (required), outputPath (required), includePreview.
scaffold_viewmodelB
Generate an @Observable ViewModel class
Inputs: name (required), outputPath (required).
scaffold_widgetA
Generate a WidgetKit extension: 'static' uses TimelineProvider/StaticConfiguration, 'configurable' uses the AppIntents-based WidgetConfigurationIntent/AppIntentConfiguration API (iOS 17+)
Inputs: name (required), outputPath (required), kind.
screen_recordA
Record the simulator screen as MP4 for a specified duration
Inputs: deviceId (required), duration, outputPath.
screenshotB
Capture a screenshot from a simulator as PNG
Inputs: deviceId (required), outputPath.
signing_identitiesA
List all code signing identities available on this machine
Inputs: no named parameters.
simulator_bootC
Boot a simulator device so it can be used
Inputs: deviceId (required).
simulator_cloneA
Clone an existing simulator to create an identical copy
Inputs: newName (required), deviceId (required).
simulator_createB
Create a new iOS simulator with specified device type and runtime
Inputs: name (required), runtimeId (required), deviceTypeId (required).
simulator_deleteA
Delete a simulator device. Use "unavailable" to remove all unavailable devices
Inputs: deviceId (required).
simulator_eraseB
Erase all content and settings from a simulator
Inputs: deviceId (required).
simulator_listA
List all iOS simulators with their state (Booted, Shutdown, etc.)
Inputs: state.
simulator_list_device_typesA
List available simulator device types (iPhone, iPad, Apple Watch, etc.)
Inputs: no named parameters.
simulator_list_runtimesA
List available simulator runtimes (iOS, watchOS, tvOS, visionOS)
Inputs: no named parameters.
simulator_openC
Open Simulator.app and display the specified device
Inputs: deviceId (required).
simulator_shutdownB
Shutdown a simulator or all simulators
Inputs: deviceId.
spm_resolveC
Resolve Swift Package Manager dependencies for a project
Inputs: scheme, projectPath, clonedSourcePackagesDir.
spm_show_dependenciesB
Show the Swift Package Manager dependency tree as JSON
Inputs: projectPath.
spm_updateB
Update Swift Package Manager dependencies to their latest allowed versions
Inputs: projectPath.
status_bar_clearB
Reset the simulator status bar to default values
Inputs: deviceId (required).
status_bar_overrideB
Override the simulator status bar display (time, battery, wifi, cellular, etc.)
Inputs: deviceId (required), time, wifiBars, dataNetwork, +4 more.
swift_format_runA
Run swift-format lint to check formatting
Inputs: path (required), recursive.
swiftlint_fixB
Auto-fix SwiftLint violations in the specified path
Inputs: path, config.
swiftlint_runA
Run SwiftLint analysis and report violations as JSON
Inputs: path, config.
xcode_archiveC
Create an Xcode archive for distribution
Inputs: scheme (required), archivePath (required), projectPath, configuration, +1 more.
xcode_buildC
Build an Xcode project or workspace with the specified scheme and configuration
Inputs: scheme (required), sdk, extraArgs, destination, +4 more.
xcode_build_settingsA
Show resolved build settings for a scheme and configuration
Inputs: scheme, projectPath, configuration, timeoutSeconds.
xcode_cleanB
Clean build artifacts for the specified scheme
Inputs: scheme (required), projectPath, timeoutSeconds.
xcode_exportB
Export an IPA from an Xcode archive using an export options plist
Inputs: exportPath (required), archivePath (required), exportOptionsPlist (required), timeoutSeconds.
xcode_listB
List available schemes, targets, and configurations in the project
Inputs: projectPath, timeoutSeconds.
xcode_testA
Run unit and UI tests for the specified scheme and destination
Inputs: scheme (required), destination (required), testPlan, onlyTesting, +3 more.
xcode_test_without_buildingB
Run tests on previously built code without rebuilding
Inputs: scheme (required), destination (required), testPlan, onlyTesting, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 65 tools
Most tools are clearly separated by domain prefixes (xcode_, simulator_, app_, physical_device_) and have distinct descriptions. A few related pairs like ipa_analyze vs binary_size or log_stream vs log_collect overlap enough that an agent may need to read carefully.
The majority of tools follow a predictable resource_action snake_case pattern such as simulator_boot, app_launch, and xcode_build. However, noun-only names like signing_identities and diagnostics, plus verb-first scaffold_* tools, break the pattern slightly.
With 65 tools, this is far beyond the well-scoped range and presents an extreme selection burden for agents. Even with a broad Xcode/iOS domain, many tools could be consolidated, such as the simulator list variants, scaffold_* generators, and IPA/binary analysis tools.
The tool set covers the major iOS development workflow: build, test, archive, export, simulator/app lifecycle, dependency management, signing, and static analysis. Minor gaps exist around physical-device management, such as no uninstall or app listing, but most workflows do not hit dead ends.
Maintenance
Related MCP Connectors
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server for building and testing AI agents with multi-model experimentation and insights.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for Appcircle mobile CI/CD platform.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to build and test Xcode projects directly through a standardized interface, with capabilities for running tests, monitoring progress, and accessing logs in real-time.18129 npm53MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides comprehensive tools for managing iOS simulators, including device control, app lifecycle management, and UI automation. It enables developers to boot devices, install apps, capture screenshots, and simulate user interactions through natural language commands.4MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to parse Xcode and Swift build outputs into structured, token-efficient formats like JSON or TOON. It provides tools for executing build commands and extracting detailed diagnostic information such as errors, warnings, and test failures.8MIT

SilbercueSwiftofficial
AlicenseNot gradedqualityBmaintenanceHigh-performance MCP server for iOS development and test automation. Gives AI coding assistants direct access to iOS simulators with sub-20ms screenshots, UI interaction, building, testing, and an intelligent operator mode.9MIT