Dataojitori/nocturne_memory
URI-routed MCP memory with persistent storage and rollback across agent sessions
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Nocturne Memory separates the database, the agent interface, and the operator interface. A Python/FastAPI backend provides storage, a REST API, and snapshots using SQLite or PostgreSQL. Agents write through MCP over stdio, SSE, or Streamable HTTP; operators browse and edit a tree in a React/Vite/Tailwind CSS dashboard. The remote entrypoint, backend/run_sse.py, serves MCP, REST, and the dashboard in one process.
The tree is a view of a four-entity relational graph. A Node provides a stable UUID, Memory holds versioned content, a directed Edge carries priority and disclosure metadata, and a Path maps a domain://path address to an Edge. Aliases let different routes reach the same node without copying the body, and each route can carry different metadata. Namespaces separate agent memory spaces in a shared database; namespace-specific boot settings fall back to the global list if unset.
Key Capabilities & Differentiators
Seven MCP tools cover reads, creation, updates, path deletion, aliases, trigger management, and keyword search across content and paths. system://boot returns configured startup memories; indexes, recent changes, and diagnostics are available through separate system URIs. Disclosure is a human-readable recall cue, not an access-control rule. Glossary triggers use Aho–Corasick matching to turn known terms in memory text into cross-links.
Updates use patch or append operations rather than whole-document replacement. Agent writes produce snapshots that an operator can inspect as diffs and accept or roll back. Path deletion removes an address, not the underlying text; old versions and orphaned memories have a separate, human-confirmed cleanup workflow. The store is not tied to a model provider: different MCP clients can reuse it, but their models need not interpret or use the same entries consistently.
Trade-offs & Limitations
Compared with embedding-backed RAG, explicit URIs make reads predictable when the agent knows the address, and snapshots make writes easier to review. Keyword search is less suitable for fuzzy recall, paraphrases, or discovery across an unstructured corpus. There is no background summarizer to keep the store tidy: naming, granularity, and recall quality depend on how agents write and navigate memories, plus periodic human review. A short boot list limits initial context, not the size of later reads.
For a shared deployment, verify credential scope and namespace isolation before treating namespaces as a security boundary for mutually untrusted tenants. Long-lived, agent-writable content also warrants review before being reused as instructions. The project is MIT-licensed and now on a maintenance-only track, with feature development moving to Horon. Existing users have a memory migration path; greenfield deployments should weigh the cost of adopting a maintenance branch.
Hardware & Deployment Guide
For a local install, use Python 3.10+, install backend/requirements.txt, and point the MCP client at backend/mcp_server.py for stdio. Node.js is needed to build the dashboard on first launch. For native remote hosting, python backend/run_sse.py defaults to port 8233 and serves /sse, /mcp, and the dashboard at /. Configure a bearer token before binding beyond loopback; for public access, put TLS in front of the service.
For Docker 24+ and Compose v2+, run python scripts/setup_docker.py to generate .env credentials before starting Compose. The stack uses PostgreSQL 16 Alpine with a readiness check and persistent database and snapshot volumes. Size storage for version and snapshot retention, and test restores rather than assuming a persistent volume is a backup. Release 2.5.4 added boot presets; 2.5.6 added MCP 2.0 Python SDK compatibility while retaining older SDK support, oversized-memory diagnostics, and ellipsis-based patch targeting.
domain://path resolves to a graph relationship, while a stable Node UUID survives content revisions.system://boot returns; keyword search and glossary links support on-demand lookup without embeddings./sse, and Streamable HTTP at /mcp; remote clients use bearer authentication.Self-hosted MCP agents that need to carry project decisions, preferences, or workflow notes across sessions and clients, with explicit addresses and human review of writes.
Your main requirement is semantic search over a large document corpus, hands-off memory extraction, or a feature roadmap that goes beyond maintenance.
Quick Start & Installation
git clone https://github.com/Dataojitori/nocturne_memory.git cd nocturne_memory pip install -r backend/requirements.txt
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| nocturne_memory ★ | 1.4k | +8 | Python | MIT | URI-routed MCP memory with persistent storage and rollback across agent sessions |
| Agent-Reach | 117k | +1.6k | Python | MIT | A Python CLI that routes agent search and reads across web and platform backends |
| Scrapling | 107.9k | +1.8k | Python | BSD-3-Clause | Python HTTP and browser crawlers that turn websites into RAG-ready Markdown |
| EverOS | 14k | +41 | Python | Apache-2.0 | Local Markdown and indexes give AI agents portable long-term memory |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Dataojitori/nocturne_memory.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about nocturne_memory
How do I connect an MCP client and verify that startup recall works?
backend/mcp_server.py with the Python interpreter that has the backend dependencies. For a remote deployment, choose /mcp for Streamable HTTP or /sse for SSE and configure the bearer token. Verify the connection by calling read_memory on system://boot; verify separately that the client actually calls it at session start.What hardware does the memory server need?
Can I self-host or redistribute it commercially?
When should I choose this over vector RAG?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy