Memory Bridge
БесплатноНе проверенCross-project memory sharing for Claude Code and Cowork. Stop teaching Claude the same thing twice.
Описание
Cross-project memory sharing for Claude Code and Cowork. Stop teaching Claude the same thing twice.
README
Cross-project memory sharing for Claude Code and Cowork. Stop teaching Claude the same thing twice.
Claude's memory is project-isolated. Teach it "use pnpm" in project A, repeat yourself in project B. memory-bridge adds a shared layer — namespaces — between global and project scope. Solves #36561 and #39195.
Global ~/.claude/CLAUDE.md (Claude native)
Namespace ~/.claude/shared-memory/<ns>/*.md (memory-bridge)
Project ~/.claude/projects/<proj>/memory/*.md (Claude native)
Install
Claude Code (one command)
claude mcp add memory-bridge -- uvx claude-memory-bridge
Done. No clone, no config files. Requires uv (curl -LsSf https://astral.sh/uv/install.sh | sh).
Cowork Desktop
Add to your config file (Settings > Developer > Edit Config):
{
"mcpServers": {
"memory-bridge": {
"command": "uvx",
"args": ["claude-memory-bridge"]
}
}
}
Requires uv. Then restart Cowork.
Manual install (advanced)
git clone https://github.com/LewenW/claude-memory-bridge.git
cd claude-memory-bridge
pip install -e .
python scripts/install.py
Tools
| Tool | What it does |
|---|---|
search_memories |
Search across all projects and shared namespaces |
promote_memory |
Move a memory from project to shared namespace |
sync_memory |
Copy a memory to specific projects |
list_shared_memories |
Browse namespace contents |
manage_namespaces |
Create, delete, subscribe, unsubscribe |
get_memory_health |
Find duplicates, stale entries, broken indexes |
Quick start
In a Claude Code or Cowork session:
# Create a namespace
"Create a shared namespace called 'frontend' for React conventions"
# Share knowledge
"Promote 'Use pnpm, not npm' to the frontend namespace"
# Subscribe a project
"Subscribe my dashboard project to the frontend namespace"
# Search across everything
"Search memories for pnpm"
Client compatibility
| Client | Auto | Manual |
|---|---|---|
| Claude Code (CLI) | Yes | Yes |
| Cowork — Code mode | Yes | Yes |
| Cowork — Cowork mode | :( | Yes — mention "memory-bridge" or tool name |
Cowork mode loads the MCP tools but doesn't inject server instructions, so Claude won't use them unprompted. Workaround: say "use search_memories" or mention "memory-bridge". This will work automatically once Cowork supports MCP instructions.
How it works
- Reads/writes Claude's native
~/.claude/projects/*/memory/*.mddirectly — no database - Shared memories in
~/.claude/shared-memory/<namespace>/ registry.jsontracks namespace subscriptions- Word-boundary TF-IDF search scoring
- Trigram Jaccard similarity for duplicate detection (threshold 0.45)
Uninstall
claude mcp remove memory-bridge # Claude Code
Or remove the memory-bridge entry from your Cowork config file.
Project structure
src/memory_bridge/
├── server.py MCP server, 6 tools
├── config.py Paths + constants
├── models.py Dataclasses
├── store/
│ ├── base.py MemoryStore interface
│ └── filesystem.py File I/O + keyword search
└── engine/
├── retriever.py Cross-project search
├── promoter.py Project → namespace promotion
├── namespace_manager.py Namespace CRUD
└── health_analyzer.py Dedup + staleness + index audit
License
MIT
Установить Memory Bridge в Claude Desktop, Claude Code, Cursor
unyly install memory-bridgeСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add memory-bridge -- uvx claude-memory-bridgeFAQ
Memory Bridge MCP бесплатный?
Да, Memory Bridge MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Memory Bridge?
Нет, Memory Bridge работает без API-ключей и переменных окружения.
Memory Bridge — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Memory Bridge в Claude Desktop, Claude Code или Cursor?
Открой Memory Bridge на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Memory Bridge with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
