Xcodemcp
Controls Xcode through JXA to build, test, debug, and analyze XCResult files on macOS.
- CCM score
- 78 of 100
- GitHub stars
- 59
- tools
- 22
- transport
- STDIO
- last updated
- Sep 18, 2025
Own this MCP server? Claim it
What it does
- Opens projects and files, lists schemes and run destinations, and builds, cleans, runs, tests, and debugs with
xcode_build,xcode_test, andxcode_debug - Analyzes results with
xcresult_summary,xcresult_browse,xcresult_get_screenshot, andxcresult_get_ui_hierarchy, and parses build errors with XCLogParser - Requires macOS with Xcode installed and Node.js 18+; XCLogParser is optional, and
--sidekick-onlymode complements Apple's official Xcode MCP - Designed for developers who want agent-driven build, test, and debug loops in Xcode, including test failure triage
Tools
22 toolsPublic tool metadata for what this MCP can expose to an agent.
xcode_open_projectOpen projects and workspaces
Open projects and workspaces
No parameter schema in public metadata yet.
xcode_get_workspace_infoGet workspace status and details
Get workspace status and details
No parameter schema in public metadata yet.
xcode_get_projectsList projects in workspace
List projects in workspace
No parameter schema in public metadata yet.
xcode_open_fileOpen files with optional line number
Open files with optional line number
No parameter schema in public metadata yet.
xcode_buildBuild with detailed error parsing
Build with detailed error parsing
No parameter schema in public metadata yet.
xcode_cleanClean build artifacts
Clean build artifacts
No parameter schema in public metadata yet.
xcode_testRun tests with optional arguments
Run tests with optional arguments
No parameter schema in public metadata yet.
xcode_build_and_runBuild and run the active scheme
Build and run the active scheme
No parameter schema in public metadata yet.
xcode_debugStart debugging session
Start debugging session
No parameter schema in public metadata yet.
xcode_stopStop current operation
Stop current operation
No parameter schema in public metadata yet.
xcode_get_schemesList available schemes
List available schemes
No parameter schema in public metadata yet.
xcode_set_active_schemeSwitch active scheme
Switch active scheme
No parameter schema in public metadata yet.
xcode_get_run_destinationsList simulators and devices
List simulators and devices
No parameter schema in public metadata yet.
xcresult_browseBrowse test results and analyze failures
Browse test results and analyze failures
No parameter schema in public metadata yet.
xcresult_browser_get_consoleGet console output for specific tests
Get console output for specific tests
No parameter schema in public metadata yet.
xcresult_summaryQuick overview of test results
Quick overview of test results
No parameter schema in public metadata yet.
xcresult_get_screenshotExtract screenshots from test failures
Extract screenshots from test failures
No parameter schema in public metadata yet.
xcresult_get_ui_hierarchyGet UI hierarchy as AI-readable JSON with timestamp selection
Get UI hierarchy as AI-readable JSON with timestamp selection
No parameter schema in public metadata yet.
xcresult_get_ui_elementGet detailed properties of specific UI elements by index
Get detailed properties of specific UI elements by index
No parameter schema in public metadata yet.
xcresult_list_attachmentsList all attachments for a test
List all attachments for a test
No parameter schema in public metadata yet.
xcresult_export_attachmentExport specific attachments from test results
Export specific attachments from test results
No parameter schema in public metadata yet.
xcode_health_checkEnvironment validation and troubleshooting
Environment validation and troubleshooting
No parameter schema in public metadata yet.
Readme
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.
XcodeMCP
Model Context Protocol (MCP) server that controls Xcode directly through JavaScript for Automation (JXA). Available as both an MCP server and a standalone CLI.
What it does
Details
- Repository
- github.com/lapfelix/xcodemcp
- Categories
- Mobile Apps, Developer Tools
- Package
xcodemcp- Transport
- STDIO
- Registry
- MCP registry, active
Questions
What does the xcodemcp MCP server let an agent do in Xcode?
It controls Xcode directly through JavaScript for Automation rather than the xcodebuild CLI, letting an agent open projects, build, run, test and debug from within Xcode. It also parses build logs with precise error locations using XCLogParser.
Is xcodemcp a good Mobile Apps MCP server to use?
It ranks in the top 25 on the Mobile Apps category page on Claude Marketplaces, alongside Mobile Mcp, Xcodebuildmcp, ShipSwift, iOS Simulator and Mcp. It stands out for exposing 22 tools that cover project control, builds, tests and XCResult analysis.
How do I install xcodemcp for Claude Code?
The MCP configuration uses the command npx with the arguments -y xcodemcp@latest, which runs the server from npm over stdio. Once it is added, the agent can build, run and test Xcode projects and browse XCResult test results.
What do I need to run xcodemcp?
You need macOS with Xcode installed and Node.js 18 or later. XCLogParser is recommended but optional, installed with brew install xclogparser.
Can xcodemcp run alongside Apple's official Xcode MCP server?
Yes, it can run in sidekick mode with the --sidekick-only flag, which keeps project management and XCResult analysis tools and leaves build, run and test to Apple's server. This makes it complementary to Apple's official Xcode MCP.
Similar to Xcodemcp
More Mobile AppsXcodebuildmcpMCP servergetsentry6.6K starsBuild, run, test, and debug iOS and macOS apps through Xcode, simulators, and physical devices.
ios-debugger-agentSkilldimillian/skills3.7K installsDrives XcodeBuildMCP to build, launch, and debug an iOS project on a booted simulator.
xcodePluginanthropics/claude-plugins-official48.8K starsWork with Xcode projects from Claude Code: build, run, and test schemes, render SwiftUI previews, drive simulators and devices, read build logs and diagnostics,
Mobile McpMCP servermobile-next11K starsAutomates iOS and Android simulators, emulators, and real devices through accessibility trees and screenshots.
Mobile Device MCPMCP serversrmorete56 starsRemote control of iOS and Android devices: taps, screenshots, UI trees, and app management.