# Memtrace MCP server

> Provides a bi-temporal structural knowledge graph that allows AI coding agents to query codebase relationships, history, and impact analysis locally.

- Repository: https://github.com/syncable-dev/memtrace-public
- Page: https://hostedmcp.org/servers/syncable-dev/memtrace-public
- Transport: stdio
- Stars: 516

## Install

### Claude Code

```sh
claude mcp add memtrace-public -- npx -y memtrace
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "memtrace-public": {
      "command": "npx",
      "args": [
        "-y",
        "memtrace"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "memtrace-public": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "memtrace"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "memtrace-public": {
      "command": "npx",
      "args": [
        "-y",
        "memtrace"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.memtrace-public]
command = "npx"
args = ["-y", "memtrace"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "memtrace-public": {
      "command": "npx",
      "args": [
        "-y",
        "memtrace"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MEMTRACE_TELEMETRY` | no | no |  |

## Tools (21)

- `find_code`
- `find_symbol`
- `analyze_relationships`
- `get_symbol_context`
- `get_impact`
- `detect_changes`
- `find_dead_code`
- `find_most_complex_functions`
- `calculate_cyclomatic_complexity`
- `get_repository_stats`
- `get_evolution`
- `get_timeline`
- `find_bridge_symbols`
- `find_central_symbols`
- `list_communities`
- `get_api_topology`
- `find_api_endpoints`
- `find_api_calls`
- `index_directory`
- `watch_directory`
- `execute_cypher`

## FAQ

### Does Memtrace require LLM calls to index my code?

No, Memtrace uses local Tree-sitter AST parsers to resolve symbol references, resulting in zero LLM calls and zero API costs during indexing.

### Is my source code sent to a cloud server?

No, Memtrace runs entirely on your local machine and your source code never leaves it.

### How fast can Memtrace index a large repository?

It can index a repository with 50,000 files in under 90 seconds.
