Control Xcode directly via JXA for build, test, debug operations with XCLogParser integration
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Using with Apple's Official Xcode MCP: Apple now provides an official Xcode MCP server. XcodeMCP can run alongside it in sidekick mode (
--sidekick-only), providing complementary tools like project management and XCResult analysis. In a future version, XcodeMCP will transition to sidekick-only mode by default. See configuration below.
Model Context Protocol (MCP) server that controls Xcode directly through JavaScript for Automation (JXA). Available as both an MCP server and a standalone CLI.
brew install xclogparserXcodeMCP can be used in two ways:
xcodecontrolXCLogParser is recommended but optional:
Run directly with npx:
Or install globally:
Add to your MCP configuration:
To add XcodeMCP to Claude Code using the command line:
To add XcodeMCP to Claude Code using the command line:
For projects where you're working with a single xcodeproj and scheme, you can configure preferred values to make tool parameters optional:
With preferred values configured:
If /mcp in Claude Code indicates the MCP failed, try running it from the project folder manually to see what the output is: npx -y xcodemcp@latest
When using XcodeMCP alongside Apple's official Xcode MCP server, enable sidekick mode to only include complementary tools:
This excludes build/run/test/debug tools that Apple's MCP handles natively.
First, enable Xcode Tools in Xcode > Settings > Intelligence > Model Context Protocol.
Then add both Apple's Xcode MCP and XcodeMCP in sidekick mode:
Future direction: In a future version, XcodeMCP will transition to sidekick-only mode by default, focusing exclusively on tools that complement Apple's official Xcode MCP rather than duplicating functionality.
For local development:
XcodeMCP includes a powerful CLI that provides 100% feature parity with the MCP server, allowing you to run any tool as a one-shot command:
Install globally to use the CLI:
The CLI supports both absolute and relative paths for convenience:
Relative paths are resolved from your current working directory, making the CLI much more convenient to use when working within project directories.
Control logging output with verbosity flags:
CLI commands use kebab-case instead of underscores:
xcode_build β buildxcode_test β testxcode_build_and_run β build-and-runxcode_health_check β health-checkxcresult_browse β xcresult-browsefind_xcresults β find-xcresultsProject Management:
xcode_open_project - Open projects and workspacesxcode_get_workspace_info - Get workspace status and detailsxcode_get_projects - List projects in workspacexcode_open_file - Open files with optional line numberBuild Operations:
xcode_build - Build with detailed error parsingxcode_clean - Clean build artifactsxcode_test - Run tests with optional argumentsxcode_build_and_run - Build and run the active schemexcode_debug - Start debugging sessionxcode_stop - Stop current operationConfiguration:
xcode_get_schemes - List available schemesxcode_set_active_scheme - Switch active schemexcode_get_run_destinations - List simulators and devicesNo reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/xcodemcp)<a href="https://allmcps.com/mcp/xcodemcp"><img src="https://allmcps.com/api/badge/xcodemcp?style=directory" alt="Xcodemcp on AllMCPs" /></a>