mcp-backpack 🎒
A persistent, portable memory layer for Claude Code.
Website: mcpbackpack.com
mcp-backpack gives your AI agent a "hard drive." It creates a project-scoped database in your working directory, allowing Claude to remember context, architectural decisions, and to-do lists even after you clear the context window or restart your terminal.
Unlike other memory tools, Backpack is designed for travel. You can "pack" your memory into a JSON file, commit it to Git, and "unpack" it on a different machine.
Features
- 💾 Persist Context: Save generic thoughts, summaries, and state to a local SQLite database (
.backpack_memory). - 📂 Project Scoped: Automatically detects which project you are working in and creates a separate memory silo for it.
- ✈️ Git Syncing: Export your database to
backpack.jsonto share context with your team or sync between your work laptop and home PC. - ⚡ Zero Config: Built on
diskcacheandmcp. No running servers or Docker containers required.
Installation
Option 1: Install via PyPI (Recommended)
You can add this tool directly to Claude Code using uvx.
claude mcp add backpack -- uvx mcp-backpack
Option 2: Run from Source (Local Development)
If you have cloned this repository and want to run it locally:
# Assuming you are in the repo root
claude mcp add backpack -- uvx --from . mcp-backpack
Configuration
To prevent committing your local binary database to Git, you must update your .gitignore.
Run this command in your project root:
echo ".backpack_memory/" >> .gitignore
Note: Do NOT ignore
backpack.jsonif you intend to use the syncing feature!
usage
Once installed, simply talk to Claude. The tool exposes the following capabilities:
1. Daily Workflow
- Save a thought: "Put the current API schema in the backpack as
schema:auth." - Retrieve a thought: "Check the backpack for
schema:auth." - Search: "Rummage through the backpack for anything related to 'database'."
- List all: "List contents of the backpack."
2. The "Context Compaction" Protocol
When Claude's context window fills up, use the backpack to save your state before clearing:
"Before we compact context, please save our current
task:next_stepsandsession:summaryto the backpack."
3. Syncing Across Machines (Travel Mode) ✈️
Moving from your work computer to your personal laptop?
- At Work: "Pack for travel." (Creates
backpack.json) - Git:
git add backpack.json && git commit -m "sync memory" && git push - At Home:
git pull - Claude: "Unpack from travel."
Tools API
The server exposes the following tools to the LLM:
| Tool | Description |
|---|---|
put_in_backpack |
Saves a key-value pair to the local .backpack_memory database. |
check_backpack |
Retrieves a specific value by key. |
rummage_backpack |
Fuzzy searches keys and values containing a specific string. |
list_contents |
Lists all keys currently stored in the project's backpack. |
toss_out |
Permanently deletes a key from memory. |
pack_for_travel |
Exports the binary database to a human-readable backpack.json. |
unpack_from_travel |
Imports backpack.json into the active memory. |
License
MIT License
Metadata
Release files for mcp-backpack 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_backpack-0.2.0.tar.gz | 62.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_backpack-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.6 kB
Release files / mcp_backpack-0.2.0.tar.gz
| Download URL | mcp_backpack-0.2.0.tar.gz |
|---|---|
| Size | 62.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15a0272cab7d3c2d346cdc7a73f40521c67370032e7b2a07080d1366696b52ea
|
|
BLAKE2b-256 checksum How to use checksums |
164931a4d93a467719e9e1e7f790db59883afbe72a302f38c65b2134b18cdaf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / mcp_backpack-0.2.0-py3-none-any.whl
| Download URL | mcp_backpack-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b53c3c59f9d1274fb9998e934558247d7ca9037affc1c33f1d65d32f7bd5d16b
|
|
BLAKE2b-256 checksum How to use checksums |
e112eec4e0b17e7e995736890f7a0ecdfa45482d9ade177f1c3858c2577bcdda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|