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.23.tar.gz (385.9 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.23-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.23-cp313-cp313-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

mnemo_db-0.5.23-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.23-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.23.tar.gz.

File metadata

  • Download URL: mnemo_db-0.5.23.tar.gz
  • Upload date:
  • Size: 385.9 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.23.tar.gz
Algorithm Hash digest
SHA256 515933f0cd5605f7b4e1544b26b87aa2ce37f497817fff9fca14995a7b446163
MD5 a8c471f61ac6619e5f892295a45a4def
BLAKE2b-256 b376e92501c3d1ace605c2c68b0837baad3aa5aabbb3e3d0b10ddc95ff340f71

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnemo_db-0.5.23-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b638188539e6c1746add3dfecfe19e53fbfe53536f3e7ea93db815fbc410c315
MD5 212ba795d3a879f6a54f1c8cb9ce27a6
BLAKE2b-256 861fe7cf77d74394ac684c97554e29d8ca4ab212ab3e4c416ae70998855a0e08

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnemo_db-0.5.23-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3cc4c637bdf0d6ca0d7cd7f8e03a10d1a9772618474ee284b48a0c5d18ae22c8
MD5 eb0ec8f23e5e290a8f52f47874a9f7ae
BLAKE2b-256 322b70ebc9cfece00b5095862740a26e89839052275e1b8ed1cd29db1ccea3fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnemo_db-0.5.23-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bc11f5ed1fd4a89d5ced2d39116c5bf2e89c2d6548d7c37a4dde9e0eaf787160
MD5 dd29bf54f290b212cbabe31608ac0ae9
BLAKE2b-256 fbd0ce074940f5e1c45f75b19cec440d3093e7f2ff72af5e73f529e44d366cfa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnemo_db-0.5.23-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f679f2234c1d2a69abfbb8e48ec1c30796221ace628c107813c38f95ff98bfdf
MD5 b3d12e5b0fc1b1e4e18fa4a4d47fa1df
BLAKE2b-256 e21ba05af469593a3e16387b75c91b4e1c9b752a02733027c5bfa5c0d8271bd8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnemo_db-0.5.23-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a283852f41978b65cb7217abaa9df4f3a86c9823d352a6565a8d50daaac725bf
MD5 342e8cd714bb0c22466f5a7842abd6fd
BLAKE2b-256 e0a86ac4dad85e19dbc7befb825fe47e7fd21c58d030dc188979951af2694a33

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnemo_db-0.5.23-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f49b85b2358671b251fee85e0c6758797139d74ea79db6edf47d2f5890034b15
MD5 ed337fbdc4208f001d2e50a64134780b
BLAKE2b-256 319a1921f689586901dd5fe22df0da3f7d9ed036f0ea74ef43dad64f95a3f0f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnemo_db-0.5.23-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 45c86104f7206fe1c735e2c55ca324771a8d8ae2775a74641a505081d61449a2
MD5 0c7f17aff8c02ef0dea840faf8400997
BLAKE2b-256 4d3c3fef623a82589b973d60e48b5d1305e7cd2a42077072ba84c35f22b82eb0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnemo_db-0.5.23-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3f4474a079a57d4c0b3291825f8eedd02551f0574a4e5b062273a3db6c16f25
MD5 0f9ede95acfe84a40b1f71fee4658daf
BLAKE2b-256 d446258e0aff5efe15c60a3f15e358ed9a7c3862617a34f810bea6e48f51505d

See more details on using hashes here.

Provenance

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