Skip to main content

mnemo-db

PyPI distribution of Mnemo — an MCP-native memory database for AI agents.

pip install mnemo-db

The package directory and import path are still mnemo — only the PyPI distribution name has the -db suffix because the unqualified mnemo is held by an unrelated 2021 notebook project. Your code keeps saying:

from mnemo import MnemoClient

Quick start

from mnemo import MnemoClient

client = MnemoClient(db_path="agent.mnemo.db", agent_id="agent-1")

# Three primitives carry most workflows.
result = client.remember("The user prefers dark mode", tags=["preference"])
memories = client.recall("user preferences", limit=5)
client.forget([result["id"]])

# Mem0-compatible aliases also work:
# client.add(...), client.search(...), client.delete(...)

# Write provenance + FORGET BY PROVENANCE — audit who wrote what, then clean up.
prov = client.write_provenance(result["id"])        # who wrote it, under what authority
client.writes_by_principal("agent-1")                # everything a principal wrote
client.forget_by_principal("agent-1", "hard_delete") # revoke it all (audit trail survives)

# Each provenance record has a `flags` list. On remember(), content shaped like a
# provider opaque reasoning payload (arXiv:2608.09867 — these have leaked secrets
# in the wild) is flagged "opaque_reasoning_payload" and RECORDED, not rejected,
# so you can revoke it by principal/session later. It detects a SHAPE — not proof
# a secret is present — and never decodes the content.
if "opaque_reasoning_payload" in (prov or {}).get("flags", []):
    client.forget_by_session(prov["session_id"], "redact")

What's in the box

Surface What
MnemoClient Native PyO3 binding to the Rust engine — DuckDB storage, USearch HNSW vector index, Tantivy full-text index, hybrid retrieval, hash-chained audit log
MnemoMemoryToolServer Anthropic memory_20250818 6-op handler. pip install 'mnemo-db[anthropic-memory-tool]'
MnemoLettaShared Letta-style Conversations adapter for shared agent memory
S3Workspace / CloudflareR2Workspace OpenAI Agents SDK GA snapshot store backends. pip install 'mnemo-db[openai-sandbox-s3]' or [openai-sandbox-r2]
MnemoAgentMemory (OpenAI), Mem0Compat, MnemoCheckpointer (LangGraph 1.x — ASMDCheckpointer is the back-compat alias), 12 more Drop-in framework integrations. Install the matching extra.

Optional extras

pip install 'mnemo-db[langgraph]'              # LangGraph checkpoint
pip install 'mnemo-db[crewai]'                 # CrewAI memory
pip install 'mnemo-db[openai-agents]'          # OpenAI Agents SDK
pip install 'mnemo-db[claude]'                 # Claude Agent SDK
pip install 'mnemo-db[anthropic-memory-tool]'  # memory_20250818
pip install 'mnemo-db[openai-sandbox-s3]'      # S3 workspace backend
pip install 'mnemo-db[openai-sandbox-r2]'      # Cloudflare R2 workspace backend
pip install 'mnemo-db[benchmark]'              # LoCoMo / LongMemEval harness

Each extra fails closed if not installed — from mnemo import MnemoMemoryToolServer will raise ImportError cleanly when [anthropic-memory-tool] isn't on the path.

License + source

Source: https://github.com/sattyamjjain/mnemo. Apache-2.0.

Documentation: https://github.com/sattyamjjain/mnemo#readme. Issues: https://github.com/sattyamjjain/mnemo/issues.

Download files

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

Source Distribution

mnemo_db-0.5.24.tar.gz (386.2 kB view details)

Uploaded Source

Built Distributions

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

mnemo_db-0.5.24-cp313-cp313-manylinux_2_28_x86_64.whl (24.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

mnemo_db-0.5.24-cp313-cp313-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mnemo_db-0.5.24-cp312-cp312-manylinux_2_28_x86_64.whl (24.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

mnemo_db-0.5.24-cp312-cp312-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mnemo_db-0.5.24-cp311-cp311-manylinux_2_28_x86_64.whl (24.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

mnemo_db-0.5.24-cp311-cp311-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mnemo_db-0.5.24-cp310-cp310-manylinux_2_28_x86_64.whl (24.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

mnemo_db-0.5.24-cp310-cp310-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file mnemo_db-0.5.24.tar.gz.

File metadata

  • Download URL: mnemo_db-0.5.24.tar.gz
  • Upload date:
  • Size: 386.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mnemo_db-0.5.24.tar.gz
Algorithm Hash digest
SHA256 552674ad07259c54734a94b44f9a8acff5873f3895221e0d9b22db4938d78831
MD5 17740b45eec9625715542eafebb085db
BLAKE2b-256 c63fdc9ffb6b0f1e8fdc5bb73d4bf6dc84234afe556401382b38d612f5d69e7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.24.tar.gz:

Publisher: pypi-publish.yml on sattyamjjain/mnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mnemo_db-0.5.24-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.24-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 756327b06ece7d3f743cf70628889180046e6be7cc41ea9336c299e7306c680f
MD5 04530136babd6b89145dc2571e6204ce
BLAKE2b-256 20e772e9da9835f2ef7739ce7f2bf78a4ce334d3ee4a6f7e6d132030064b1ca9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.24-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: pypi-publish.yml on sattyamjjain/mnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mnemo_db-0.5.24-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.24-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39276016b11da082ed52d21f8a116ee760e7d6249c120d31f74214c9fb6a8393
MD5 f8749f5dc21bc47768ff2029b90745b3
BLAKE2b-256 8e4dff488d26c450fc605adca66f9d7a6203988047046ed91e89617f16ce996f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.24-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: pypi-publish.yml on sattyamjjain/mnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mnemo_db-0.5.24-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.24-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3c684c5118660f72d12afca7f8f28b9c616988c966cf7de6a1ed775a32bb6a9
MD5 1d3de93dce1c889af33cfa9666bd5697
BLAKE2b-256 e64a91be23c41697785c85765ba0d2803adc47a2627854ab95e3e774797b2f7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.24-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: pypi-publish.yml on sattyamjjain/mnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mnemo_db-0.5.24-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.24-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b1c6fa3e5d26f98afa04e5717d5e5298bc86999c3ab8acbb8ffeb06e6bcedd7
MD5 c981304802a21ef9bc8fa99056033f6d
BLAKE2b-256 9e8719ecb4f88e35545fdcb8816a9600159c40e68015de9092c3866312baf424

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.24-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: pypi-publish.yml on sattyamjjain/mnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mnemo_db-0.5.24-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.24-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 572f9cd1015d1959f8d9d29fd94792e777186270e8b587bfdb8b031637cc9cc8
MD5 a2d6a25d24c56ffa8c59890d66b74ac6
BLAKE2b-256 f924972a94069c1bd5587326d52d6b5da17f6aab7ab3a25faa3cf5b24d381c0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.24-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: pypi-publish.yml on sattyamjjain/mnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mnemo_db-0.5.24-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.24-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f232f1517d4919185ec2f46b3686936e543ce0f8e98a1e1c09513c239a70097
MD5 956054ef0800fe7542b830dde24dd0c7
BLAKE2b-256 68877b06fe502b27a6ef461623c29b484067037105f1d0aff7026aee864a16d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.24-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: pypi-publish.yml on sattyamjjain/mnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mnemo_db-0.5.24-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.24-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b8016c5188f030cbd509a61b295317f6b5116d6ddde599724ff6c62cdf01f41a
MD5 e369a21e85933f235b79bf99e6678765
BLAKE2b-256 63fdb482f96d441f09ab61e76f34642bb6499f27a1fccda9d3f7b7f3d0aec1f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.24-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: pypi-publish.yml on sattyamjjain/mnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mnemo_db-0.5.24-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.24-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7cdfebca608faf49c066ff20aaf3a089a9f160c450a879737c698187d10ac41d
MD5 cf4afcca238b44a84bdeb80d59c11336
BLAKE2b-256 e49508c4fff4f38d40144c3be9d47d0067383720217cade03357a8fac134f4fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.24-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: pypi-publish.yml on sattyamjjain/mnemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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