Xcodemcp logo

Xcodemcp

Controls Xcode through JXA for builds, tests, runs, health checks, and XCResult analysis on macOS.

Install Xcodemcp

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "xcodemcp": {
      "command": "npx",
      "args": [
        "-y",
        "xcodemcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio xcodemcp -- npx -y xcodemcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y xcodemcp

RM npm error notsup Unsupported platform for xcodemcp@2.1.4: wanted {"os":"darwin"} (current: {"os":"linux"}) npm error notsup Valid os: darwin npm error notsup Actual os: linux npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.3 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3 npm notice To update run: npm install -g npm@12.2.3 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-12-02T00_26_50_411Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The xcodemcp MCP server controls Xcode through JavaScript for Automation (JXA), rather than invoking the xcodebuild command-line tool directly. It exposes build, test, build-and-run, health-check, and XCResult browsing operations, with XCLogParser support for structured build-log errors. Use it on macOS when an MCP client needs to operate an installed Xcode project, or run it alongside Apple’s official Xcode MCP in sidekick mode for project and result analysis.

Use cases

  • Build an Xcode project from an MCP client
  • Run project tests and inspect result bundles
  • Check Xcode and local environment health
  • Browse or locate XCResult files
  • Run equivalent workflows from a terminal

Key features

  • JXA-based Xcode control
  • Build, test, and build-and-run tools
  • XCResult browsing and discovery
  • Optional XCLogParser log analysis
  • Environment health checks
  • Feature-parity standalone CLI

Tools12

What Xcodemcp lets your agent do. Expand a tool for its parameters.

Self-reported~38 tokens of context

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.

25/25 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · xcodemcp (npm)

Adoption & maintenance

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

GitHub stars59Stargazers on the source repository.
npm downloads237Package downloads in the last 30 days.
Last commit10mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed12Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Xcodemcp works

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:

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

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 Xcodemcp

xcodemcp is an MCP server that connects AI clients to Xcode on macOS through JavaScript for Automation. Its main tools build projects, run tests, build and run apps, check environment health, browse XCResult bundles, and find XCResult files. It also offers equivalent terminal commands through its standalone CLI.

Install it by running `npx -y xcodemcp@latest` in the MCP client configuration, or install it globally with `npm install -g xcodemcp`. Xcode must be installed on macOS, and Node.js 18 or newer is required.

Yes, the README provides a Cursor MCP installation link for xcodemcp. It also shows a standard configuration using `npx -y xcodemcp@latest`.

Run xcodemcp with `--sidekick-only` alongside Apple’s server. Apple’s MCP handles build, run, test, and debug operations, while xcodemcp supplies complementary project-management and XCResult analysis capabilities.

No, XCLogParser is optional but recommended. Install it with `brew install xclogparser` to enable structured build-log parsing with precise error locations; the server can degrade gracefully when it is missing.

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 PreviewXcodemcp AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xcodemcp?style=directory)](https://allmcps.com/mcp/xcodemcp)
HTML Embed
<a href="https://allmcps.com/mcp/xcodemcp"><img src="https://allmcps.com/api/badge/xcodemcp?style=directory" alt="Xcodemcp on AllMCPs" /></a>