# xcodebuild [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/ShenghaiWang/xcodebuild  
**GitHub Stars:** 85  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/xcodebuild

## Description
Build iOS Xcode workspace/project and feed back errors to llm.

## Tools
Capabilities this server exposes over MCP:

- **build** — Build iOS Xcode workspace/project
- **test** — Run test for iOS Xcode workspace/project

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

```json
"mcpServers": {
  "xcodebuild": {
    "command": "uvx",
    "args": ["mcpxcodebuild"]
  }
}
```

## Documentation

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

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

