Memex logo

Memex

by STiFLeR7

Builds a temporal repository knowledge graph and exposes bounded engineering context to AI coding agents over MCP.

Install Memex

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "stifler7-memex": {
      "command": "npx",
      "args": [
        "-y",
        "stifler-memex-mcp"
      ],
      "env": {
        "NEO4J_URI": "YOUR_VALUE_HERE",
        "NEO4J_USER": "YOUR_VALUE_HERE",
        "NEO4J_PASSWORD": "YOUR_VALUE_HERE",
        "GEMINI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y stifler-memex-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

STiFLeR7/memex watches Git repositories, extracts code and change information, and stores engineering facts in a Graphiti-backed Neo4j graph. It exposes bounded context about projects, symbols, decisions, problems, search results, stale facts, and likely change impact through MCP tools. Confidence scores and validity windows help agents distinguish current information from aging or invalidated context. Reach for it when coding agents need repository history and architectural context across sessions rather than raw conversation memory.

Use cases

  • Brief an agent on a repository before a coding session
  • Trace callers, callees, and decisions before editing a symbol
  • Review recent architectural decisions and unresolved technical debt
  • Estimate module impact before changing a file
  • Explain a commit using linked repository knowledge

Key features

  • Temporal Neo4j knowledge graph
  • Bounded, provenance-aware context
  • Hybrid semantic, keyword, and graph search
  • Confidence decay and stale-edge detection
  • Decision and problem lifecycle management
  • MCP and Hermes context delivery

Tools12

What Memex lets your agent do. Expand a tool for its parameters.

Self-reported~256 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/26 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · stifler-memex-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars12Stargazers on the source repository.
npm downloads552Package downloads in the last 30 days.
Last commit22d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed12Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Memex works

What STiFLeR7/memex does

STiFLeR7/memex gives AI coding agents a structured view of repository knowledge. It tracks modules, symbols, architectural decisions, bugs, technical debt, evidence, and code evolution instead of treating the repository as a collection of files only. The resulting knowledge graph is stored in Neo4j through Graphiti.

The system is designed for engineering context, not personal memory or raw session history. Its responses are bounded and ranked, so a large repository can produce a concise project briefing. Stored relationships include creation and optional expiration times, while confidence is calculated during retrieval and decreases as information becomes less current.

How it works

Initialize the repository with the command-line package, then run the watcher and MCP server. The watcher observes Git commits and file changes, uses tree-sitter to extract code structure, and processes changes into graph records. Gemini Flash is used to distill commits into decision information, while Gemini Pro is used by explain_change for grounded change explanations.

Graph data is queried by a context-selection layer that combines repository structure, search results, graph relationships, provenance, and freshness. search_context uses semantic search, keyword matching, graph traversal, and reciprocal-rank fusion. predict_impact ranks potentially affected modules from graph coupling without making an LLM call.

A scheduler performs confidence decay and can mark outdated relationships as expired. Agents can also update the graph explicitly by recording decisions or problems, resolving problems, and invalidating facts. Decision writes support either reinforcing an existing decision with corroborates or replacing one with supersedes.

Setup and configuration

The documented manual setup runs Neo4j with Docker Compose and provides NEO4J_URI, NEO4J_USER, NEO4J_PASSWORD, and GEMINI_API_KEY. The server can be started through the npm package with npx stifler-memex-mcp, installed from PyPI as memex-mcp, or run from a source checkout. Typical commands initialize a repository, start watching it, and launch the MCP service.

Hermes can receive a bounded repository context packet without passing its state database, transcripts, prompts, or tool results into the repository graph. The same selector is available through the MCP get_engineering_context tool. A Claude Code marketplace installation is also documented.

For shared deployments, the repository provides a team Docker Compose flow with authentication enabled by default. Neo4j is kept off the host-facing ports in that setup.

Tools and capabilities

STiFLeR7/memex provides tools for both retrieval and graph maintenance, including:

  • Get a compact project briefing at session start.
  • Inspect callers, callees, and linked decisions for a symbol.
  • Retrieve recent decisions and active problems, including severity ordering.
  • Search across semantic, lexical, and graph relationships.
  • Find low-confidence or stale edges.
  • Explain a commit by relating its diff to recorded decisions and problems.
  • Estimate affected modules for a file path.
  • Record, resolve, or invalidate engineering knowledge.

The supplied tool listing describes 12 tools, while the README refers to 14 tools and also documents get_engineering_context; consult the repository version in use when exact tool counts matter.

Limitations and notes

The server depends on Neo4j and, for commit synthesis or grounded explanations, Gemini credentials. Retrieval is designed to fail open, allowing agent execution to continue when memex is unavailable. Context is bounded rather than a complete dump of the repository.

Freshness is not absolute: confidence uses different decay behavior for validated and unvalidated information, and stale relationships may be archived with an expiration timestamp. Hermes support is read-only in the documented v0.9 integration. The project is MIT licensed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Memex

STiFLeR7/memex is an MCP server that connects Git repositories to a Graphiti-backed Neo4j knowledge graph. Its main tools retrieve project and symbol context, decisions, problems, search results, stale facts, change explanations, and impact predictions, while also recording or invalidating engineering knowledge.

Install it with `npx stifler-memex-mcp`, `pip install memex-mcp`, or `uv add memex-mcp`. Manual setup also requires starting Neo4j, setting the documented environment variables, initializing the repository, starting the watcher, and launching the MCP service.

Yes, Cursor is named as a supported integration. The server exposes repository context through MCP, including project briefings, symbol relationships, decisions, problems, search, and impact analysis.

It uses Neo4j through Graphiti. The graph stores repository entities and bitemporal relationships, including creation times and optional expiration times, with confidence evaluated during queries.

Yes, it can record and retrieve open problems representing bugs or technical debt. Agents can resolve tracked problems after fixes, and `get_open_problems` returns active items ordered by severity.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMemex AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/stifler7-memex?style=directory)](https://allmcps.com/mcp/stifler7-memex)
HTML Embed
<a href="https://allmcps.com/mcp/stifler7-memex"><img src="https://allmcps.com/api/badge/stifler7-memex?style=directory" alt="Memex on AllMCPs" /></a>