Provides tools to manage Xcode projects via MCP, including listing projects, reading configurations, targeting builds, and triggering xcodebuild actions.
Configuration
View docs{
"mcpServers": {
"airdrop-alpha-xcode-mcp": {
"command": "node",
"args": [
"/absolute/path/to/xcode-mcp/dist/index.js"
]
}
}
}You can use the Xcode MCP Server to give AI assistants access to your Xcode projects. It lists projects, reads project configurations, inspects targets, and triggers builds through natural conversation, enabling seamless AI-assisted development workflows for iOS apps.
You interact with the MCP server through an MCP client. Start by running the MCP server locally, then configure your client to connect either via a local stdio interface or through a configured MCP endpoint. Use natural language prompts to list projects, inspect targets, list schemes, and initiate builds. Example actions you can perform include listing all Xcode projects in a directory tree, reading the structure of a specific project, retrieving available build targets and schemes, and triggering a build for a chosen scheme on a specified destination.
Follow these concrete steps to install and run the MCP server locally.
# Clone the repository
git clone https://github.com/airdrop-alpha/xcode-mcp.git
cd xcode-mcp
# Install dependencies
npm install
# Build TypeScript
npm run buildConfigure your MCP client to connect to the Xcode MCP Server. Two examples show how to connect via different clients.
// Claude Desktop configuration
{
"mcpServers": {
"xcode": {
"command": "node",
"args": ["/absolute/path/to/xcode-mcp/dist/index.js"]
}
}
}// OpenClaw configuration
{
"mcpServers": {
"xcode": {
"command": "node",
"args": ["/absolute/path/to/xcode-mcp/dist/index.js"]
}
}
}You: List Xcode projects in my Developer folder Claude: Found 3 Xcode projects: • MyApp.xcodeproj • TestFramework.xcodeproj • SampleProject.xcodeproj You: What targets does MyApp have? Claude: MyApp has 3 targets: • MyApp (application) • MyAppTests (unit-test) • MyAppUITests (ui-test) You: Build it for iPhone 15 simulator Claude: ✅ Build succeeded!
The server exposes a set of tools you can call to interact with Xcode projects.
The MCP server is organized to parse Xcode project files, expose build-related actions, and execute builds through standard Xcode tooling.
- Parses .xcodeproj files with a simplified parser - .xcworkspace support coming soon - Build output is truncated to the last 5KB for large projects - Code signing is disabled by default to speed up builds
Planned improvements include workspace support, simulator management, test execution with result parsing, Swift Package dependencies, provisioning profile management, and App Store Connect integration.
Contributions are welcome. Start by exploring the project locally and running development commands.
# Development mode (hot reload)
npm run dev
# Test with MCP Inspector
npm run inspectMIT © 2026
Find Xcode projects in a directory recursively up to five levels deep.
Parse an Xcode project file to reveal its structure, including targets, configurations, and files.
List build targets with their product types for a given project.
List available build schemes for a project.
Trigger a build using xcodebuild with configurable options such as scheme, configuration, and destination.
Provide Xcode version and available SDKs information.