← Back to Leaderboard
NDataojitori

Dataojitori/nocturne_memory

URI-routed MCP memory with persistent storage and rollback across agent sessions

MCP Server & SkillQuickstart ↓
Engineering Health (Methodology)
A · 85/100
Maintenance Activity
● Updated 1mo ago
Latest Release
2.5.6
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance31/35
Fork Adoption17/25
Release Cadence17/20
License Clarity20/20
DockerSelf-HostedMCPAPI
Total Stars
★ 1,442
24h Growth
+0
7d Growth
+8
Forks
177

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

Dataojitori/nocturne_memory Star History (2025-12-24 - 2026-12-03) ALL-TIME STAR HISTORY (2025-12 – 2026-12) +1.4k in 344d · avg +4/day 1.5k 762 0 2025-12-24: ★ 12026-01-17: ★ 252026-02-07: ★ 252026-02-28: ★ 2462026-03-21: ★ 7442026-04-11: ★ 8942026-05-02: ★ 9852026-05-23: ★ 1,0942026-06-13: ★ 1,1602026-07-04: ★ 1,2172026-07-25: ★ 1,2462026-08-15: ★ 1,2952026-09-05: ★ 1,3242026-09-26: ★ 1,3552026-10-17: ★ 1,3822026-11-07: ★ 1,4172026-12-03: ★ 1,442 ★ 1.4k 2025-12 2026-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Addressing: domain://path resolves to a graph relationship, while a stable Node UUID survives content revisions.
Write semantics: Patch and append edits preserve history; deleting a path unlinks it without erasing the memory body.
Recall: Startup presets select what system://boot returns; keyword search and glossary links support on-demand lookup without embeddings.
Review: The dashboard exposes snapshot diffs, rollback, and human-confirmed cleanup of old versions and orphaned entries.
Integration: MCP supports stdio, SSE at /sse, and Streamable HTTP at /mcp; remote clients use bearer authentication.
Storage: SQLite supports local use; Docker Compose pairs the backend with PostgreSQL 16 Alpine and persistent database and snapshot volumes.
Best For

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.

Skip If

Your main requirement is semantic search over a large document corpus, hands-off memory extraction, or a feature roadmap that goes beyond maintenance.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedMCPAPI
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 →
RepositoryStars7d TrendStackLicenseCore Positioning
nocturne_memory ★1.4k+8PythonMITURI-routed MCP memory with persistent storage and rollback across agent sessions
Agent-Reach117k+1.6kPythonMITA Python CLI that routes agent search and reads across web and platform backends
Scrapling107.9k+1.8kPythonBSD-3-ClausePython HTTP and browser crawlers that turn websites into RAG-ready Markdown
EverOS14k+41PythonApache-2.0Local 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/Dataojitori/nocturne_memory.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Dataojitori/nocturne_memory Star History on RepoForAI

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?

For local stdio, configure the client to launch 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?

The memory server does not run an embedding model or an LLM, so it does not require a GPU or model VRAM. Start with SQLite for a local trial. Size a shared deployment for Python API traffic, PostgreSQL, and storage growth from memory versions, snapshots, and backups. Measure those against your own write rate and concurrency; there is no fixed capacity target.

Can I self-host or redistribute it commercially?

Yes. The MIT license permits commercial use, modification, and redistribution, subject to retaining the copyright and permission notices in copies or substantial portions. The license does not govern how you handle stored user data. Set separate policies for access, retention, backups, and deletion: removing a URI does not erase the underlying content.

When should I choose this over vector RAG?

Choose Nocturne Memory for a writable store whose entries have stable addresses, explicit relationships, and reviewable history. Choose vector retrieval when users need to find information by meaning across a large, loosely structured corpus. If you need both, keep the memory and document-retrieval layers separate rather than expecting keyword search to cover semantic retrieval.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Dataojitori/nocturne_memory? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Dataojitori/nocturne_memory on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare