Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

memex

MCP server by STiFLeR7 Community

Adds current repository context to Claude Code and Codex through a Neo4j knowledge graph. It checks edits against the current code and holds those whose supporting evidence has changed. Built for teams running coding agents on a codebase.

  • Score 71
  • 12 stars
  • 112 a week
  • MIT
  • Updated

Install memex

Built from the published package, never by AI.

claude mcp add memex -e NEO4J_URI=YOUR_NEO4J_URI -e NEO4J_USER=YOUR_NEO4J_USER -e NEO4J_PASSWORD=YOUR_NEO4J_PASSWORD -e GEMINI_API_KEY=YOUR_GEMINI_API_KEY -- npx -y stifler-memex-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install memex in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the memex block.

About

memex is an open-source MCP server and hook service that keeps Claude Code and Codex engineering context current as the code changes. A daemon turns commits and file changes into a bitemporal knowledge graph of modules, symbols, decisions, problems and evidence, stored in Neo4j. Each session starts with a bounded working set, and each edit is checked against the current code before it is applied.

The agent can also call 14 MCP tools to read and write context. memex computes confidence at query time, so stale knowledge can be surfaced. It fails open, so agent execution continues if memex is unavailable. It is aimed at engineering teams using coding agents on a repository, and it does not store personal memory or raw session state.

Written from the project's README and checked against it.

Tools it gives your assistant

  • get_project_contextReturns a cluster-level briefing under 1500 tokens at session start.
  • get_symbol_contextReturns callers, callees and linked decisions before editing a function or class.
  • get_recent_decisionsLists architectural decisions from the last N days, optionally scoped to a module.
  • get_open_problemsLists active bugs and tech debt, sorted by severity.
  • search_contextRuns hybrid search combining semantic, keyword and graph traversal results.
  • get_stale_contextLists edges whose composite confidence dropped below the threshold.
  • explain_changeExplains a commit SHA by cross-referencing linked Decision and Problem nodes.
  • predict_impactRanks modules likely affected by a change to a given file path.
  • record_decisionStores a technical choice, with corroborates and supersedes options.
  • record_problemStores a newly found bug or piece of tech debt.

What you need

  • Neo4j 5 server
  • Gemini API key
  • Python with uv or pip
  • Node.js for npx
SettingNeededWhat it is
NEO4J_URIEnvironment variableRequiredBolt URI of your Neo4j instance
NEO4J_USEREnvironment variableRequiredNeo4j username
NEO4J_PASSWORDEnvironment variable, secretRequiredNeo4j password
GEMINI_API_KEYEnvironment variable, secretRequiredGoogle Gemini API key for entity extraction

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Get the project context before we start working on this repository.
  • Check which decisions are linked to the function I am about to edit.
  • Which open problems in this repo have the highest severity?

Good to know

  • Hooks fail open, so agent execution continues if memex is unavailable.
  • The first start after install or upgrade can take about 40 seconds and may hit the MCP connect timeout once.
  • The Hermes integration is read-only.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to memex

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

memex: common questions

Does memex store personal memory or chat history?

No. The source says memex does not act as a source of personal memory or raw session state. It does not ingest Hermes state.db, transcripts, prompts or tool results.

What happens if memex is down or unreachable?

memex fails open, so agent execution continues without it. If a tool reports that memex cannot reach Neo4j, the tools recover once Neo4j is started again.

Does memex need Docker?

The source says memex needs a Neo4j 5 server you already run and that Docker is not required for it. A manual setup example does use docker compose to start Neo4j.

How do I install memex?

In Claude Code run claude mcp add memex -e NEO4J_URI=YOUR_NEO4J_URI -e NEO4J_USER=YOUR_NEO4J_USER -e NEO4J_PASSWORD=YOUR_NEO4J_PASSWORD -e GEMINI_API_KEY=YOUR_GEMINI_API_KEY -- npx -y stifler-memex-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is memex the official server?

memex is a community project by STiFLeR7, not verified by a company domain.

Is memex free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is memex safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to memex?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does memex work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.