Shared Memory

•

Provide a persistent, multi-tenant long-term memory service for AI agents backed by plain Markdown files, Git versioning, and token-based access control.

Shared Memory is a self-hosted Model Context Protocol (MCP) service that breaks AI agents out of isolated silos by providing a shared, cross-session, and cross-machine knowledge repository. Instead of relying on complex vector databases, it stores each memory entry as a human-readable Markdown file complete with YAML frontmatter, utilizing Git for disaster recovery and version history. Write collisions are eliminated through a strict single-writer FIFO queue, and permissions are enforced at the server level via Bearer tokens across company, group, and personal libraries. Designed to run over Streamable HTTP without external LLM or API dependencies, it delivers deterministic substring search, session-based task scoping, and a built-in visual inspection dashboard.

主要功能

01Selective Git versioning and local history snapshots (.history/) for rollbacks, disaster recovery, and audit trails
02Human-readable Markdown storage with YAML frontmatter, requiring zero external LLM or vector database dependencies
03Single-writer FIFO write queue ensuring strict write serialization without deadlocks or silent overwrites
040 GitHub stars
05Three-tier multi-tenant library structure (Company, Group, Personal) with server-enforced, token-based permissions
06Streamable HTTP MCP endpoint complemented by a lightweight, read-only web dashboard for timeline inspection and search

使用案例

01Maintaining a shared, team-wide agent memory pool with granular permission boundaries preventing unauthorized edits
02Isolating transient task-specific scratchpads from long-term verified facts to prevent agent hallucinations
03Synchronizing context, engineering decisions, and workspace knowledge across disparate AI agents like Cursor and Claude Code