xcode-mcp-server

MCP.Pizza Chef: r-huijts

Apple developers get the rest of the toolbox too: start a project from a template, add files to the right target, build, clean, and archive, boot a simulator and take screenshots of it, and manage CocoaPods or Swift package dependencies. It is macOS only and expects Xcode 14 or later. Installing it means cloning the repository and building it yourself rather than pasting a snippet, and the code has been quiet since February 2026.

Coding

Use This MCP server To

Build my iOS app and read back any errors Run the test suite and explain which tests failed Boot a simulator and take a screenshot of my app Add a Swift package dependency without hunting the syntax Create a new project from a template Archive my app ready for the App Store

README

MseeP.ai Security Assessment Badge

Xcode MCP Server

An MCP (Model Context Protocol) server providing comprehensive Xcode integration for AI assistants. This server enables AI agents to interact with Xcode projects, manage iOS simulators, and perform various Xcode-related tasks with enhanced error handling and support for multiple project types.

Features

Project Management

  • Set active projects and get detailed project information
  • Create new Xcode projects from templates (iOS, macOS, watchOS, tvOS)
  • Add files to Xcode projects with target and group specification
  • Parse workspace documents to find associated projects
  • List available schemes in projects and workspaces

File Operations

  • Read/write files with support for different encodings
  • Handle binary files with base64 encoding/decoding
  • Search for text content within files using patterns and regex
  • Check file existence and get file metadata
  • Create directory structures automatically

Build & Testing

  • Build projects with customizable options
  • Run tests with detailed failure reporting
  • Analyze code for potential issues
  • Clean build directories
  • Archive projects for distribution

CocoaPods Integration

  • Initialize CocoaPods in projects
  • Install and update pods
  • Add and remove pod dependencies
  • Execute arbitrary pod commands

xcode-mcp-server FAQ

Is this project still being updated?
Not lately. The last code change was February 2026, roughly six months before this listing, and the author names no replacement.
What do I need installed?
A Mac with Xcode 14 or later and Node.js 16 or later, plus CocoaPods if your projects happen to use it.
Do I need a key or an account?
No. Everything runs locally against the copy of Xcode already on your machine.
How hard is the setup?
Developer level. You clone the repository, build it, and fill in a settings file, though an included script walks you through it.
Which apps does it work in?
Claude Desktop is documented, and the setup script can wire that connection up for you automatically.
Can I use this to work out why my build broke?
Yes. It builds the project and reports errors and test failures in enough detail for your assistant to explain them.
Is this useful if I do not write code?
No. It is squarely for people building iPhone, iPad, Mac, watch, or TV apps in Xcode.