Enterprise DNA
M MCP Servers Developer low

carloshpdoc/memorydetective

by Various

MCP server for iOS leak hunting and performance investigation. 28 MCP tools, 34-pattern retain-cycle classifier with Swift fixTemplate snippets, compareTracesByPattern for CI gatin

C

MCP

carloshpdoc/memorydetective

Added 1 June 2026

#claude-code #combine #instruments #ios #mcp #memgraph #memory-leak #model-context-protocol

Overview

MemoryDetective is an MCP server for iOS leak hunting and performance investigation. It provides 28 MCP tools including a 34-pattern retain-cycle classifier with Swift fixTemplate snippets, compareTracesByPattern for CI gating, and SourceKit-LSP source bridging. The tool reads .memgraph and .trace files and runs exclusively on macOS.

Best for

Best for
iOS developers needing deep memory analysis and automated leak detection in CI

Use cases

  • Detect retain cycles from iOS memory traces
  • Integrate memory leak checks into CI pipelines
  • Generate Swift fix suggestions for identified leak patterns

How to use

Install

npm install -g memorydetective

Tools exposed

  • MEMORYDETECTIVE_REDACTION
  • MEMORYDETECTIVE_ALLOW_LAUNCH
  • MEMORYDETECTIVE_MAX_RECORDING_SECONDS
  • MEMORYDETECTIVE_TRACE_ROOT
  • MEMORYDETECTIVE_ALLOW_EXTERNAL_CLEANUP
  • MEMORYDETECTIVE_AUTO_OPEN_INSTRUMENTS
  • MEMORYDETECTIVE_PREFLIGHT_XCTRACE

Tested with

Claude Desktop, Claude Code, Cursor, Cline, VS Code

Notes

MemoryDetective is an MCP server for iOS leak hunting and performance investigation. It provides 28 MCP tools including a 34-pattern retain-cycle classifier with Swift fixTemplate snippets, compareTracesByPattern for CI gating, and SourceKit-LSP source bridging. The tool reads .memgraph and .trace files and runs exclusively on macOS.

10 stars on GitHub. Last updated 2026-05-25. Licensed Apache-2.0.

Use cases

  • Detect retain cycles from iOS memory traces
  • Integrate memory leak checks into CI pipelines
  • Generate Swift fix suggestions for identified leak patterns

Pros

  • Offers 28 specialized MCP tools for granular investigation
  • Includes a 34-pattern retain-cycle classifier with Swift fix templates
  • Supports CI gating with pattern comparison functionality

Cons

  • Only works on macOS
  • Limited to .memgraph and .trace file inputs
  • Low community adoption (10 GitHub stars)

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Offers 28 specialized MCP tools for granular investigation
  • Includes a 34-pattern retain-cycle classifier with Swift fix templates
  • Supports CI gating with pattern comparison functionality

Cons

  • Only works on macOS
  • Limited to .memgraph and .trace file inputs
  • Low community adoption (10 GitHub stars)
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks