Local-first user identity layer syncing preferences and lessons across MCP-compatible AI coding tools with user-controlled governance.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Piia Engram.
get_user_contextStartup** β Load identity + knowledge at session start (supports `token_budget` for context size control)
wrap_up_sessionSession end** β Save insights + sync at session end
memory_storeWriteback** β Unified write endpoint: routes to add_lesson / add_decision / add_playbook by `kind
add_lessonStore a reusable lesson learned
add_decisionRecord a key decision with reasoning
add_playbookRecord an operational playbook (multi-step procedure with trigger keywords)
Tell AI once who you are, how you work, and what "good" means. Claude Code, Codex, Cursor, Windsurf, and other MCP-compatible tools can start from the same AI work identity layer β local files you own, no cloud account, no hidden memory you cannot inspect.
Install Β· See It in Action Β· Supported Tools Β· MCP Tools Β· FAQ
Also listed in: awesome-agents Β· Awesome-MCP-ZH Β· mcpservers.org Β· Cursor Directory Β· ModelScope Β· PulseMCP
TL;DR: piia-engram is a local-first personal AI identity layer. It helps multiple coding agents start from the same understanding of you: your preferences, quality bar, lessons learned, decisions, and project context. It is not an agent memory database; it is the user-owned layer above your tools.
Why not just use native memory? Claude Code, Codex, Cursor, and Windsurf are adding their own memories and rules. Those are useful, but they are scoped to one tool or workspace. piia-engram gives you one portable identity layer above them: local files you own, AI-proposed knowledge you review, and context that can follow you across tools.
Trust model in four lines:
pip, keep the core store on your machine.~/.engram/ as JSON/Markdown.ENGRAM_APPROVAL=strict to gate every write.Want proof? See the live cross-tool continuity proof β a memory written by Claude Code, read back by Codex through one local store β or the one-command reproducible code demo.
And you never have to take that on faith β Memory Lens (engram preview --html) shows exactly what any AI caller would receive, and what governance withheld, before anything is sent:
Above: a real report from a demo store β 4 items exposed; an unreviewed staging note and a lesson containing a credential are withheld, with the secret shown as [REDACTED].
The wizard auto-detects your AI tools β Claude Code, Cursor, Codex, Claude Desktop β lists the exact config files it will touch, and writes the MCP connection after a one-keystroke confirm (every write is backed up first; decline and nothing changes). It previews your identity card, then you restart your configured tool; the first conversation can load your approved context through startup or search tools. (full walkthrough β)
Evidence levels follow the agent client validation runbook: L0 = untested, L1 = installed, L2 = read/search observed, L3 = static file bridge, L4 = cross-client continuity.
| Tool | Integration | Evidence status |
|---|---|---|
| Claude Code | MCP over stdio | L4 partial continuity proof (Claude Code -> Codex) |
| Codex | MCP over stdio | L4 partial continuity proof (Claude Code -> Codex) |
| Cursor | MCP over stdio | L2 setup/read-search evidence path |
| Claude Desktop | MCP over stdio | L1/L2 setup path; client-specific evidence pending |
| Hermes | MCP over stdio | L2 end-to-end verified (hermes-agent 0.15.2, 2026-06-03) |
| OpenClaw | SOUL.md / MEMORY.md / USER.md import and export | L3 static file-bridge evidence |
| ChatGPT / Gemini / Kimi | Markdown identity card fallback | Usable |
| Windsurf | MCP over stdio | Expected to work |
| GitHub Copilot | MCP over stdio | Expected to work |
| Cline | MCP over stdio | Expected to work |
| Roo Code | MCP over stdio | Expected to work |
| Amazon Q | MCP over stdio | Expected to work |
| Augment | MCP over stdio | Expected to work |
| Zed | MCP over stdio | Expected to work |
| Trae | MCP over stdio | Expected to work |
| Tencent CodeBuddy | MCP over stdio | Expected to work |
These are current repository facts from docs/public-facts.json. Public registries and package badges update only during release/publish.
| Current repo / development facts | |
|---|---|
| Version frame | v4.20.0 (verified 2026-09-01; check PyPI and GitHub Releases for the latest published package) |
| Supported AI tools | 16 (evidence level varies by client; see Supported Tools and the validation runbook) |
| MCP tools | 19 Core (loaded by default) + 40 Advanced (opt-in via ENGRAM_TOOLS=all) |
| Knowledge types | 3 (lessons, decisions, playbooks) |
| Test suite | Unit + integration; run pytest tests/ to verify |
Lines in core.py | 1770 (facade; domain logic now lives in focused mixins β see architecture.md) |
| PBKDF2 iterations | 600,000 (OWASP 2023+ floor; legacy 100k still decrypts) |
| Encryption | Optional field-level AES-256-GCM for supported profile fields; local files are plaintext JSON/Markdown by default |
| Cold-start time | < 100 ms typical (local JSON, no network) |
| Network calls by default | 0 for identity and knowledge tools β except optional read_web_content; remote telemetry and feedback require separate explicit opt-in and send counts only (see privacy details) |
Your AI forgets you every time you switch tools or start a new chat. piia-engram fixes the handoff.
Every time you open a new chat window, switch from Claude Code to Codex, update your AI tool, or move into a different project, you're back to zero:
This happens because AI memory today is locked inside each platform. It belongs to the tool, not to you. The tool updates, resets, or gets replaced β and your context disappears with it.
piia-engram gives you a personal identity layer that lives on your machine, independent of any AI tool. You tell it once who you are, how you work, and what you've learned. MCP-compatible tools can read the same approved context. New chat, new tool, new version β your identity stays portable.
piia-engram is not an agent memory database. Tools like Mem0, Zep, and Letta store task context and session history for AI agents. piia-engram stores who you are as a person β your identity, preferences, hard-won lessons, and key decisions. It's a different layer: not what happened in a task, but who is behind every task.
| Without piia-engram | With piia-engram |
|---|---|
| New chat window = start from zero | Configured conversations can load your approved context |
| AI tool updates and your preferences vanish | Your identity lives on your machine, survives any update |
| Switching tools loses accumulated context | Claude Code, Codex, and Cursor read the same memory |
| Past mistakes get repeated | Lessons learned follow you across tools and sessions |
| Memory is locked inside one product | Data stays local, editable, and portable |
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/patdolitse-piia-engram)<a href="https://allmcps.com/mcp/patdolitse-piia-engram"><img src="https://allmcps.com/api/badge/patdolitse-piia-engram?style=directory" alt="Piia Engram on AllMCPs" /></a>