Runs on macOS to interface with Xcode, allowing for interaction with Xcode projects, workspaces, schemes, and simulators within the macOS environment.
Provides tools for Xcode build automation and log parsing, enabling opening projects, triggering builds directly in Xcode, cleaning build artifacts, running tests, debugging, switching between schemes, and extracting build errors and warnings.
XcodeMCP
MCP server for Xcode build automation and log parsing.
What it does
- Opens Xcode projects and triggers builds in Xcode, not using xcodebuild. 1
- Parses build logs to extract errors and warnings using XCLogParser
- Provides MCP tools for AI assistants to interact with Xcode
Requirements
- macOS with Xcode installed
- Node.js 18+
- XCLogParser:
brew install xclogparser
Usage
Quick Install
Install from npm
Run directly with npx:
Or install globally:
MCP Configuration
Add to your MCP configuration:
Claude Code CLI Setup
To add XcodeMCP to Claude Code using the command line:
Or clone locally:
Available Tools
xcode_open_project
- Open Xcode projects and workspacesxcode_build
- Build and get errors/warningsxcode_build_scheme
- Build with specific scheme and destinationxcode_clean
- Clean build artifactsxcode_test
- Run unit and UI testsxcode_run
- Run the active schemexcode_debug
- Start debugging sessionxcode_stop
- Stop current build/run/test operationxcode_get_schemes
- List all available schemesxcode_get_run_destinations
- List simulators and devicesxcode_set_active_scheme
- Switch between schemesxcode_get_workspace_info
- Get workspace details and statusxcode_get_projects
- List projects in workspacexcode_open_file
- Open specific files in Xcode
Example
Output:
- ↩
For an alternative that uses
xcodebuild
, see XcodeBuildMCP
This server cannot be installed
MCP server for Xcode build automation and log parsing that opens Xcode projects, triggers builds directly in Xcode, and parses build logs to extract errors and warnings.
Related MCP Servers
- AsecurityAlicenseAqualityMCP server for collecting code from files and directories into a single markdown document.Last updated -24PythonMIT License
- AsecurityAlicenseAqualityAn MCP server that provides access to project files and their contents, allowing users to retrieve file data from specified project directories with error handling and configuration options.Last updated -14TypeScriptMIT License
- -securityFlicense-qualityThis is an MCP server that facilitates building tools for interacting with various APIs and workflows, supporting Python-based development with potential for customizable prompts and user configurations.Last updated -Python
- -securityAlicense-qualityAn MCP server that assists with the orchestration of new software projects by applying standardized templates and best practices in design patterns and software architecture.Last updated -3PythonMIT License