DSH Plugins Marketplace

DSH Plugins

Plugins

/

mnemosyne

F

mnemosyne

Discovered31

Mnemosyne OS 7.0.0 — zero-dependency, local-first AI memory system (MCP / API / CLI / Python). MIT.

Mnemosyne OS

Mnemosyne OS ☤

Mnemosyne OS | GitHub | 中文文档

PyPI License: MIT Python 3.8+ Model Context Protocol Downloads X 中文 繁體中文 Español Русский Deutsch ไทย 한국어 日本語

Mnemosyne OS 7.0.1 — a zero-dependency , local-first AI memory system with multi-tier forgetting , a hash-chain ledger , a plugin SDK , a local web dashboard , and MCP support.

The only AI memory engine whose core requires zero third-party dependencies — no vector database , no LLM runtime, no cloud lock-in. Runs on a laptop, a server, or serverless infra .

Use it as a Python library, a **CLI **, an **HTTP API **, an **MCP server **, or embed it via the **MCP ** stdio transport.

Zero-dependency core Runs on the Python standard library alone. No numpy, no torch, no vector DB, no LLM required to store and recall memories.
Multi-tier memory Hot / warm / cold tiers with economic forgetting — migrate low-value memories, never silently delete them.
Hash-chain ledger SHA-256 chained ledger — verify_chain() detects tampering and locates the exact corrupted record.
Plugin SDK VectorBackendPlugin / CryptoPlugin / RerankerPlugin + official plugins (numpy_vector, crypto, reranker, hrr, async, context-engine).
MCP server 14 tools over stdio JSON-RPC, with token auth and multi-tenant namespaces .
Web dashboard Tech-aesthetic local dark dashboard , no external CDN — served from web_server.py.
Async API AsyncMemoryBrain asyncio wrapper for high-throughput ingestion.
Chinese-optimized Bigram tokenization + FTS5 + built-in synonym dictionary .
Security notary Detects credentials, invisible Unicode, and HTML injection; field-level redaction before write.

Quick Install

From PyPI

pip install mnemosyne-os

Zero-dependency core

# Core runs on the Python standard library alone
python -c "from mnemosyne import MemoryBrain; print('Ready!')"

Development install

git clone https://github.com/FrankHu-HK/mnemosyne.git
cd mnemosyne
pip install -e .

Getting Started

CLI

# Initialize the memory database
python mnemosyne.py --dir ./mem init

# Store a memory
python mnemosyne.py --dir ./mem retain --content "Apple Inc. was founded in 1976"

# Search memories
python mnemosyne.py --dir ./mem recall "Apple" --k 5

# Consolidate similar memories (pre-check)
python mnemosyne.py --dir ./mem consolidate --dry-run

# View status / health check
python mnemosyne.py --dir ./mem status --json
python mnemosyne.py --dir ./mem doctor --json

# Knowledge graph query
python mnemosyne.py --dir ./mem graph-query "Steve Jobs" --depth 2 --json

# Ledger integrity / audit
python mnemosyne.py --dir ./mem verify-integrity --json
python mnemosyne.py --dir ./mem ledger-audit <memory_id>

# Export / import
python mnemosyne.py --dir ./mem export --format json --out ./memories.json
python mnemosyne.py --dir ./mem import ./memories.json

# Migrate JSONL -> SQLite
python mnemosyne.py --dir ./mem migrate --jsonl ./mem/index.jsonl

# Start the web dashboard
python -m mnemosyne.webui.web_server --port 9090

Python API

from mnemosyne import MemoryBrain

brain = MemoryBrain("./my_memories", enable_embeddings=False)
brain.ensure_init()

# Store
brain.retain("Apple Inc. was founded in 1976", fast=True)

# Recall
results = brain.recall("Apple", k=5)
for score, record, reasons in results:
    print(f"Score: {score:.4f} | {record['content']}")

# Token-budgeted recall
results, cost_report = brain.recall("Apple", k=5, budget_tokens=100)

# Conversation history
brain.add_conversation_turn("session-1", "user", "Tell me about Apple")
hits = brain.search_conversations("Apple", session_id="session-1")

# Context snapshot
snapshot = brain.build_context_prompt(query="Apple", max_chars=2000)

Async API

import asyncio
from plugins.async_wrapper import AsyncMemoryBrain

async def main():
    brain = AsyncMemoryBrain("./memories", enable_embeddings=False)
    await brain.async_retain("Hello World", fast=True)
    results = await brain.async_recall("Hello", k=5)
    print(results)
    brain.close()

asyncio.run(main())

MCP Server

Run the MCP server over stdio JSON-RPC :

export MNEMOSYNE_MCP_TOKEN="your-secret-token"   # optional token auth
python -m mnemosyne.webui.mcp_server --brain-dir ./mem --namespace default

The MCP server exposes **14 tools **:

| Tool | Description | | --- | --- | | retain | Write a memory | | recall | Retrieve memories | | retain_batch | Batch write, ~15× speedup | | stats | Runtime statistics — writes / recalls / token savings | | graph_query | Knowledge graph query | | temporal_query | Temporal version-chain query | | list_projects | List isolated projects | | doctor | Health check — integrity, record count, disk | | audit | Audit-trail query | | confidence_history | Confidence trajectory query | | memory/export-v1 | Export via Memory Exchange Protocol | | memory/import-v1 | Import via Memory Exchange Protocol | | memory/claim | Claim memories from an external export | | forget | Forget a memory — set confidence to 0 and soft-delete (accepts memory_id, or a natural-language query) |

Connect any MCP host (Claude Desktop, Hermes Agent, etc.) by pointing it at the stdio command above.

HTTP API

python -m mnemosyne.webui.web_server --port 9090

Then open http://127.0.0.1:9090 — a local dark dashboard with memory browsing, graph view, stats, and a REST endpoint. The default account admin / mnemosyne is created on first run; change the password after login.


Plugins

# Crypto plugin (requires cryptography; degrades gracefully otherwise)
brain = MemoryBrain("./memories", plugins=["crypto"])

# Numpy vector backend (requires numpy; optional sentence-transformers model)
brain = MemoryBrain("./memories", plugins=["numpy_vector"])

# Reranker plugin
brain = MemoryBrain("./memories", plugins=["reranker"])

Project Structure

Mnemosyne7.0.1/
├── mnemosyne.py              # Thin facade re-exporting the mnemosyne package
├── mnemosyne/                # Core engine package (brain / storage / retrieval / cognitive / notary)
├── storage/                  # Storage backends (sqlite_backend / ledger / session_store / plugin_sdk)
├── context/                  # Context snapshots (snapshot_builder)
├── context_engine/           # Context compression engine (engine-agnostic core + Hermes adapter)
├── lexical/                  # Built-in synonym dictionary
├── profiles/                 # User profile management
├── providers/                # External provider adapter + multi-source router
├── security/                 # Contradiction detection + security report
├── session/                  # Conversation importer
├── visualization/            # Knowledge tree generator
├── plugins/                  # Extra plugins (HRR / Async)
├── mnemosyne_plugins/        # Official plugins (numpy_vector / crypto / reranker / qdrant_backend)
├── examples/                 # Runnable examples (Ollama / LangChain / MCP / CLI / embedded)
└── docs/                     # Documentation (architecture, modules, plugins, API, deployment)

Testing

python -m unittest discover -s tests -v
python -m unittest tests.test_plugins -v

Documentation

  • docs/DEPLOY_DEEPSEEK_HARNESS.md — Deploy with DeepSeek Harness (via MCP)
  • docs/KNOWN_DEFECTS.md — Confirmed defects in the 7.0.1 memory stack, with evidence and fixes
  • docs/RECALL_STRATEGY.md — Recall mechanics and per-turn injection strategy assessment
  • docs/ACCEPTANCE_GUIDE.md — Acceptance guide (with scripts/verify_memory_lifecycle.py)
  • README_CN.md — 中文说明 (Chinese README)
  • docs/ — Full docs: architecture, data model, module docs, plugin docs, API / CLI / MCP references, deployment, integration
  • COMPLIANCE.md — HIPAA / 等保 / GDPR / PIPL compliance mapping
  • comparison.md — Feature comparison with alternatives
  • CHANGELOG.md — Version history
  • Reports: quality_report.md (retrieval quality), benchmark_report.md (performance), security_report.md (security)

License

MIT License — see LICENSE.

Built by 胡景堃 (Jingkun Hu).

Similar plugins

dsh-mnemosyne

by rebron1900

Mnemosyne 记忆层在 DeepSeek Harness 中的插件 — 本地优先、SQLite 支持的跨会话记忆。

Memory & ContextManifest valid

3

MIT

JavaScript

Sep 1, 2026

dsh plugin --profile web add dsh-mnemosyne

by agentscope-ai

ReMe: Memory Management Kit for Agents - Remember Me, Refine Me.

Memory & ContextManifest valid

3.5k

317/wk

Apache-2.0

Python

Sep 15, 2026

dsh plugin --profile web add @agentscope-ai/reme

Bridges the MemOS memory service over MCP: the agent gets add/search/update/delete memory, multi-cube sharing, and a memory scheduler as mcp__memos__* tools.

Memory & ContextManifest valid

0

dsh plugin --profile web add dsh-memos-bridge

by mnemon-dev

LLM-supervised persistent memory for AI agents — graph-based recall, cross-session knowledge, single binary. Works with DeepSeek Harness, Claude Code, OpenClaw, and any agent runtime.

Memory & ContextManifest valid

578

Apache-2.0

Go

Sep 15, 2026

dsh plugin --profile web add @mnemon-dev/dsh-mnemon

by MemTensor

Self-evolving memory OS for LLM & AI Agents: ultra-persistent memory, hybrid-retrieval, and cross-task skill reuse, with 35.24% token savings and DeepSeek Harness support.

Tools & CapabilitiesManifest valid

11.3k

1k/wk

Apache-2.0

TypeScript

Sep 9, 2026

dsh plugin --profile web add @memtensor/memos-local-plugin

by wjabanjj

AiFP 记忆感知系统|MCP 服务,一套记忆全 AI 共享。面向中文的 Agent 感知记忆,支持叙事链、语义纠错、感知链图扩散。兼容 DeepSeek‑Harness、Claude Code、Cursor、Codex等全部 MCP 客户端,数据完全本地存储。

Manifest valid

4

140/wk

TypeScript

Aug 19, 2026

dsh plugin --profile web add aifp-mcp