memory-bridge
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.
Cowork Desktop
Add to your config file (Settings > Developer > Edit Config):
{
"mcpServers": {
"memory-bridge": {
"command": "uvx",
"args": ["claude-memory-bridge"]
}
}
}
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
Metadata
Release files for claude-memory-bridge 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| claude_memory_bridge-0.1.1.tar.gz | 22.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claude_memory_bridge-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.4 kB
Release files / claude_memory_bridge-0.1.1.tar.gz
| Download URL | claude_memory_bridge-0.1.1.tar.gz |
|---|---|
| Size | 22.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3749e36eed20429a918e9daa142c701641e545027888075115cfb7512bd5c7fb
|
|
BLAKE2b-256 checksum How to use checksums |
9acf28d136189b2f61386cc4a88b408a721bd9a4cc85671c1473c6c03815c838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.12.2 HTTPX/0.28.1
|
Release files / claude_memory_bridge-0.1.1-py3-none-any.whl
| Download URL | claude_memory_bridge-0.1.1-py3-none-any.whl |
|---|---|
| Size | 22.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
904e41ac027b1f390a09c853e1ecc36a93c7c3ecf83da5f1a75a85dd8711cf52
|
|
BLAKE2b-256 checksum How to use checksums |
736619356dc3a51440000ba9cb43205e8c5f57090f23725488085b0fdbd68f5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.12.2 HTTPX/0.28.1
|
Security for claude-memory-bridge 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.