Xcode MCP Server logo

Xcode MCP Server

by r-huijts

Connects AI assistants to Xcode for project, file, build, package, and simulator operations on macOS.

Install Xcode MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

r-huijts/xcode-mcp-server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Run
    chmod +x setup.sh
    
  2. 2. Install
    ./setup.sh
    
  3. 3. Install
    1. Clone the repository:
    
  4. 4. Install
    git clone https://github.com/r-huijts/xcode-mcp-server.git
    
  5. 5. Run
    cd xcode-mcp-server
    
  6. 6. Install
    3. Install dependencies:
    

Overview

The r-huijts/xcode-mcp-server MCP server connects AI assistants with Xcode projects, iOS simulators, project files, builds, tests, and package managers. It runs as a Node.js MCP service and exposes operations for project creation, file access, CocoaPods, Swift Package Manager, simulator control, and Xcode command-line utilities. Use it when an agent needs to inspect or modify Apple-platform projects and automate common development tasks from macOS. Xcode 14 or newer, Node.js 16 or newer, and a configured projects directory are required.

Use cases

  • Create an iOS project from a template
  • Build and test an Xcode workspace
  • Manage Swift Package Manager dependencies
  • Boot a simulator and launch an app
  • Read and update project files

Key features

  • Xcode project and workspace management
  • File reading, writing, and content search
  • Build, test, analyze, and archive automation
  • CocoaPods and Swift Package Manager operations
  • iOS simulator control and media capture
  • Xcode command-line utilities

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

31/32 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars385Stargazers on the source repository.
Last commit10mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Xcode MCP Server works

What r-huijts/xcode-mcp-server MCP server does

The r-huijts/xcode-mcp-server MCP server gives MCP-compatible AI assistants access to Apple development workflows on macOS. It works with Xcode projects and workspaces, project files, iOS simulators, CocoaPods, Swift Package Manager, and Xcode command-line tooling.

Agents can select an active project, inspect project details, find projects referenced by workspace documents, and list available schemes. They can also create iOS, macOS, watchOS, and tvOS projects from templates, add files to groups and targets, and manage project directories.

How it works

The server is implemented as a Node.js application. After dependencies are installed and the TypeScript project is built, it can be started with npm start; npm run dev starts a development mode with automatic restarts. An MCP-capable client connects to the running service, typically through the local server URL, or can launch the built JavaScript entry point directly as shown in the Claude Desktop configuration.

The r-huijts/xcode-mcp-server MCP server uses a configured base directory to limit normal project access. Additional permitted directories can be supplied separately. Operations include text and binary file handling, pattern or regular-expression searches, metadata checks, directory creation, builds, tests, cleaning, archiving, and code analysis.

Setup and configuration

Run the included setup script for guided prerequisite checks, dependency installation, project compilation, environment-file creation, and optional Claude Desktop configuration. Manual setup consists of cloning the repository, running npm install, running npm run build, and creating a .env file.

PROJECTS_BASE_DIR is the required project root. ALLOWED_PATHS adds comma-separated permitted directories, while PORT selects the service port and defaults to 3000. DEBUG enables debug logging, and LOG_LEVEL controls the logging level. The same project directory and port settings can be supplied as command-line arguments.

The documented prerequisites are macOS, Xcode 14 or later, Node.js 16 or later, npm or yarn, and Swift 5.5 or later for Swift Package Manager functionality. Ruby and CocoaPods are needed for CocoaPods features, but CocoaPods itself is optional.

Tools and capabilities

The r-huijts/xcode-mcp-server MCP server covers these areas:

  • Create projects from platform templates and add files to targets or groups.
  • Read and write UTF-8 or other supported encodings, and transfer binary content with base64.
  • Search file contents, check paths, inspect metadata, and create directory structures.
  • Build, test, clean, analyze, and archive Xcode projects.
  • Initialize CocoaPods projects, install or update pods, change dependencies, and run pod commands.
  • Initialize Swift packages, manage versioned dependencies, resolve or update packages, build, test, and generate DocC documentation.
  • List, boot, shut down, configure, and inspect simulators; install or launch apps; capture screenshots and videos.
  • Run xcrun commands, compile asset catalogs, generate app icon sets, trace performance, validate or export archives, and switch Xcode versions.

Limitations and notes

This tool requires macOS and locally installed Apple development software; it is not presented as a cross-platform Xcode service. The projects base directory must point to an existing location, and file access outside configured paths requires additional allowed directories. CocoaPods actions depend on Ruby and CocoaPods being available.

The provided setup instructions include Claude Desktop integration, but the server is intended for MCP-compatible assistants generally. After changing Claude Desktop configuration, the documented process requires restarting the application. The repository points to separate tool and user-guide documentation for detailed operation examples.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Xcode MCP Server

r-huijts/xcode-mcp-server is an MCP server that connects AI assistants to Xcode projects, workspaces, files, iOS simulators, CocoaPods, and Swift Package Manager. Its main tools cover project creation and inspection, file operations, builds, tests, package management, simulator control, archiving, and other Xcode command-line tasks on macOS.

Install it by cloning the repository, running `npm install`, running `npm run build`, and creating a `.env` file with `PROJECTS_BASE_DIR`. The supplied `setup.sh` script can perform prerequisite checks, dependency installation, compilation, configuration, and optional Claude Desktop setup.

`PROJECTS_BASE_DIR` is required and defines the projects base directory. `ALLOWED_PATHS`, `PORT`, `DEBUG`, and `LOG_LEVEL` are optional settings for additional access, the server port, debug logging, and log verbosity.

Yes, it includes optional Claude Desktop integration instructions. You can configure Claude Desktop to launch the built `dist/index.js` file with Node.js, then restart Claude Desktop after changing its configuration.

It requires macOS with Xcode 14.0 or newer. Node.js 16 or newer is also required, while Swift 5.5 or newer is needed for Swift Package Manager features and Ruby with CocoaPods is needed for CocoaPods operations.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewXcode MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/r-huijts-xcode-mcp-server?style=directory)](https://allmcps.com/mcp/r-huijts-xcode-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/r-huijts-xcode-mcp-server"><img src="https://allmcps.com/api/badge/r-huijts-xcode-mcp-server?style=directory" alt="Xcode MCP Server on AllMCPs" /></a>