XcodeMCP MCP Server

Model Context Protocol server for Xcode build automation and log parsing

Local serverstdioTypeScript

What is the XcodeMCP MCP Server?

Model Context Protocol server for Xcode build automation and log parsing

What it actually does

Model Context Protocol (MCP) server that controls Xcode directly through JavaScript for Automation (JXA). Available as both an MCP server and a standalone CLI.

  • Controls Xcode directly through JavaScript for Automation (not xcodebuild CLI)
  • Opens projects, builds, runs, tests, and debugs from within Xcode
  • Parses build logs with precise error locations using XCLogParser
  • Provides comprehensive environment validation and health checks
  • Supports graceful degradation when optional dependencies are missing
  • NEW — Includes a full-featured CLI with 100% MCP server feature parity

Configuration

  • macOS with Xcode installed - Node.js 18+ - XCLogParser (recommended): brew install xclogparser

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
xcode_open_projectOpen projects and workspaces
xcode_get_workspace_infoGet workspace status and details
xcode_get_projectsList projects in workspace
xcode_open_fileOpen files with optional line number
xcode_buildBuild with detailed error parsing
xcode_cleanClean build artifacts
xcode_testRun tests with optional arguments
xcode_build_and_runBuild and run the active scheme
xcode_debugStart debugging session
xcode_stopStop current operation
xcode_get_schemesList available schemes
xcode_set_active_schemeSwitch active scheme
xcode_get_run_destinationsList simulators and devices
xcresult_browseBrowse test results and analyze failures
xcresult_browser_get_consoleGet console output for specific tests
xcresult_summaryQuick overview of test results
xcresult_get_screenshotExtract screenshots from test failures
xcresult_get_ui_hierarchyGet UI hierarchy as AI-readable JSON with timestamp selection
xcresult_get_ui_elementGet detailed properties of specific UI elements by index
xcresult_list_attachmentsList all attachments for a test
xcresult_export_attachmentExport specific attachments from test results
xcode_health_checkEnvironment validation and troubleshooting

How to install the XcodeMCP MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • macOS with Xcode installed - Node.js 18+ - XCLogParser (recommended): brew install xclogparser

Example prompts to try

  • “Use XcodeMCP to xcode open project.”
  • “Use XcodeMCP to xcode get workspace info.”
  • “Use XcodeMCP to xcode get projects.”

Frequently asked questions

Model Context Protocol server for Xcode build automation and log parsing Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.