← Back to directory
X

XcodeMCP

Community
Control Xcode through MCP and analyze build and test results.
Category
Dev Tools #282 of 751
Stars
★ 60 Popular
Transport
stdio (local process)
Runtime
Node.js 18+
Credentials
No credential needed
License
Apache-2.0
Last commit
⚠
Tools
22
53FMRS · D

The supplied sources describe a JXA-based Xcode MCP server with project management, build and test, diagnostics, and XCResult analysis tools. The manifest lists status active, version 2.1.4, and an npm package using stdio.

Strongest · Setup experience 13/20 Weakest · Security and permissions 8/20

Reliability
9/20
Security and permissions
8/20
Maintenance
10/20
Documentation
13/20
Setup experience
13/20
Why each score
Reliability 9/20
The README describes controlling Xcode through JXA, parsing build logs with XCLogParser, health checks, and degraded behavior when an optional dependency is missing. The manifest declares an npm stdio package, and the tool list is specific. However, the supplied material has no verifiable MCP initialization or tool-list handshake evidence, committed tests, or CI workflows, so startup behavior and edge-case handling remain unverified; static calibration caps the score at 12.
Security and permissions 8/20
The README says the server can open projects, build, run, test, debug, and operate Xcode, and includes a tool for cleaning build artifacts. The material does not explain permission scope, confirmation for dangerous actions, data flows, or network behavior. There is no explicit red-line evidence, but these missing security boundaries warrant deductions.
Maintenance 10/20
Repository metadata says the project is not archived, has an Apache-2.0 license, 59 stars, and 6 open issues; the manifest provides version 2.1.4 and an npm distribution path. The material provides no commit or release history, issue response evidence, dependency update policy, security response channel, or clear maintainer identity, so maintenance activity is only partially established.
Documentation 13/20
The README lists macOS, Xcode, Node.js 18+, and recommended XCLogParser requirements; it includes MCP client configurations, a tool list, CLI examples, logging settings, and troubleshooting, and explains that XCLogParser is optional with reduced parsing when absent. It does not systematically disclose permissions, data flows, complete parameters and side-effect boundaries for each tool; feature claims also lack source or test evidence.
Setup experience 13/20
The README provides npx and global npm installation options plus configuration examples for VS Code, Claude Code, and generic MCP clients. The server requires macOS and installed Xcode, while XCLogParser is a separate recommended install. No end-to-end startup or connection evidence is verifiable in the supplied material, and compatibility with other platforms is not shown, so the score is limited.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or code

Best for

  • Developers using Xcode on macOS who want to operate projects and analyze test results through an MCP client.
  • Teams that need Xcode project management and XCResult analysis tools.

Not for

  • Environments without macOS or Xcode.
  • Workflows that require xcodebuild CLI rather than direct Xcode automation.

Required permissions

  • Requires Xcode and JXA on macOS; automation operations also require working Xcode automation permissions.
  • Depending on the tool used, it may open or change project state, run builds and tests, start debugging, or access project files and test results.

Risks and side effects

  • Build, clean, run, test, and debug operations act on local Xcode projects or runtime environments; confirm the project and target before invoking them.
  • Without XCLogParser, the server can still operate, but build error parsing is limited.
  • The server launches over stdio; its configuration runs npx to obtain the specified npm package.

Setup

Before you start

Runtime:Node.js 18+

Other optional settings (5)
LOG_LEVEL optional Sets logging verbosity; supported values include SILENT, ERROR, WARN, INFO, and DEBUG.
XCODEMCP_LOG_FILE optional Optional path for writing logs to a file in addition to stderr.
XCODEMCP_CONSOLE_LOGGING optional Enables or disables log output to stderr; defaults to true.
XCODE_MCP_PREFERRED_SCHEME optional Optional preferred Xcode scheme name that supplies a default in single-project workflows.
XCODE_MCP_PREFERRED_XCODEPROJ optional Optional preferred .xcodeproj name that supplies a default in single-project workflows.

Add the provided configuration to an MCP client. The client starts the server over stdio using npx -y xcodemcp@latest. The package can also be installed globally with npm. Requires macOS with Xcode and Node.js 18 or later; XCLogParser is recommended (brew install xclogparser).

claude_desktop_config.json
{"mcpServers":{"xcodemcp":{"command":"npx","args":["-y","xcodemcp@latest"],"env":{}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "xcodemcp": {
      "command": "npx",
      "args": [
        "-y",
        "xcodemcp@latest"
      ],
      "env": {}
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.xcodemcp]
command = "npx"
args = ["-y", "xcodemcp@latest"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add xcodemcp -- npx -y xcodemcp@latest

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm `xcode_health_check` and `xcode_build` appear in your MCP client's tool list. Call `xcode_health_check` and check that it returns environment diagnostics.

Troubleshooting

  1. Confirm macOS with Xcode is available and Node.js 18 or later is installed.
  2. Run xcode_health_check to check Xcode, JXA, automation permissions, and XCLogParser.
  3. If XCLogParser is not found, check that it is installed and its executable directory is on PATH.
  4. If MCP fails to start in Claude Code, run npx -y xcodemcp@latest manually from the project directory to inspect output.

Things to try

Once connected, you can ask your AI assistant things like:

  • Open the Xcode project in the current workspace and list its schemes.
  • Build the MyApp scheme and summarize any build errors.
  • Browse the latest test results and show the console output and UI hierarchy for a failed test.

Tools 22

xcode_open_project writes
Open an Xcode project or workspace.
xcode_get_workspace_info read-only
Get workspace status and details.
xcode_get_projects read-only
List projects in the workspace.
xcode_open_file writes
Open a file, optionally at a specified line.
xcode_build writes
Build a project and parse detailed errors.
xcode_clean destructive
Clean build artifacts.
xcode_test writes
Run tests with optional additional arguments.
xcode_build_and_run writes
Build and run the active scheme.
Show 14 more tools
xcode_debug writes
Start a debugging session.
xcode_stop writes
Stop the current operation.
xcode_get_schemes read-only
List available schemes.
xcode_set_active_scheme writes
Switch the active scheme.
xcode_get_run_destinations read-only
List run destinations such as simulators and devices.
xcresult_browse read-only
Browse test results and analyze failures.
xcresult_browser_get_console read-only
Get console output for a specific test.
xcresult_summary read-only
Get a quick overview of test results.
xcresult_get_screenshot read-only
Extract screenshots from test failures.
xcresult_get_ui_hierarchy read-only
Get an AI-readable UI hierarchy for a selected timestamp.
xcresult_get_ui_element read-only
Get detailed properties of a UI element by index.
xcresult_list_attachments read-only
List attachments for a test.
xcresult_export_attachment writes
Export selected test attachments.
xcode_health_check read-only
Check the environment and provide troubleshooting information.

Use cases

Open Xcode projects, build, run, and test from an MCP client.
Parse build errors and inspect .xcresult test results, console output, screenshots, and UI hierarchies.
Check whether the Xcode automation environment is available.

Supported clients

Claude Desktop
VS Code
Claude Code

Listed from the project's documentation, not tested by this site.

Overview

XcodeMCP is an MCP server that controls Xcode directly through JavaScript for Automation (JXA), and it also provides a standalone CLI. It can open projects, build, run, test, and debug, and uses XCLogParser to parse build logs. It can also browse .xcresult test results, extract attachments, and inspect UI hierarchies. XCLogParser is optional but recommended.

Similar servers

Source revision 8124fd1198da Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/xcodemcp.svg)](https://followmcp.com/en/servers/xcodemcp)