Xcodebuild logo

Xcodebuild

Builds and tests iOS Xcode projects through MCP, returning build feedback to an AI agent.

Install Xcodebuild

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "xcodebuild": {
      "command": "uvx",
      "args": [
        "mcpxcodebuild"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio xcodebuild -- uvx mcpxcodebuild

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

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx mcpxcodebuild

No response to initialize.

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 xcodebuild MCP server lets AI agents build and test iOS Xcode workspaces or projects. It runs as a standard MCP process through uvx or a Python module and accepts the full path to the project folder for each operation. Reach for it when an agent needs to invoke iOS build or test workflows from tools such as Visual Studio Code with Cline or Roo Code.

Use cases

  • Build an iOS Xcode project from an agent workflow
  • Run iOS project tests through an MCP client
  • Feed local build results back to an AI coding assistant
  • Validate an iOS workspace during a Visual Studio Code session

Key features

  • Build iOS Xcode workspaces or projects
  • Run tests for iOS Xcode workspaces or projects
  • Accept a full project-folder path
  • Launch with uvx or Python
  • Provide MCP configuration for local clients

Tools2

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

Self-reported~21 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.

35/36 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · mcpxcodebuild (PyPI)

Adoption & maintenance

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

GitHub stars85Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed2Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Xcodebuild works

What xcodebuild does

The xcodebuild MCP server exposes two operations for iOS development: build compiles an Xcode workspace or project, while test runs its tests. Both operations accept a required folder string containing the full path to the directory where the workspace or project is located.

This places routine Xcode build and test actions inside an MCP-compatible agent workflow. An agent can call the server with a project directory instead of requiring a developer to run the commands manually. The project description also identifies build error feedback to the language model as part of the intended workflow.

The repository is listed in the 💻 Developer Tools category and is relevant for teams that want an AI-assisted interface to local iOS project validation.

How it works

The xcodebuild MCP server runs as a local process using standard MCP configuration. With uv, the documented approach uses uvx to launch the package directly. An alternative is installing the mcpxcodebuild package with pip and starting it through Python's module runner.

Each tool call supplies one directory path through folder. The material does not describe additional build flags, scheme selection, simulator settings, signing options, or test filters. As a result, callers should expect the server's exposed interface to be limited to choosing the project directory for the build or test operation.

Setup and configuration

Using uv requires no separate package installation according to the project documentation. Configure an MCP client to run uvx with mcpxcodebuild as its argument.

For a pip-based setup, install the package with pip install mcpxcodebuild, then configure the client to run python -m mcpxcodebuild.

No environment variables are documented, and the supplied configuration does not require an API key or a remote service. The server operates against the local path passed to each tool.

Tools and capabilities

The xcodebuild MCP server provides:

  • build: builds an iOS Xcode workspace or project from the supplied folder.
  • test: runs tests for an iOS Xcode workspace or project from the supplied folder.

These tools fit agents that need to trigger compilation and test execution during an iOS coding session. They do not provide documented source editing, project discovery, dependency management, deployment, device control, or archive management functions.

Limitations and notes

The server's documented input is only the full project-directory path. Confirm those behaviors in the repository before depending on them in automation.

The project is licensed under the MIT License.

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 Xcodebuild

xcodebuild is an MCP server that connects AI agents to local iOS Xcode workspaces or projects through two tools: build and test. Each tool accepts the full path to the project folder, allowing an MCP-compatible client to trigger iOS builds or tests and use the resulting workflow feedback.

You can run it with uvx without a separate installation, or install the package with pip. The documented pip command is `pip install mcpxcodebuild`; then start it with `python -m mcpxcodebuild`.

Configure the client as a local MCP server using either `uvx` with the `mcpxcodebuild` argument or `python` with `-m mcpxcodebuild`. The README provides these command forms in its Claude.app configuration examples.

It documents Claude.app and mentions Visual Studio Code workflows using Cline or Roo Code; the server uses a standard local MCP process configuration.

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