xcode-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
xcode-mcp
An MCP (Model Context Protocol) server for Xcode and iOS development automation. Build projects, manage simulators, and add Swift package dependencies programmatically.
Features
Build Xcode Projects - Build
.xcodeprojor.xcworkspacewith custom schemes and configurationsManage Simulators - List available iOS simulators and run apps on them
Add Swift Packages - Programmatically add Swift Package Manager dependencies to projects
List Schemes - Discover available build schemes in a project
Related MCP server: Xcode MCP Server
Requirements
macOS with Xcode installed
Node.js 18 or later
Xcode Command Line Tools (
xcode-select --install)
Installation
git clone https://github.com/jfuginay/xcode-mcp.git
cd xcode-mcp
npm installConfiguration
Claude Desktop
Add to your claude_desktop_config.json (update the path to where you cloned the repo):
{
"mcpServers": {
"xcode": {
"command": "node",
"args": ["/path/to/xcode-mcp/index.js"]
}
}
}Config file locations
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Tools
build_project
Build an Xcode project or workspace.
Parameters:
Name | Type | Required | Description |
| string | Yes | Path to |
| string | No | Build scheme name |
| string | No | Build configuration ( |
| string | No | Build destination (defaults to first available iPhone simulator) |
Example:
{
"projectPath": "/path/to/MyApp",
"scheme": "MyApp",
"configuration": "Debug"
}list_simulators
List all available iOS simulators.
Parameters: None
Returns:
{
"devices": [
{
"name": "iPhone 15",
"udid": "...",
"state": "Shutdown",
"runtime": "iOS-17-0"
}
]
}list_schemes
List available schemes in an Xcode project.
Parameters:
Name | Type | Required | Description |
| string | Yes | Path to project or directory |
run_on_simulator
Build and run a project on an iOS simulator.
Parameters:
Name | Type | Required | Description |
| string | Yes | Path to project or directory |
| string | No | Build scheme name |
| string | No | Simulator name (defaults to first available iPhone) |
add_swift_package
Add a Swift Package Manager dependency to an Xcode project.
Parameters:
Name | Type | Required | Description |
| string | Yes | Path to |
| string | Yes | Git URL of the Swift package |
| string | Yes | Name of the package |
| string | No | Minimum version (default: |
| string[] | No | Product names to add (default: |
Example:
{
"projectPath": "/path/to/MyApp.xcodeproj",
"packageUrl": "https://github.com/Alamofire/Alamofire",
"packageName": "Alamofire",
"version": "5.0.0"
}Development
Running locally
npm startTesting with MCP Inspector
npx @modelcontextprotocol/inspector node index.jsContributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
MIT - see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build, run, and inspect iOS apps in disposable hosted Simulators from cloud coding agents.
Cloud iPhones and Macs with Xcode for AI agents: build, run and test iOS apps, use the screen.
Cloud iPhone Simulators for AI agents: build the Xcode project, read the screen, tap by label, test.
Build, test and cache insights for Xcode, Gradle and Bazel projects, for coding agents.
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that provides tools for Xcode-related operations, making it easier to work with iOS project management, building, testing, archiving, and deploying apps to both simulators and physical devices.912 npm9MIT
- AlicenseBqualityDmaintenanceProvides programmatic access to Xcode functionality, enabling AI assistants to create, build, test, and manage iOS/macOS projects directly.335MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to build, test, run, and manage Apple platform projects (iOS, macOS, tvOS, watchOS, visionOS) directly through Xcode. Provides comprehensive control over Xcode projects, Swift packages, simulators, and development workflows without leaving your editor.53MIT
- AlicenseAqualityFmaintenanceProvides structured access to Xcode development tools including xcrun, xcodebuild, and xctrace for building, testing, and analyzing projects.152MIT