# xcodemcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/lapfelix/XcodeMCP  
**GitHub Stars:** 59  
**npm Downloads (last month):** 237  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/xcodemcp

## Description
Control Xcode directly via JXA for build, test, debug operations with XCLogParser integration

## Tools
Capabilities this server exposes over MCP:

- **xcode_build**
- **build**
- **xcode_test**
- **test**
- **xcode_build_and_run**
- **build-and-run**
- **xcode_health_check**
- **health-check**
- **xcresult_browse**
- **xcresult-browse**
- **find_xcresults**
- **find-xcresults**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "xcodemcp": {
    "command": "npx",
    "args": ["-y","xcodemcp"]
  }
}
```

## Documentation

## What the xcodemcp MCP server does

The xcodemcp MCP server gives MCP clients access to selected Xcode workflows on macOS. It can build projects, run tests, build and run an application, validate the local environment, and inspect XCResult bundles. Its Xcode control path uses JavaScript for Automation, so operations are performed through the Xcode application rather than through the `xcodebuild` CLI.

Build output can be analyzed with XCLogParser, which is recommended but optional. When installed, it can provide error locations from build logs. The server also supports graceful degradation when optional dependencies are unavailable.

The package includes a standalone CLI with feature parity to the MCP server. This makes the same operations available either to an MCP client or directly from a terminal.

## How it works

The xcodemcp MCP server runs as a Node.js process and communicates with an MCP client over the configured server command. The documented setup uses `npx -y xcodemcp@latest`, though the package can also be installed globally with npm. Xcode must be installed on macOS, and Node.js 18 or newer is required.

For projects that use Apple’s official Xcode MCP, start this server with `--sidekick-only`. In that mode, it provides complementary project-management and XCResult capabilities while leaving build, run, test, and debug operations to Apple’s server.

## Setup and configuration

Install the optional XCLogParser dependency with Homebrew:

```bash
brew install xclogparser
```

A basic MCP configuration uses the following command and argument:

```json
{
  "command": "npx",
  "args": ["-y", "xcodemcp@latest"]
}
```

Claude Code can add the server with `claude mcp add-json`. For a single-project workflow, `XCODE_MCP_PREFERRED_SCHEME` and `XCODE_MCP_PREFERRED_XCODEPROJ` can supply default scheme and project values; explicit tool parameters can still override them. These settings are optional and are not needed to start the server.

## Tools and capabilities

The xcodemcp MCP server exposes these paired tool names and CLI mappings:

- `xcode_build` / `build` for building an Xcode project.
- `xcode_test` / `test` for running tests.
- `xcode_build_and_run` / `build-and-run` for building and launching an application.
- `xcode_health_check` / `health-check` for checking the environment.
- `xcresult_browse` / `xcresult-browse` for browsing XCResult data.
- `find_xcresults` / `find-xcresults` for locating XCResult files.

The CLI accepts flags or JSON input, supports absolute and relative paths, and offers default, verbose, and quiet logging modes. Its command names use kebab-case, while MCP tool names use underscores.

## Limitations and notes

This server requires macOS with Xcode installed; it is not documented as a cross-platform Xcode service. XCLogParser is recommended rather than mandatory, so result detail may depend on whether that optional package is available. When Apple’s official Xcode MCP is also enabled, sidekick mode avoids duplicating its build, run, test, and debug tools. The project notes that a future version may use sidekick-only behavior by default.

_Full upstream README: https://allmcps.com/mcp/xcodemcp/readme_

