Connecting Antigravity to Xcode
A Guide for May 2026
I couldn't find anything online about this, and the standard AI responses were pretty useless, so I’m putting this together. It’s now May 2026—this will likely be outdated soon, but for now, here’s the fix.
At 42 Berlin, we’ve been hosting a few AI events this month (check our Eventbrite if you’re around!). As students, we have free pro access to Google AI Studio—at least, I’ve had the Pro tier for free since I signed up a year ago. Since I have API access to the best models, I decided to give Antigravity a shot. The perk? You get daily Claude tokens and a monthly 1000 credit refill.
The iOS community is excited about the Xcode 26.3 release (and subsequent versions) because of its new agentic capabilities. Essentially, you can now give Claude access to your Xcode project directly, bypassing the native chat implementation, which—let's be honest—is still pretty cumbersome.
The Problem
Apple’s official documentation explains how to connect Claude or Codex via the terminal, but it doesn't tell you how to hook it up to Antigravity.
The Fix
First, you need the absolute path to the Xcode MCP server on your Mac. Run this in your terminal:
xcrun --find mcpbridge
On my MacBook Pro, it returned: /Applications/Xcode-26.4.1.app/Contents/Developer/usr/bin/mcpbridge
Note: Your path might differ depending on your Xcode version. Use whatever path your terminal spits out.
Next, we need to manually edit the Antigravity MCP config file because the UI can be finicky. Edit this file:
~/.gemini/antigravity/mcp_config.json
and paste this configuration (using your specific path to mcpbridge):
{
"mcpServers": {
"xcode": {
"command": "/Applications/Xcode-26.4.1.app/Contents/Developer/usr/bin/mcpbridge",
"args": []
}
}
}
Verification
Restart Antigravity.
Go to Settings (Cmd + ,) > Customization.
- The MCP server should now be recognized. Xcode will likely prompt you to authorize the connection—hit "Allow".
To make sure it’s actually working, ask the chat:
"Can you see the Xcode MCP server?"
It will likely respond with something like this:
Yes! I can see the Xcode MCP server listed in my available tools. > Let me verify it's working by listing the current Xcode windows:
Used MCP tool: xcode/XcodeListWindowsThe Xcode MCP server is connected and working.
I have access to a full suite of Xcode tools including:
Reading/writing/editing files in the project
Building the project
Running tests
Rendering SwiftUI previews
Searching project files (grep, glob, ls)
Checking build logs and navigator issues
Executing code snippets in file context
Apple documentation search
Happy coding!

