Skip to main content

Claude Memory Kit (CMK). Persistent memory for Claude. Embedded, zero-server.

Project description

claude-memory-kit

Persistent memory for Claude. MCP server with hybrid search (dense + sparse vectors, RRF fusion), SQLite storage, and automatic sensitivity classification.

install

uv tool install claude-memory-kit

Or with pip:

pip install claude-memory-kit

setup

Add to your Claude Code MCP config (~/.claude/mcp.json):

{
  "mcpServers": {
    "memory": {
      "command": "cmk"
    }
  }
}

That's it. Claude will automatically save and recall memories across sessions.

how it works

3 tools exposed to Claude:

  • save: store something worth remembering. gate, person, project, and sensitivity are auto-classified.
  • search: hybrid search across memories (keyword + semantic + graph traversal).
  • forget: remove a memory by ID with a reason.

Claude calls save proactively when it learns something worth keeping (preferences, corrections, commitments, facts about people). No manual intervention needed.

features

  • Hybrid search: dense vectors (fastembed) + sparse vectors (BM25) with Reciprocal Rank Fusion
  • Write gates: behavioral, relational, epistemic, promissory, correction (auto-classified)
  • Memory decay: configurable half-life per gate type, automatic archival
  • Graph traversal: RELATED_TO, CONTRADICTS, FOLLOWS edges between memories
  • Sensitivity classification: Opus-powered privacy detection (safe/sensitive/critical)
  • PII scanning: regex-based detection for API keys, SSNs, credit cards, etc.
  • Identity card: auto-generated summary of who Claude is working with
  • Journal consolidation: automatic compression of old entries into digests

dashboard

CMK includes a web dashboard for managing memories:

cmk serve --port 7749

Then build and run the dashboard (Next.js):

cd dashboard
pnpm install && pnpm dev

Dashboard features: timeline view, search, graph visualization, identity management, rules, API keys, and a privacy review page.

cli

# save and search
cmk remember "user prefers dark mode" --gate behavioral
cmk recall "dark mode"

# maintenance
cmk scan
cmk classify
cmk classify --force
cmk reflect
cmk stats
cmk serve
Command Description
cmk remember Store a memory with auto-classification
cmk recall Search memories
cmk scan PII scan across all memories
cmk classify Opus sensitivity classification
cmk classify --force Re-classify all memories
cmk reflect Consolidate old entries + run decay
cmk stats Storage and memory statistics
cmk serve Start the API server

environment

# required for LLM features
ANTHROPIC_API_KEY=<your-api-key>

# optional: Qdrant Cloud
QDRANT_URL=<your-cluster-url>
QDRANT_API_KEY=<your-key>

# optional: custom storage path
MEMORY_STORE_PATH=~/.claude-memory

See .env.example for all options.

license

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_memory_kit-0.1.4.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_memory_kit-0.1.4-py3-none-any.whl (51.4 kB view details)

Uploaded Python 3

File details

Details for the file claude_memory_kit-0.1.4.tar.gz.

File metadata

  • Download URL: claude_memory_kit-0.1.4.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for claude_memory_kit-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a65e530c037a1f7abd630794967859105ec2236207ce6563d5599a2a0c6f9327
MD5 81f27dbdf3bfa96170d2299f0ec6d260
BLAKE2b-256 1111798f49dfd450dd4be697ff11f57f3aefd63f209923045ad71be939ab8262

See more details on using hashes here.

File details

Details for the file claude_memory_kit-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: claude_memory_kit-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 51.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for claude_memory_kit-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3e71abeaa70fe5a59407a3a651fa9f260383de300b5b647b441b8262e50b9ba9
MD5 5a78400420483f88a32f4de85ff3e86e
BLAKE2b-256 1d4ade488273cfcbba64a1e972080527d70d96f94cb4131bd29c52412e266457

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page