Xcode Instruments Trace Analyzer (MCP)
Local MCP server that records and analyses Instruments traces (time profiler, memory, energy, leaks) using xctrace.
View on GitHub ↗- Stars
- ★ 44
- Last commit
- 14 May 2026
- Maintenance
- Slowing
- Licence
- MIT
- Category
- MCP Servers
- GitHub
- jamesrochabrun/XcodeTraceMCP
Overview
Xcode Instruments Trace Analyzer is a local MCP server that records and analyses Instruments traces for you. It can attach to a running app, record a trace, open it in Instruments and report which of your own code is responsible for slowdowns. It also compares traces to catch regressions.
Features
- Automatic bottleneck detection with impact estimates
- Records a trace from a running or launched app in one call
- Detects Memory, Network, Energy, Allocations and Leaks data
- Hang-focused workflow that ties samples to your app's code
- Compares a baseline trace with a current one
- Bundled xctrace-profiler skill for clients that support skills
Requirements
- macOS with Xcode (xcrun xctrace)
- Node.js (runs through npx)
Install
Claude Code
claude mcp add --transport stdio --scope user xctrace-analyzer -- npx -y @xctrace-analyzer/mcp-server@latestCodex CLI
codex mcp add xctrace-analyzer -- npx -y @xctrace-analyzer/mcp-server@latest
Example
Ask: "Profile this app for hangs and tell me which of my code is responsible."
Works with
Listed in
- github.com/jamesrochabrun/XcodeTraceMCP
- raw.githubusercontent.com/jamesrochabrun/XcodeTraceMCP/HEAD/README.md
Read the code before you install anything. SwiftAgents doesn't review or endorse the tools listed here. Active: a commit in the last 90 days. Slowing: last commit within the past year. Stale: older than a year, or archived.
More in this category
Mobile MCP
Drives native mobile apps on simulators, emulators and real devices over MCP, for iOS and Android alike.
MobileBuildMCP
Sentry's MCP server and CLI for building, testing, running and debugging iOS and macOS projects from an agent. Formerly XcodeBuildMCP.
agent-device
Lets coding agents see and drive apps on iOS simulators and real devices (Android too) through accessibility snapshots, taps, typing and screenshots. Comes as a CLI, MCP server and Node API.