MCP Clients
Drop-in config for every major MCP-speaking editor. Pick yours and paste.
All examples below use the npx command. If you installed via Homebrew, replace command with "xcodebuildmcp" and args with ["mcp"] to skip the npx download check on startup.
Claude Code
claude mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest mcpOr with env-based session defaults:
claude mcp add XcodeBuildMCP -e XCODEBUILDMCP_SENTRY_DISABLED=false -- npx -y xcodebuildmcp@latest mcpCursor
Project-scoped (recommended): create .cursor/mcp.json in your workspace root:
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "npx",
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
}
}
}For global Cursor config at ~/.cursor/mcp.json, use this variant so startup runs from the active workspace:
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "/bin/zsh",
"args": [
"-lc",
"cd \"${workspaceFolder}\" && exec npx -y xcodebuildmcp@latest mcp"
]
}
}
}Codex CLI
Run inside your terminal:
codex mcp add XcodeBuildMCP -- npx -y xcodebuildmcp@latest mcpOr edit ~/.codex/config.toml:
[mcp_servers.XcodeBuildMCP]
command = "npx"
args = ["-y", "xcodebuildmcp@latest", "mcp"]If you hit timed out awaiting tools/call after 60s, bump the timeout:
tool_timeout_sec = 600Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "npx",
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
}
}
}VS Code
Add to your VS Code settings JSON:
{
"mcp": {
"servers": {
"XcodeBuildMCP": {
"command": "npx",
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
}
}
}
}Kiro
Workspace-scoped at .kiro/settings/mcp.json, or user-scoped at ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "npx",
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "npx",
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
}
}
}Trae
Add to ~/Library/Application Support/Trae/User/mcp.json:
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "npx",
"args": ["-y", "xcodebuildmcp@latest", "mcp"]
}
}
}Xcode (Codex Agent)
Requires Xcode 26.3 or later with the Codex agent installed under Xcode Settings → Intelligence → Open AI. At the time of writing, Xcode's Codex agent only supports a project-scoped .codex/config.toml at your project workspace root:
[mcp_servers.XcodeBuildMCP]
args = [
"-lc",
"PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin; export NVM_DIR=\"$HOME/.nvm\"; [ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"; nvm use --silent >/dev/null 2>&1 || true; npx -y xcodebuildmcp@latest mcp"
]
command = "/bin/zsh"
enabled = true
tool_timeout_sec = 10000Codex Agent inside Xcode starts with a minimal PATH. If the server won't start, it's usually because npx can't be found. The zsh wrapper above handles Homebrew and nvm; adjust to match your toolchain.
Xcode (Claude Code Agent)
Requires Xcode 26.3 or later with the Claude Code agent installed under Xcode Settings → Intelligence → Anthropic. Edit the config at:
~/Library/Developer/Xcode/CodingAssistant/ClaudeAgentConfig/.claude.jsonAdd or replace the mcpServers block:
{
"mcpServers": {
"XcodeBuildMCP": {
"command": "/bin/zsh",
"args": [
"-lc",
"PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin; export NVM_DIR=\"$HOME/.nvm\"; [ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"; nvm use --silent >/dev/null 2>&1 || true; npx -y xcodebuildmcp@latest mcp"
]
}
}
}AdaL CLI
At the AdaL prompt:
/mcp add XcodeBuildMCP --command npx --args "-y,xcodebuildmcp@latest,mcp"Verifying the connection
Once configured, ask your agent to list tools. With the default simulator workflow enabled you should see the simulator toolset. Expand enabledWorkflows in your configuration to surface more, or browse every tool in the Tools Reference.