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.25.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.25-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.25-cp313-cp313-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mnemo_db-0.5.25-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.25-cp312-cp312-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mnemo_db-0.5.25-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.25-cp311-cp311-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mnemo_db-0.5.25-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.25-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.25.tar.gz.

File metadata

  • Download URL: mnemo_db-0.5.25.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.25.tar.gz
Algorithm Hash digest
SHA256 828c41e299751ac1ee612eb29ba6cf7f8045426a9de89c66190a33db1bdffcaf
MD5 0358c2f0f576f1a083b705347dcb15e1
BLAKE2b-256 2c3f3610bafdcd83bc09009d413c3db735c2b182d842177d6daf913e87ee7b78

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.25.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.25-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.25-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 132b397459222128528c03b3da2004c3cc48c1357e09db90163cefaee71944d2
MD5 dcef1ffac6af48610923169156e2d6bf
BLAKE2b-256 e34115c6a6cd66babc46b2ad8f74cb46d17f14b4b8f1404aba039eb1a4bea869

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.25-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.25-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.25-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef77c0ed40c0dcc30fc0a4358f333f67f40f014d522df90603efa7ba0be35194
MD5 1fab61887f622d8c4781c915c9877c71
BLAKE2b-256 8c7d5ca758f31fea14ec4aee9730e00c8dc17766e601e8523104bca066e9e395

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.25-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.25-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.25-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c5648f748031d9ddc556171000ae60fb5533d87292d7a9acd921b1b042a05ff0
MD5 bde48a4f08f5a83db2b9124d79029c0f
BLAKE2b-256 3d2ee73b57ae2857cf7aba307cd44a68aebda779823413fa972ce228e846cea5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.25-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.25-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.25-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 211507a5a9b4856d6423c8182f3dba0d1a495714c8e066aff39f4055ec3c2399
MD5 c920f63cf61b3970e99f552d720cc5dc
BLAKE2b-256 9b523202b2535e37e55b68cb366b4ef57750cc1d415a84a394b70438787af967

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.25-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.25-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.25-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eeec7e9b7521c0c437f46c5d61e348d0ad0dce996e4bddb4a3948e5b00094f64
MD5 1e291b113eb0722b14014832fed47e55
BLAKE2b-256 70990ec2a7460bb50bb5a6f2aec5e7e0e560a0ee2ab1e8fe1fbc3e7487a51873

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.25-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.25-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.25-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28f954bca053304a92dc01e08696b51ec5bf348afc9037d7ad840a1a4a294769
MD5 19929f5b89683708ecc8317cd14ef751
BLAKE2b-256 3fdd16b0b0dc5b5d1fcf822c97c9a4408d781248304173b00fd6f2a8462dc33c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.25-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.25-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.25-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4359a42c4c54efbf71e1b91ec43198ad10d4d43a318ea3254d456dd5f3e1ad05
MD5 a9537271b3fd18e9ac74eda438525fc2
BLAKE2b-256 1a11179c9d45908727dcafe6378a2b81e1788fe4aeb059c9c897b9405186744f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.25-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.25-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mnemo_db-0.5.25-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1d2b41bf766944c48932391719b1e31b37f4b2f06d3ca60b84cfeb967e0c73d
MD5 8c60e6996c1bd7c3f186669778c99c88
BLAKE2b-256 9f3b051271b31797fdd548604cd381a91e698f88f049fcee967f39df74770411

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnemo_db-0.5.25-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