projectmem
Lets your AI coding agent remember issues, failed attempts and fixes, and warns before it repeats a failed approach.
877 stars on GitHubby riponcmLicense MITUpdated 22 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add projectmem -- uvx projectmem
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Before I change auth.py, check whether anything has failed there before.
Log that this fix worked and why the first attempt failed.
What it is
projectmem is a local-first memory layer for AI coding agents. It records issues, attempts, fixes and decisions in a plain .projectmem folder inside your repository. Before a commit it can warn that an approach already failed in this project. One MCP server serves all your projects, with no cloud and no telemetry.
What it can do
precheck_file: warn about known failures for a file before you change itget_issue: read one logged issuesearch_events: search the project memory- 17 tools in total for logging issues, attempts, fixes, decisions and notes
pjm init: set up hooks and memory in a projectpjm doctor: find and register projects and check the setuppjm visualize: a local view of solved cases
When to use
- βΊWhen your agent keeps retrying a fix that already failed
- βΊWhen you want a new session to start with what the project already learned
- βΊWhen you want to keep a record of why decisions were made
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
ckHelps your agent remember important information from previous projects. This allows it to resume work from where it left off, keeping context and decisions made.debugHelps your agent find the real cause of a problem in your Claude Code session or project, using logs and tests before suggesting a fix.memory-systemHelps your agent remember your preferences, project conventions and past decisions across separate sessions using a simple memory index.Frequently asked questions
Is it free and open source?
Yes. It is MIT licensed.
Does it send data anywhere?
No cloud, no account and no telemetry. The only network call is an update check that you turn on yourself.
Which agents work with it?
Claude Code, Claude Desktop, Cursor, Antigravity and Codex.
What does pjm init do?
It installs three git hooks, starts a file watcher, and creates the .projectmem folder.
Do I need one server per project?
No. Since 0.3.0 one MCP server with no --root or cwd serves every registered project.
What should I do after upgrading?
Run pjm init once in each project to refresh the instructions and git hooks.
If it does not work
- βΊFully restart your client after editing the MCP config, since servers only load on a cold start.
- βΊRun pjm doctor to find clients still pinned to a single repo, and pjm doctor --fix to register projects.
- βΊUse the absolute path to Python in the config; pjm init prints the block with your path filled in.
5 new skills a week. 1 minute to read.