PMB AI
Gives your AI coding agent a local memory that keeps decisions, lessons and facts between sessions in one SQLite file.
283 stars on GitHubby oleksiijkoLicense Apache-2.0Updated 2 months 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 pmb-ai -- uvx pmb-ai
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Fix that pricing bug we hit last Tuesday.
Remember that we decided to keep the 25 percent floor on negotiation verdicts.
What it is
PMB stores what your agent learns, such as decisions, lessons, facts, project structure and PDFs, in a workspace on your own disk. It feeds the right memories back through MCP so you do not have to re-explain things each session. No cloud and no API keys are needed.
What it can do
prepare: return project context, lessons, recent activity and open goals for a messagerecall: hybrid search of memoryrecord_keyed_fact: store facts that change over time- 27 more tools listed in the project docs
- Dashboard to browse the memory graph
When to use
- βΊWhen you are tired of re-explaining project decisions to your agent every session
- βΊWhen you want several agents (Claude Code, Cursor, Codex) to share one memory
- βΊWhen you want to index a codebase or PDFs so your agent can look things up later
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.
AgentDB Memory PatternsLets your agent remember conversations and context across sessions, using AgentDB as its persistent memory store.memory-systemHelps your agent remember your preferences, project conventions and past decisions across separate sessions using a simple memory index.rememberHelps your agent save an insight, decision, or fact to long-term memory with search tags, so it can find it in later sessions.Frequently asked questions
Is it free and does it need keys?
The readme says there is no account, no API keys and no subscription. The project is licensed Apache 2.0.
Where is my data stored?
In a local workspace you own, with SQLite as the source of truth and search indexes beside it.
Which agents work with it?
Claude Code, Cursor, Codex, Windsurf, Zed, VS Code, Gemini, OpenCode and Continue, wired with pmb connect.
Does it support other languages?
Yes. The default embedder covers 50+ languages, so a query in one language can find a fact stored in another.
Can I back it up or erase it?
Yes. pmb snapshot creates verified backups, and pmb export dumps everything to Markdown or JSON.
Can a team share it?
An optional HTTP mode with bearer-token auth is described in the project docs. It is not needed for local use.
If it does not work
- βΊRun pmb doctor to confirm everything is wired, then restart your agent.
- βΊRun pmb warmup once so the first recall is not slow while the model loads.
- βΊIf the command is not found, check which command name your install gave you (pmb, or pmb-ai via npm).
5 new skills a week. 1 minute to read.