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

Mex

MCP server by mex-memory Verified · gh:mex-memory

Saves team notes about your repo and delivers them to new Claude Code and Codex sessions. Holds back notes the code has made false. Built for engineers and their AI agents.

  • Score 90
  • 1.8k stars
  • MIT
  • Updated

Install Mex

Built from the published package, never by AI.

claude mcp add mex -- npx -y mex-agent

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

Step-by-step: install Mex 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 mex block.

About

MEX is a command line tool that stores notes about a repository, such as facts, rules and decisions, and gives them to new Claude Code and Codex sessions. Each note is checked against the code when it is saved, and notes the code has made false are held back. Notes stay on your machine until you share them through a reviewed git branch.

MEX installs hooks in your Claude Code and Codex user settings. Some notes arrive when an agent first reads a file in a folder, and your repo's test and build commands reach the agent without being written down. It is aimed at engineers and their AI agents who work in a shared repository. The current release is a beta for Claude Code and Codex only, and it has no MCP server.

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

Tools it gives your assistant

  • mex noteSaves a fact, rule or decision in your own words, checked against the code.
  • mex briefPreviews what a new session will receive.
  • mex checkChecks which notes still hold. Read-only, with no AI.
  • mex recallFinds a saved note with no model call.
  • mex whatShows what MEX gave or held back in this session.
  • mex sharePreviews sharing notes and rule files on a new git branch.
  • mex handoffLeaves a handoff for the next person on a branch.
  • mex doctorShows what MEX is doing in the repo and a fix for each recorded problem.

What you need

  • Node.js 22.5 or later
  • Windows, macOS or Linux
  • Claude Code or Codex

Try asking

  • Remember that dates are stored in UTC for the reports job
  • Which saved notes no longer match the code?
  • What did MEX give or hold back in this session?

Good to know

  • This is a beta, a pre-release on npm's next tag.
  • The beta has no MCP server, Hub or skills.
  • The session-start brief holds notes up to about 1,000 characters.
  • Codex skips MEX hooks until you review and trust them.

Security check

A

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

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

Alternatives to Mex

All alternatives →

Compare with Zotero MCP, Agentdb or Genkitx MCP

Mex: common questions

Does MEX replace CLAUDE.md or AGENTS.md?

No. MEX reads your rule files and flags lines that look out of date, but it never edits them or creates a CLAUDE.md. It writes its own files beside yours.

Where are my notes stored?

Notes stay on your machine until you share them through a reviewed git branch. MEX has no hosted service and needs no MEX account or API key.

Does MEX send telemetry?

Telemetry is on by default and sends anonymous usage counts, never code, file paths, prompts or repo names. You can turn it off with mex telemetry off or DO_NOT_TRACK=1.

How do I install Mex?

In Claude Code run claude mcp add mex -- npx -y mex-agent. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Mex the official server?

Mex is published by gh:mex-memory from its verified domain in the official MCP Registry.

Is Mex free?

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

Is Mex safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. 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 Mex?

Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.

Does Mex 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.