Skip to main content
MCP server CX Codex

memorydetective — Claude Code MCP server: setup

An MCP server for finding iOS retain cycles and performance issues. It analyzes .memgraph, .trace, and MetricKit payloads from an agent chat.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add memorydetective -- npx -y memorydetective
Open on GitHub

What memorydetective does

memorydetective gives an agent access to iOS diagnostics. It reads .memgraph captures, locates ROOT CYCLE entries, matches them to common SwiftUI and Combine patterns, and returns a short direction for the fix. Trace support includes inspectTrace, summarizeTrace, memory and energy analysis, plus network activity checks.

The server can ingest Apple MetricKit .mxdiagnostic files from TestFlight and App Store builds, then group crashes, identify hang hotspots, and surface CPU or disk exceptions. recordViaInstrumentsApp opens Instruments.app, guides the recording flow, and passes the saved .trace to inspection. Node.js 20 or newer is required. On macOS 26.x, simulator recording through xctrace is broken, so use Instruments.app or a physical device instead. A physical iOS device still requires Xcode.

What it helps with

  • find retain cycles in .memgraph captures
  • inspect iOS .trace bundles after profiling
  • match leaks to SwiftUI and Combine patterns
  • group crashes from MetricKit diagnostics
  • check iOS memory and performance regressions

Example prompts for the agent

  • Find retain cycles in App.memgraph and explain the likely causes.
  • Inspect Profile.trace, focus on memory problems, and suggest the next investigation step.
  • Analyze diagnostic.mxdiagnostic and group crashes by exception type.

How to install memorydetective

Platform CLI

claude mcp add memorydetective -- npx -y memorydetective

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about memorydetective

How do I install memorydetective in Claude Code?

Run claude mcp add memorydetective -- npx -y memorydetective.

What does memorydetective do?

It lets an agent investigate iOS retain cycles, trace data, performance issues, and MetricKit diagnostics through MCP tools. The investigation can start from a chat instead of a manual Instruments workflow.

What does memorydetective require?

You need Node.js 20 or newer. Physical iOS device analysis requires Xcode, while Memory Graph capture also works with Mac apps and iOS simulators.

Similar MCP servers

All MCP servers for Mobile →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor