# r-huijts/xcode-mcp-server [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/r-huijts/xcode-mcp-server  
**GitHub Stars:** 385  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/r-huijts-xcode-mcp-server

## Description
Xcode integration for project management, file operations, and build automation

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/r-huijts/xcode-mcp-server), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Run:

```sh
chmod +x setup.sh
```

2. Install:

```sh
./setup.sh
```

3. Install:

```sh
1. Clone the repository:
```

4. Install:

```sh
git clone https://github.com/r-huijts/xcode-mcp-server.git
```

5. Run:

```sh
cd xcode-mcp-server
```

6. Install:

```sh
3. Install dependencies:
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/r-huijts-xcode-mcp-server/readme_

