xcode-analyzer-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| analyze_circular_dependenciesB | Detect circular dependencies between modules/files in an Xcode project using Tarjan's SCC algorithm. Analyzes Package.swift targets and Swift import statements. |
| analyze_build_timeA | Analyze Xcode build times from DerivedData build logs. Shows slowest files and modules. Falls back to static complexity analysis if no build logs are found. |
| analyze_import_graphB | Build a module dependency graph from Swift import statements. Shows fan-in/fan-out statistics and can output as adjacency list, matrix, Mermaid diagram, or DOT/Graphviz format. |
| detect_unused_importsB | Detect potentially unused Swift import statements using heuristic analysis. Checks against a built-in symbol database for popular iOS frameworks (UIKit, RxSwift, SnapKit, etc.). |
| analyze_dependency_treeA | Analyze SPM (Package.resolved) and CocoaPods (Podfile.lock) dependency trees. Shows direct and transitive dependencies, version info, and tree structure. |
| detect_large_filesA | Find large files and resources in the project that impact app size. Scans images, videos, fonts, JSON, xcassets, and other file types. |
| detect_retain_cyclesA | Detect potential memory leaks and retain cycles in Swift code. Finds: missing [weak self] in closures, strong delegates, Timer retain cycles, NotificationCenter leaks, ViewModel↔ViewController strong references, and stored closure properties. |
| fix_retain_cyclesA | Automatically fix common retain cycle patterns: add |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Most tools are clearly distinct by resource and action, with the detect/fix retain-cycle pair being obviously related. There is some conceptual overlap among analyze_circular_dependencies, analyze_import_graph, and analyze_dependency_tree, though the descriptions distinguish module cycles, import graphs, and external package trees.
All tool names use consistent snake_case verb_noun phrasing with clear action verbs such as analyze_, detect_, and fix_. The pattern is predictable throughout the set.
Eight tools is well-scoped for an Xcode project analyzer, covering distinct analysis areas without obvious filler. Each tool appears to earn its place.
The surface covers major project-health areas: dependencies, imports, build performance, file size, and memory/retain cycles. Remediation is limited to retain cycles, so other detected issues remain report-only, but core workflows are covered.