Piia Engram
Gives your AI coding tools one shared, local memory of who you are, your preferences, lessons and decisions.
165 stars on GitHubby PatdolitseLicense AGPL-3.0Updated 21 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 piia-engram -- uvx --from piia-engram==4.27.0 piia-engram-mcp piia-engram --transport stdio
What to fill in
| Name | What it is | Required |
|---|---|---|
ENGRAM_MCP_STARTUP_SYNC | Kept for compatibility; has no effect. The server never imports other AI tools' memories at start (the user runs engram import-memories for that). | No |
ENGRAM_TOOLS | Expose the context-budget friendly default surface; set to all for the full advanced surface. | No |
PYTHONIOENCODING | Force UTF-8 stdio frames on Windows-style consoles. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Remember that I want pytest with 90 percent coverage on every project.
What lessons have I saved about auth middleware?
What it is
Piia Engram keeps a personal identity and knowledge store on your own computer as local files. MCP coding tools such as Claude Code, Codex and Cursor can read the same approved preferences, lessons and decisions, so you do not repeat yourself when you switch tools. You can see, edit and override what it holds.
What it can do
- Load your identity and long-term knowledge at the start of a session
- Search saved lessons, decisions and playbooks
- Propose new lessons for you to review
- Save and resume session checkpoints
- Preview what an AI caller would receive (Memory Lens)
When to use
- βΊWhen you switch between Claude Code, Codex and Cursor and are tired of re-explaining your standards
- βΊWhen you want AI memory that lives in files you can read and edit
- βΊWhen you want to remember why you made an architecture decision
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.memory-systemHelps your agent remember your preferences, project conventions and past decisions across separate sessions using a simple memory index.AgentDB Memory PatternsLets your agent remember conversations and context across sessions, using AgentDB as its persistent memory store.Frequently asked questions
Is it free and local?
Yes. The store lives under ~/.engram/ as JSON and Markdown files, with no cloud account. It has an open license.
Which tools work with it?
Claude Code, Codex, Cursor, Claude Desktop and others. The readme rates evidence for each client differently.
Who approves what is saved?
High-risk items wait for your review. Low and medium writes are absorbed automatically but can be audited and reversed. ENGRAM_APPROVAL=strict gates every write.
Does it send data out?
By default it sends one anonymous usage ping a day. You can turn it off with engram telemetry off or DO_NOT_TRACK=1.
Can it be encrypted?
Optional field-level AES-256-GCM encryption exists for supported profile fields. Files are plain text by default.
How many tools does it have?
19 core tools by default and 40 advanced tools if you set ENGRAM_TOOLS=all.
If it does not work
- βΊRun engram doctor to check the setup, then restart your configured AI tool.
- βΊIf a tool does not see the memory, run engram setup again and confirm the config file it lists.
- βΊUse engram preview --html to see exactly what a caller would receive.
5 new skills a week. 1 minute to read.