Piia Engram logo

Piia Engram

by Patdolitse

Stores user identity, preferences, lessons, decisions, and project context locally for reuse across MCP coding tools.

Install Piia Engram

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "patdolitse-piia-engram": {
      "command": "uvx",
      "args": [
        "--from",
        "piia-engram==4.30.0",
        "piia-engram-mcp",
        "--transport",
        "stdio"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio patdolitse-piia-engram -- uvx --from piia-engram==4.30.0 piia-engram-mcp --transport stdio

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

Patdolitse/piia-engram provides a local, user-owned identity and memory layer for MCP-compatible coding tools. It stores identity data, lessons, decisions, playbooks, project snapshots, and session context under local files, then exposes retrieval, write, governance, and diagnostic tools over MCP. Use it when several AI tools need consistent user preferences and project history, or when sessions need resumable context without a cloud account. Writes can enter review queues, while approved knowledge is selectively returned according to governance and budget settings.

Use cases

  • Share approved identity and work preferences across Claude Code, Codex, Cursor, and other MCP clients
  • Retrieve project-specific lessons and decisions during development
  • Save reusable procedures as reviewed playbooks
  • Resume interrupted work with recent context and project handoff briefs

Key features

  • Local JSON and Markdown knowledge store
  • Tiered startup context with token budgets
  • Governed lessons, decisions, playbooks, and identity proposals
  • Cross-tool project snapshots and resume briefs
  • Revision history, supersession checks, and diagnostics
  • Optional AES-256-GCM encryption

Tools19

What Piia Engram lets your agent do. Expand a tool for its parameters.

Verified live~9.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

35/36 checks healthy over the last 113d

What it can do

From the 19 tools this server returned when we ran it; 19 declare their own safety hints.

Runs commands · 2Can delete or modify data · 2Makes changes · 8Handles credentials · 3Makes network requests · 1Read-only tools · 10
Network at startup2 connections
Files written at startup24

Observed 2026-12-01 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · piia-engram (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars166Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Tools exposed19Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Piia Engram works

What Patdolitse/piia-engram does

Patdolitse/piia-engram keeps a portable AI work identity on the user's machine. Its store covers profile information, work preferences, quality standards, trust boundaries, lessons, decisions, operational playbooks, project snapshots, recent conversation context, and daily logs. MCP clients can retrieve this information at session startup, search it during a task, save new project details, and produce a handoff brief when work moves between tools.

The repository describes three primary knowledge types: lessons, decisions, and playbooks. Lessons capture reusable findings, decisions record chosen options and their reasoning, and playbooks contain ordered procedures with triggers and optional tool dependencies. A Markdown identity card can be exported for use outside the MCP connection.

How it works

The package runs locally and uses MCP over stdio. Identity and knowledge are stored beneath ~/.engram/ as JSON and Markdown files. The core server exposes 19 tools, including startup context retrieval, project-specific lookup, keyword search, knowledge writes, identity proposals, session wrap-up, resume briefs, health checks, and daily-log access. Advanced tools can be enabled with ENGRAM_TOOLS=all.

Startup context supports quick, standard, and full levels. Quick reads identity and preferences with minimal work; standard adds quality standards, domains, selected lessons and decisions, and a project snapshot; full adds conflict and freshness or staging warnings. Token budgets can trim lower-priority sections. Retrieval tools distinguish reviewed current entries from pending, superseded, and archived material.

Writes follow governance rules. MCP-created playbooks and identity changes become pending proposals, while other writes depend on the configured approval policy. Replacement proposals require the expected source version, and the old entry remains active until approval. ENGRAM_APPROVAL=strict can require review for every write. Memory Lens can preview what governance would expose or withhold before it is sent to an AI caller.

Setup and configuration

Install the Python package and run the setup wizard:

Terminal
pip install piia-engram
engram setup

The wizard detects supported client configurations, shows the files it plans to modify, creates backups, and asks for confirmation. Non-interactive setup is available for agents:

bash
engram setup --non-interactive --json
engram setup --non-interactive --apply
engram doctor --json

Use --clients cursor,codex to restrict client configuration and --lang zh|en to select setup output. Without --apply, setup remains in plan mode and does not alter the Engram store, home directory, or client configurations. Restart configured clients after applying the connection. The package requires Python 3.10 or newer.

Tools and capabilities

  • Load tiered user context with optional project path, prompt matching, and token limits.
  • Export a portable Markdown identity card.
  • Read, save, search, recommend, revise, and inspect the history of lessons, decisions, and playbooks.
  • Read and update project snapshots, recent context, daily logs, and cross-tool resume briefs.
  • Wrap up a session by extracting knowledge and optionally saving project state.
  • Diagnose stale knowledge, fragmented data, conflicting decisions, and identity issues.
  • Apply review, provenance, supersession, idempotency, and owner-only access controls.

Limitations and notes

Context retrieval does not scan or import other AI tools' files. Importing those memories requires the user to run engram import-memories in a terminal. Resume records and session snapshots can provide continuity, but they are not reviewed knowledge and do not authorize actions.

Aggregate recall can be owner-only when governance is enabled. Full playbook steps are not placed in recall bundles; optional playbook pointers contain limited metadata and previews. The repository lists client evidence at different levels: Claude Code and Codex have a partial cross-tool continuity proof, Cursor has setup and read-search evidence, and several other clients are marked expected to work rather than fully validated.

The project is licensed under AGPL v3.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Piia Engram

Patdolitse/piia-engram is an MCP server that connects AI coding tools to a local store of user identity, preferences, lessons, decisions, playbooks, project snapshots, and session context. Its main tools load context, search and write knowledge, export identity cards, resume work, save project state, and check memory health across MCP clients.

Install it with `pip install piia-engram`, then run `engram setup`. The wizard detects supported clients, previews configuration changes, backs up files, and applies the MCP connection after confirmation. For agent-driven setup, use the non-interactive plan and apply commands, then restart configured clients.

Yes, Cursor is listed as an MCP-over-stdio integration. The project provides a setup and read-search evidence path for Cursor. You can restrict automatic setup to Cursor with `engram setup --clients cursor`, and the server can share the same local identity and knowledge store with other configured clients.

It applies governance to local writes, with high-risk items waiting for review and `ENGRAM_APPROVAL=strict` available to gate every write. Identity changes and MCP-created playbooks are pending proposals, while replacements require an expected version. Approved, pending, superseded, and archived knowledge are handled separately.

Call `get_resume_brief` when continuing prior work or switching tools. It can combine identity, project state, daily activity, recent context, and relevant lessons or decisions into one bounded response. Use `get_recent_context` for recent conversation records or `get_daily_log` for a human-readable project timeline.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPiia Engram AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/patdolitse-piia-engram?style=directory)](https://allmcps.com/mcp/patdolitse-piia-engram)
HTML Embed
<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>