memgit
MCP server by code4161 Verified · memgit.dev
Gives AI coding agents one shared, versioned memory across Claude Code, Cursor, Codex and other MCP hosts. It is for developers who use several AI tools on more than one machine.
Install memgit
Built from the published package, never by AI.
claude mcp add memgit -- npx -y memgit-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"memgit": {
"args": [
"-y",
"memgit-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"memgit": {
"args": [
"-y",
"memgit-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"memgit": {
"args": [
"-y",
"memgit-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add memgit -- npx -y memgit-mcp{
"mcpServers": {
"memgit": {
"args": [
"-y",
"memgit-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add memgit npx -y memgit-mcpGemini 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 memgit block.
About
memgit is a memory layer for AI coding agents. It imports the memory Claude Code already keeps and stores memories as readable .toon files in a git-style, content-addressed store. Every change is saved as a checkpoint, so memgit diff shows what changed and memgit rollback reverts a wrong memory. Memories are project-scoped by default, and searches return only the top matches for each query.
Hooks inject a bounded resume digest at session start and relevant memories at prompt time. Optional cloud sync shares the same memory across machines, and the server stores ciphertext only. The local engine, store and MCP server are MIT licensed. The tool is aimed at developers who use Claude Code, Cursor, Codex or other MCP hosts on several machines and want one memory they can inspect and undo.
Written from the project's README and checked against it.
Tools it gives your assistant
get_memoryFetches the full text of a memory by its identifier, after a search returns a short match.searchSearches the store with BM25 ranking, limited to the current project unless all_projects is set.memgit resumeShows recent checkpoints, work in flight, and critical and recent memories for a new session.memgit diffShows what an agent changed in memory between checkpoints.memgit rollbackRestores memory to an earlier checkpoint when a saved memory is wrong.memgit onboardSeeds the store from an existing repository using git history, stack detection and docs.memgit statsMeasures how many tokens the store costs as context compared with loading everything.
What you need
- Python 3.11+
- Node.js for the Claude Code plugin and the npx config
- Paid plan for cross-machine sync, after 14 days free with no card
Try asking
- What does my memory say about the database setup in this project?
- Roll back the last memory change, it was wrong.
- Onboard this repo and save the key project facts as memories.
Good to know
- Cross-machine sync needs a paid plan after the 14-day free trial: $12 a month or $99 a year.
- Windows installs via Chocolatey can wait a few days in moderation for new versions.
Security check
ANo 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 memgit
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
memgit: common questions
Does memgit work without a cloud account?
Yes. The source says that with no cloud login and no licence key, memgit talks to nothing, and the local engine and MCP server are never gated.
How is memgit different from claude.md?
The source says claude.md loads all context every session, while memgit uses BM25 search to load only relevant memories and keeps full version history with rollback.
Is my memory readable if I stop paying for sync?
The source says a lapsed plan never locks your data. It stays on your machine, readable and exportable.
How do I install memgit?
In Claude Code run claude mcp add memgit -- npx -y memgit-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is memgit the official server?
memgit is published by memgit.dev from its verified domain in the official MCP Registry.
Is memgit free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is memgit safe to use?
It scores 86 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 memgit?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does memgit work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
