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
MCP
carloshpdoc/memorydetective
Added 1 June 2026
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_REDACTIONMEMORYDETECTIVE_ALLOW_LAUNCHMEMORYDETECTIVE_MAX_RECORDING_SECONDSMEMORYDETECTIVE_TRACE_ROOTMEMORYDETECTIVE_ALLOW_EXTERNAL_CLEANUPMEMORYDETECTIVE_AUTO_OPEN_INSTRUMENTSMEMORYDETECTIVE_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)
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
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.