Skip to main content
Glama
xcode-analyzer-mcp

xcode-analyzer-mcp

by sunny-maeng

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 weak to delegates, add [weak self] + guard let self to closures, add removeObserver in deinit. Defaults to dry-run mode (preview only). Set dryRun to false to apply changes.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 8 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count5/5

Eight tools is well-scoped for an Xcode project analyzer, covering distinct analysis areas without obvious filler. Each tool appears to earn its place.

Completeness4/5

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.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues