- Claude Code CLI installed
- Xcode 26.3+ with Xcode Tools MCP enabled
claude mcp add --transport stdio xcode -- uvx --from mcpbridge-wrapper mcpbridge-wrapperThat's it! uvx will automatically download and run the wrapper.
Use this variant to enable the dashboard on port 8080:
claude mcp add --transport stdio xcode -- uvx --from 'mcpbridge-wrapper[webui]' mcpbridge-wrapper --web-ui --web-ui-port 8080--broker auto-detects: connects if a daemon is running, spawns one otherwise. Stale socket/PID files from a crashed daemon are cleaned up automatically.
claude mcp add --transport stdio xcode -- uvx --from mcpbridge-wrapper mcpbridge-wrapper --brokerIf you run a dedicated host with --broker-daemon, keep clients on --broker
so they attach when available and auto-recover when the host is absent.
If you want explicit monitoring/control across multiple editors, follow the
Broker Mode Guide and attach
the browser dashboard and/or mcpbridge-wrapper --tui to that same host.
If you installed manually to ~/bin/xcodemcpwrapper:
claude mcp add --transport stdio xcode -- /Users/YOUR_USERNAME/bin/xcodemcpwrapperclaude mcp add --transport stdio xcode -- /Users/YOUR_USERNAME/bin/xcodemcpwrapper --web-ui --web-ui-port 8080Replace YOUR_USERNAME with your actual macOS username.
If you cloned the repo and installed via make install in a virtual environment:
claude mcp add --transport stdio xcode -- /path/to/XcodeMCPWrapper/.venv/bin/mcpbridge-wrapperclaude mcp add --transport stdio xcode -- /path/to/XcodeMCPWrapper/.venv/bin/mcpbridge-wrapper --web-ui --web-ui-port 8080Replace /path/to/XcodeMCPWrapper with the actual path to your cloned repository.
- Migration: update the existing
claude mcp add ...command to include--broker, then re-add the server. - Rollback: remove broker flags from the command and run
claude mcp add ...again to restore direct mode. - Stop stale broker artifacts during rollback if needed:
PID_FILE="$HOME/.mcpbridge_wrapper/broker.pid"; SOCK="$HOME/.mcpbridge_wrapper/broker.sock"; if [ -f "$PID_FILE" ]; then kill "$(cat "$PID_FILE")" 2>/dev/null || true; fi; rm -f "$PID_FILE" "$SOCK"See Broker Mode Guide for start/stop/status commands.
claude mcp listYou should see xcode in the list of MCP servers.
If you keep more than one editor on --broker, use the shared-daemon checks in
Troubleshooting
to confirm both editors attach to the same host instead of spawning separate
owners.
Once configured, you can use Xcode tools in Claude Code:
> Build my Xcode project
Claude will automatically use the Xcode MCP tools through the wrapper.
To remove the MCP server:
claude mcp remove xcodeInstall uv:
curl -LsSf https://astral.sh/uv/install.sh | shOr via Homebrew:
brew install uvMake sure Xcode Tools MCP is enabled in Xcode:
- Open Xcode > Settings (
⌘,) - Select Intelligence
- Toggle Xcode Tools ON
Broker mode could not reach a ready broker socket. If using --broker, stale files are cleaned up automatically; verify broker status from the broker mode guide, or rollback to direct mode by removing broker flags.