Xcode MCP Server
Enables AI assistants to manage Xcode projects by listing targets, reading configurations, and triggering builds via the Model Context Protocol. It facilitates natural language interaction with macOS developer tools to streamline iOS app development processes.
README
π¨ Xcode MCP Server
The first MCP server for Xcode β Let AI agents like Claude build your iOS apps!
An MCP (Model Context Protocol) server that gives AI assistants the power to work with Xcode projects. List projects, read configurations, inspect targets, and trigger builds β all through natural conversation.
β¨ Features
| Tool | Description |
|---|---|
list-projects |
Find all Xcode projects in a directory tree |
read-project |
Parse .xcodeproj structure (targets, configs, files) |
list-targets |
Get build targets with product types |
list-schemes |
List available build schemes |
build |
Trigger xcodebuild with configurable options |
xcodebuild-info |
Get Xcode version and available SDKs |
π Quick Start
Prerequisites
- macOS with Xcode Command Line Tools (
xcode-select --install) - Node.js 18+
- npm or yarn
Installation
# Clone the repo
git clone https://github.com/airdrop-alpha/xcode-mcp.git
cd xcode-mcp
# Install dependencies
npm install
# Build TypeScript
npm run build
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"xcode": {
"command": "node",
"args": ["/absolute/path/to/xcode-mcp/dist/index.js"]
}
}
}
OpenClaw
Add to your OpenClaw MCP config:
{
"mcpServers": {
"xcode": {
"command": "node",
"args": ["/absolute/path/to/xcode-mcp/dist/index.js"]
}
}
}
π¬ Example Conversation
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!
π οΈ Tool Reference
list-projects
Find Xcode projects in a directory (recursive, 5 levels deep).
{ "directory": "/path/to/search" }
read-project
Parse an Xcode project file and return its structure.
{ "projectPath": "/path/to/MyApp.xcodeproj" }
Returns: Project name, targets, build configurations, source files.
list-targets
List build targets with their product types.
{ "projectPath": "/path/to/MyApp.xcodeproj" }
Returns: Target names and types (app, framework, test, etc.)
list-schemes
List available schemes (shared and user).
{ "projectPath": "/path/to/MyApp.xcodeproj" }
build
Build a project using xcodebuild.
{
"projectPath": "/path/to/MyApp.xcodeproj",
"scheme": "MyApp",
"configuration": "Debug",
"destination": "platform=iOS Simulator,name=iPhone 15",
"clean": false
}
xcodebuild-info
Get Xcode version and SDK information. No parameters required.
ποΈ Architecture
xcode-mcp/
βββ src/
β βββ index.ts # MCP server entry point
β βββ xcode-parser.ts # Xcode project file parser
βββ dist/ # Compiled JavaScript
βββ package.json
βββ tsconfig.json
βββ README.md
β οΈ Current Limitations
- Parses
.xcodeprojfiles directly (simplified parser) .xcworkspacesupport coming soon- Build output truncated to last 5KB for large projects
- Code signing disabled by default for faster builds
πΊοΈ Roadmap
- [ ] Workspace (
.xcworkspace) support - [ ] Simulator management (list, boot, install)
- [ ] Test execution with result parsing
- [ ] Swift Package dependencies
- [ ] Provisioning profile management
- [ ] App Store Connect integration
π€ Contributing
Contributions are welcome! Please read CONTRIBUTING.md first.
# Development mode (hot reload)
npm run dev
# Test with MCP Inspector
npm run inspect
π License
MIT Β© 2026
Built for the AI-assisted development era. π€
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.