# Xcode Index

> Use this tool when you need to perform precise code navigation and refactoring operations on iOS/macOS projects, solving problems such as automated code modification and symbol resolution. It takes in project indexes and query inputs, and outputs symbol information, references, and occurrences, enabling AI agents to safely modify code across large codebases. Ideal for use in automated refactoring workflows, this tool provides direct access to Xcode's project index store through Apple's IndexStoreDB.

Canonical page: https://skillsregistry.net/skills/block-xcode-index  
JSON: https://api.skillsregistry.net/v1/skills/block-xcode-index

## Description

This MCP server provides direct access to Xcode's project index store through Apple's IndexStoreDB, enabling AI assistants to perform precise code navigation and refactoring operations on iOS/macOS projects. Built by Block using a hybrid Python/Swift architecture, it consists of a Python MCP server that communicates with a Swift service running on TCP port 7949, which interfaces directly with Xcode's derived data to load project indexes and query symbol information. The implementation offers tools for loading project indexes, finding symbol occurrences at specific file locations, retrieving all references to symbols by their USR (Unified Symbol Resolution), and pattern-based symbol searching with various matching options, making it valuable for automated refactoring workflows where AI agents need exhaustive lists of function call sites and symbol definitions to safely modify code across large codebases.

## Trust

- **Trust score (0–1):** 0.50
- **Verification tier:** unverified

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** ai-ml
- **Updated:** 2026-05-24

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/block-xcode-index)
- **Repository:** <https://github.com/block/xcode-index-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "block-xcode-index"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/block-xcode-index` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/block-xcode-index/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
