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.
Install Mex
Built from the published package, never by AI.
claude mcp add mex -- npx -y mex-agentRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mex": {
"args": [
"-y",
"mex-agent"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mex": {
"args": [
"-y",
"mex-agent"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mex": {
"args": [
"-y",
"mex-agent"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mex -- npx -y mex-agent{
"mcpServers": {
"mex": {
"args": [
"-y",
"mex-agent"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mex npx -y mex-agentGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
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.
