Engram MCP
Supports cross-platform memory continuity for Android workflows through remote connection options.
Enables CrewAI agents to store and retrieve durable memories, maintain project context, and hand off task state across sessions.
Supports cross-platform memory continuity for iOS workflows through remote connection options.
Enables LangChain agents to use Engram memory operations for durable recall, cross-session continuity, and agent handoffs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
๐ง Engram 2.1 โ Production Reliability, Continuity, and Security Hardening
The Universal, Portable Memory Layer for AI Agents โ powered by Walrus.
Engram enables authorized AI agents (Claude, Cursor, Copilot, Antigravity, Gemini, CrewAI, AutoGen, LangChain) to remember, retrieve, understand, and seamlessly continue useful work across different models, platforms, devices, and sessions.
The user never has to repeatedly explain who they are, their technology stack, previous decisions, architectural choices, or what happened in previous sessions.
โก Engram 2.1 Production Hardening Pillars
1. Security & Trust Hardening (Zero-Trust Architecture)
Fail-Closed Secrets: Automatically fails closed in production if
ENGRAM_SIGNING_SECRETis missing or insecure (<16 chars).Zero-Downtime Secret Rotation: Supports seamless cryptographic key rotation via
ENGRAM_PREVIOUS_SIGNING_SECRET.Real-Time Token Revocation: Instant revocation of
eng_live_API keys across both REST and MCP protocols.Anti-IDOR Authorization: Centralized server-side team membership validation (
authorizeMemoryAccess) prevents unauthorized cross-tenant data access.Credential Redaction: Automatic redaction of raw tokens, private keys, and query parameters from URLs and application logs.
2. Storage Reliability & Data Integrity
Explicit Persistence States: Truthful states (
confirmed_durable,pending,local_mock,failed,recovery_required). Engram never falsely claims on-chain anchoring when unanchored.Idempotent Write-Ahead Pipeline: Cryptographic idempotency keys prevent duplicate writes, conserving on-chain storage units.
Resilient Retry Queue: Automatic exponential backoff with jitter and background recovery processing for transient storage outages.
Cryptographic Content Hashing: Deterministic SHA-256 verification and runtime tamper detection.
Truthful Retention Contracts: Accurate representation of decentralized blob storage lifecycle and Sui epoch expiration.
3. Intelligent Memory Engine
5 Structured Memory Categories:
episodic(events/experiences),semantic(facts/knowledge),procedural(rules/workflows),project(decisions/architecture/progress),relational(people/teams/entities).8-Stage Lifecycle Pipeline:
CAPTUREโCLASSIFYโCONSOLIDATEโVALIDATEโUPDATEโRETRIEVEโDECAYโFORGET.Hybrid Retrieval Scoring: Blends semantic query matching (45%), entity graph link analysis (30%), recency half-life (15%), and importance weighting (10%).
Smart Conflict Resolution: Automatically identifies when newer statements update older preferences (e.g. migrating backend stack from Python to TypeScript) and supersedes outdated memories while preserving audit history.
4. Continuous Context & Cross-Agent Handoffs
Zero-Cold-Start Agent Handoffs: Departing agents record structured task states, handoff notes, next actions, and unresolved questions. Any subsequent agent picks up work immediately.
Verifiable Snapshots: Export and restore project context using tamper-proof SHA-256 snapshot checksums.
Quick-Resume Brief: Generates concise, agent-ready Markdown injected directly into any fresh agent session.
5. Multi-Language SDK & Agent Integrations
Python SDK (
engram-walrus, install from this repo): standard-library Python client (from engram import remember, recall, handoff) with provenance tracking.Model Context Protocol (MCP): Serverless HTTP endpoint (
/api/mcp) and stdio CLI package (engram-walrus) exposingengram_remember,engram_recall,engram_tidy,engram_handoff, andengram_snapshot.Cross-Platform: Works with Claude Desktop, Cursor IDE, Google Antigravity, Gemini CLI, Windsurf, ChatGPT, and iOS/Android workflows.
Related MCP server: memocat-mcp
๐ Quick Start
1. Python SDK
pip install "git+https://github.com/Ipramking/engram#subdirectory=packages/engram-py"from engram import remember, recall, handoff
# Remember a durable architectural choice
remember("We use Supabase PostgreSQL for metadata and Walrus for decentralized blob storage", type="decision")
# Recall before answering questions that depend on past context
memories = recall("What database do we use?")
for m in memories:
print(f"[{m.type}] {m.text}")
# Zero-cold-start agent handoff
handoff(
project_id="proj_alpha",
from_agent="Claude Code",
to_agent="Cursor IDE",
task_state="Milestone 3 complete",
notes="Finished continuity engine and verified 13/13 tests.",
next_actions=["Deploy to Vercel"]
)2. Model Context Protocol (MCP) Setup
Desktop and terminal apps (Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI, Codex): sign in once, then add a config with no key in it.
npx engram-walrus login # approve the code in your browser; a key is saved for this device
npx engram-walrus doctor # optional: confirms key, server and usage{ "mcpServers": { "engram": { "command": "npx", "args": ["-y", "engram-walrus"] } } }Web and phone apps (Claude connectors, ChatGPT developer mode): paste your connection link from the dashboard's Connect page, https://engram-pearl.vercel.app/mcp?token=YOUR_KEY. Apps that accept a remote URL (Cursor url, VS Code type: http, Windsurf serverUrl, Gemini CLI httpUrl) can use the same link.
3. Local Development & Web Dashboard
pnpm install
# Run Vite web dashboard + local API server
pnpm dev
# Build for production
pnpm run build๐งช Comprehensive Automated Test Suites
Engram 2.1 maintains 100% passing test coverage across 78 automated tests and benchmarks:
pnpm run test:allSuite | Focus Area | Passing Tests |
| MCP Package Protocol & Utilities | 5 / 5 |
| CLI & NPM Subprocess Integration | PASS |
| Conflict Engine & Walrus Epoch Staking | PASS |
| Fail-Closed Secrets, Anti-IDOR, Token Revocation | 14 / 14 |
| Idempotency, Retries, SHA-256 Hashing, Retention | 10 / 10 |
| 5 Categories, Lifecycle, Hybrid Scoring, Conflict | 10 / 10 |
| Context Tracking, Handoffs, Snapshots, REST/MCP | 13 / 13 |
| Scientific Retrieval Benchmark (Recall@k, MRR, nDCG) | PASS (MRR 1.000) |
| Workstreams AโF: Continuity, Leases, Parity, Security | 20 / 20 |
| Python SDK Models, Fallback, Provenance | 5 / 5 |
Total Test Suite | All Core Verification Suites & Evaluation Benchmarks | 78 / 78 PASS |
๐ Repository Architecture
engram/
โโโ api/ # Serverless REST & MCP endpoints (Vercel / Express)
โ โโโ _lib/ # Core engineering engines
โ โ โโโ auth.ts # Centralized authentication & IDOR authorization
โ โ โโโ continuity.ts # Cross-agent handoff & context snapshot engine
โ โ โโโ intelligence.ts # 5-category memory lifecycle & hybrid retrieval
โ โ โโโ storage.ts # Idempotent write-ahead retry queue & sha256 hashing
โ โ โโโ token.ts # Dynamic HMAC rotation & token lifecycle
โ โ โโโ security.ts # Secret scanners & credential URL redaction
โ โโโ continuity.ts # REST endpoints for cross-agent continuity
โ โโโ remember.ts # Intelligent memory persistence endpoint
โ โโโ recall.ts # Hybrid semantic retrieval endpoint
โ โโโ storage.ts # Storage queue status & recovery endpoint
โ โโโ mcp.ts # Streamable HTTP MCP server (5 registered tools)
โโโ packages/
โ โโโ engram-mcp/ # engram-walrus NPM package (CLI + MCP proxy)
โ โโโ engram-py/ # engram-walrus Python SDK
โโโ scripts/ # Automated regression test harnesses
โโโ src/ # React 19 + Tailwind v4 Web Application
โโโ server/ # Local Express development server๐ License
MIT License. Built for the decentralized future of autonomous AI agents.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
Memory for AI agent teams across tools, sessions, repositories, and teammates.
Shared, scoped, reviewable team memory for AI coding agents.
Shared, permission-aware memory for teams and their AI: recall, save, and keep knowledge current.
Persistent memory for AI agents. Search, store, and recall across sessions.
Related MCP Servers
- AlicenseBqualityBmaintenanceOpen, local-first engram memory for AI agents: read, correct, and delete what your agent remembers. Works across Claude Code, Hermes, OpenClaw, and Cursor over MCP.392,869,983 npm315Apache 2.0
- AlicenseAqualityBmaintenanceGives AI agents private, persistent, semantically searchable long-term memory with RAG, governed multi-agent scopes, and real-time memory-change subscriptions.2438 PyPI25MIT
- AlicenseAqualityCmaintenanceProvides persistent, cross-session memory for AI agents, letting them store, search, and manage memories with tools like remember, recall, forget, list, summarize, and import/export.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to maintain persistent memory across sessions with verifiable source receipts, supporting explicit remember, recall, inspect, correct, and forget operations.13 npm45Apache 2.0