Memtrace Structural Memory

v0.4.61Knowledge & Memorystable

Structural memory for AI coding agents. Bi-temporal graph, MCP-native, zero LLM calls. Cursor · Claude Code · Codex · Hermes · VS Code · Windsurf.

agent-memoryai-agentsbi-temporal-graphclaude-codecode-intelligence
Share:
170
Stars
0
Downloads
0
Weekly
0/5

What is Memtrace Structural Memory?

Memtrace Structural Memory is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to structural memory for ai coding agents. bi-temporal graph, mcp-native, zero llm calls. cursor · claude code · codex · hermes · vs code · windsurf.

Structural memory for AI coding agents. Bi-temporal graph, MCP-native, zero LLM calls. Cursor · Claude Code · Codex · Hermes · VS Code · Windsurf.

This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Structural memory for AI coding agents. Bi-temporal graph, M

Use Cases

Bi-temporal graph memory for agents
Zero LLM calls for retrieval
Code-aware agent memory
syncable-dev

Maintainer

LicenseNOASSERTION
Languagepython
Versionv0.4.61
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y memtrace

Manual Installation

npx -y memtrace

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Memtrace Structural Memory

Memtrace is a structural memory layer for AI coding agents, built as a bi-temporal knowledge graph that tracks AST-driven symbols, their relationships, and how they evolve over time — without making any LLM calls for retrieval. It supports 16+ programming languages and integrates with Claude Code, Cursor, Codex, Windsurf, VS Code, Hermes, and others, providing 25+ MCP tools for code search, impact analysis, complexity detection, API topology mapping, and temporal evolution queries.

Prerequisites

  • Node.js 18 or higher (LTS recommended)
  • Git installed (required for temporal analysis features; full repo history gives best results)
  • At least 8 GB RAM (16-32 GB recommended for large monorepos)
  • 5 GB free disk space
  • An MCP-compatible coding agent: Claude Code, Cursor, Codex, Windsurf, VS Code Copilot, Hermes, OpenCode, or Kiro
1

Install Memtrace globally

Install the memtrace npm package globally. The installer handles MCP configuration for all supported editors automatically.

npm install -g memtrace
2

Run the automatic setup

The install command detects your editors and configures MCP settings, skills files, and indexing hooks for each one.

memtrace install
3

Add to your MCP client configuration manually

For clients like Cline or Roo Code that require manual setup, add this block to your MCP config file.

{
  "mcpServers": {
    "memtrace": {
      "command": "memtrace",
      "args": ["mcp"],
      "env": {}
    }
  }
}
4

Index your codebase

Ask your coding agent to index the project, or invoke the index_directory tool directly. Memtrace parses ASTs, resolves symbols, and builds the graph.

5

(Optional) Enable live incremental indexing

Use watch_directory to keep the graph updated as you edit files, so the agent always sees the current state of the codebase.

6

(Optional) Disable telemetry

Memtrace collects anonymous usage telemetry by default. Set the environment variable to opt out.

export MEMTRACE_TELEMETRY=off
# Or add to your MCP env config:
# "env": { "MEMTRACE_TELEMETRY": "off" }

Memtrace Structural Memory Examples

Client configuration (Claude Code / stdio)

MCP server configuration for Claude Code or Claude Desktop.

{
  "mcpServers": {
    "memtrace": {
      "command": "memtrace",
      "args": ["mcp"],
      "env": {
        "MEMTRACE_TELEMETRY": "off"
      }
    }
  }
}

Prompts to try

Natural language queries that automatically trigger the appropriate Memtrace MCP tools.

- "Find where the authentication module is defined in this codebase."
- "Show me all functions that call the payment processor."
- "What is the blast radius if I refactor the UserService class?"
- "Identify all unused helper functions in the src/ directory."
- "Map out the service dependencies and HTTP API endpoints."
- "What changed in the auth module over the last two weeks?"

Troubleshooting Memtrace Structural Memory

Indexing is slow or runs out of memory on a large monorepo

Ensure you have at least 16 GB RAM. For very large repos, index specific subdirectories first with index_directory rather than the entire project root.

Temporal analysis returns no results

Memtrace requires full Git history for evolution queries. Ensure you cloned with full history (not a shallow clone) and that Git is accessible in PATH.

MCP server not appearing in the coding agent after install

Re-run 'memtrace install' and restart your editor. For manual setup, verify the config file path matches your editor's expected location (see the installation table in the README).

Frequently Asked Questions about Memtrace Structural Memory

What is Memtrace Structural Memory?

Memtrace Structural Memory is a Model Context Protocol (MCP) server that structural memory for ai coding agents. bi-temporal graph, mcp-native, zero llm calls. cursor · claude code · codex · hermes · vs code · windsurf. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Memtrace Structural Memory?

Install via npm with the command: npx -y memtrace. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Memtrace Structural Memory?

Memtrace Structural Memory works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Memtrace Structural Memory free to use?

Yes, Memtrace Structural Memory is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.

Browse More Knowledge & Memory MCP Servers

Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Memtrace Structural Memory?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides