With Xcode 26.3, Apple quietly unlocked something big: native support for the Model Context Protocol (MCP). It’s an open standard that lets AI agents plug directly into Xcode and actually use it — not just suggest code. Tools like Claude Agent and OpenAI Codex work instantly with one-click setup, but that’s just the start. Anything that speaks MCP can now tap into Xcode’s 20 built-in tools.
This post explores what’s now possible, why it matters, and how to set it up in practice.
What Changed in Xcode 26.3?
Before 26.3, Xcode’s AI features were mostly assistive. You could get help from Claude or ChatGPT, but they were passive — they couldn’t actually do things. No building, no testing, no verifying results. That changes completely in 26.3.
Apple calls this shift agentic coding, and it’s a real step forward. Agents can now:
- Break down tasks and execute them step by step
- Build your project and inspect build logs
- Run tests and iterate until they pass
- Capture SwiftUI previews as real images to validate UI changes
- Search across Apple’s full documentation corpus (including WWDC transcripts)
- Manage files, folders, and project structure
And importantly: all of this is exposed via MCP — not locked inside Xcode’s UI.
The Bridge: xcrun mcpbridge
At the center of this is a new command-line tool: mcpbridge, included with Xcode’s CLI tools.
It acts as a translator between MCP and Xcode’s internal communication layer.
As long as Xcode is open with a project loaded, mcpbridge will automatically detect it and connect. In the common case, there’s nothing to configure.
Enabling the MCP Server
Before any external tool can connect, flip the switch inside Xcode:
- Open Xcode → Settings (
⌘,) - Go to the Intelligence section in the sidebar
- Under Model Context Protocol, toggle Xcode Tools to ON
That’s it. Xcode will now accept incoming MCP connections and show a visual indicator whenever an external agent is connected — a useful security cue.
Setting Up Claude Code and Codex CLI
Apple provides official one-liners for both:
# Claude Code
claude mcp add --transport stdio xcode -- xcrun mcpbridge
# Codex
codex mcp add xcode -- xcrun mcpbridge
Verify with:
claude mcp list
codex mcp list
These work immediately because Apple co-designed the integrations directly with Anthropic and OpenAI, optimizing for token efficiency and stable tool interfaces.
