mcpso icon indicating copy to clipboard operation
mcpso copied to clipboard

[Submit] Memory Anchor — Persistent memory MCP server for AI coding assistants

Open pokibao opened this issue 9 months ago • 0 comments

Memory Anchor

Repo: https://github.com/bao243092078-crypto/memory-anchor Category: Knowledge & Memory Language: Python Transport: stdio License: MIT

Description

Persistent memory MCP server for AI coding assistants (Claude Code, Cursor, Windsurf). Features a 5-layer memory model (identity → working memory → episodic → semantic → procedural), semantic search via FastEmbed, cross-session context recovery, and checkpoint/resume for interrupted tasks. Zero cloud, local-first (SQLite + FastEmbed).

Key Features

  • 5-layer cognitive memory model (L0 Identity → L4 Procedural)
  • Hybrid search: semantic (FastEmbed all-MiniLM-L6-v2) + keyword (SQLite FTS5) + RRF fusion
  • Write dedup via cosine similarity (> 0.92 threshold)
  • Checkpoint/resume for interrupted coding sessions
  • Cold storage (JSONL append-only, monthly split)
  • CJK bigram tokenizer for Chinese/Japanese/Korean support
  • Zero cloud dependency, fully local

MCP Tools

Tool Purpose
search_rules Semantic + keyword hybrid search
add_rule Write memory with dedup
get_context Context snapshot
save_checkpoint Save task checkpoint
search_checkpoints Resume interrupted tasks
propose_change Propose L0 identity change (3x approval)
approve_change Approve L0 change

Install

uv pip install memory-anchor

pokibao avatar Feb 25 '26 15:02 pokibao