Xcode Index MCP
Officialby Block Inc.
An MCP server by Block Inc. (Square's parent company) that gives AI coding agents direct access to Xcode's native project index via Apple's IndexStoreDB. Instead of relying on text search or file reading, the server provides agents with precise symbol lookup, call site discovery, and reference traversal — the same index Xcode uses internally for "go to definition" and "find all references". Enables safe, exhaustive refactoring across large iOS and macOS codebases.
developmentxcodeiosmacosswiftmcpcode-navigationrefactoringindexstoredbblock-incappledeveloper-toolsclaude-codecursor
Installation
# See GitHub for installation instructions
Key Features
- ✓Exhaustive function call site discovery across the entire Xcode project index
- ✓Symbol definition lookup — navigate from any call site back to the definition
- ✓Pattern-based symbol search via IndexStoreDB without re-indexing
- ✓Symbol occurrence and reference retrieval for safe large-scale refactoring
- ✓Agent-agnostic MCP protocol — works with Claude Code, Cursor, and Goose
- ✓Uses the same index Xcode builds natively — no additional indexing overhead
Use Cases
- →Rename a function parameter and update every call site across a large iOS project
- →Find all callers of a deprecated API before removing it from a Swift framework
- →Navigate an unfamiliar codebase by tracing call chains and symbol references
- →Safely refactor shared Swift types used across multiple targets and modules
- →Audit where a specific initializer or method is invoked project-wide before changes