celiums/celiums-memory

๐Ÿง  Knowledge & Memory๐ŸŸข Verified Active
0 Views
0 Installs

๐Ÿ“‡ ๐Ÿ  โ˜๏ธ ๐ŸŽ ๐ŸชŸ ๐Ÿง - Cognitive memory engine with 5,100+ knowledge modules, circadian rhythm awareness, and emotional state tracking (PAD model). Hybrid search (PostgreSQL + Qdrant vectors + Valkey cache), per-user memory isolation, and multi-protocol support (MCP, REST, OpenAI, LangChain, A2A). npx @celiums/memory Website

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "celiums-celiums-memory": {
      "command": "npx",
      "args": [
        "-y",
        "celiums-celiums-memory"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

Celiums Memory

A complete cognitive memory engine. Apache-2.0. All of it.

License: Apache-2.0 Sponsor

Celiums Memory is an engine, not an app โ€” no UI, no dashboard to log into. It is the memory, journaling, ethics and knowledge substrate you embed inside other software: agents, assistants, tools, pipelines. It speaks MCP (Model Context Protocol) so any compatible client (Claude Code, Cursor, Continue, Cline, OpenCode, or your own) gets persistent memory, a first-person journal, an auditable ethics engine, and a per-user biological clock โ€” without you building any of it.

It is open source under Apache-2.0 in full: no open-core split, no paid tier, no proprietary core held back. The Ethics Engine โ€” every layer โ€” is open and auditable. Its ethics_knowledge corpus is distributed separately as a v2.0.0 release asset (not in the git tree); the engine runs on Layers A+B without it, and Layer K (precedent) abstains cleanly when the corpus is absent.

A fuller statement of intent: MANIFESTO.md.


How it works

Every request โ€” whether over MCP or HTTP โ€” flows through the same path:

MCP client / HTTP caller
        โ”‚
        โ–ผ
auto-bootstrap   โ†’  prepends <session_context> on the first call so a
        โ”‚            fresh client starts with memory already loaded
        โ–ผ
RBAC + AAL + Ethics  โ†’  three orthogonal checks; all must pass before
        โ”‚                an irreversible or content-bearing op runs
        โ–ผ
MCP dispatcher (61 typed tools)
        โ”‚
        โ”œโ”€โ–บ  Storage adapter   โ€” SQLite | Postgres+Qdrant+Valkey
        โ””โ”€โ–บ  LLM provider       โ€” Ollama/OpenAI/Anthropic/โ€ฆ (BYO key)

The pieces:

  • Memory โ€” remember / recall with hybrid retrieval (vector + full-text + affective/PAD resonance), importance scoring, consolidation, lifecycle decay, and circadian/interoceptive modulation.
  • Journal โ€” append-only, hash-chained, first-person agent journal: causal chains, arcs, introspection, dialogue, chain verification.
  • Ethics Engine โ€” a 4-layer evaluator (A deterministic lexicon ยท B probabilistic CVaR with a categorical CBRN hard-block ยท C philosophical scaffold ยท K precedent advisory). Fully open, corpus included โ€” the component that makes moral calls is the one that least deserves to be hidden.
  • Biological clock โ€” per-user circadian rhythm modulates arousal and recall; the engine has a sense of time and state.
  • Knowledge โ€” forage does hybrid search over the skills/knowledge you bring (BYO; via the skills table). The large curated module corpus is a separate Celiums project โ€” forage runs without it.
  • Storage adapters โ€” SQLite (local/embedded) or Postgres + Qdrant + Valkey (clustered), same engine code, config-only switch.
  • Sync modes โ€” local-only, zero-knowledge (encrypted, server sees ciphertext), or cloud-managed. Chosen consciously at install.

Full detail โ€” trust boundaries, RLS multi-tenancy, AAL tiers, the Ethics layers, observability โ€” is in ARCHITECTURE.md.


Quick start

Option A โ€” Docker Compose (Postgres + Qdrant + Valkey)

git clone https://github.com/terrizoaguimor/celiums-memory.git
cd celiums-memory
cp .env.example .env          # set POSTGRES_PASSWORD at minimum
pnpm docker:up                # builds the image, starts the stack
curl localhost:3210/health    # โ†’ ok, once ready

The MCP/HTTP server listens on :3210. CELIUMS_API_KEY is auto-generated on first run if you don't set one โ€” check the container logs (pnpm docker:logs).

Option B โ€” Local, SQLite, no Docker

git clone https://github.com/terrizoaguimor/celiums-memory.git
cd celiums-memory
pnpm install
pnpm build
SQLITE_PATH=./celiums.db pnpm start    # MCP/HTTP server on :3210

SQLite mode needs no external services โ€” good for local/embedded use and trying the engine out.


Connect an MCP client

Point any MCP client at the HTTP endpoint with the API key. Example for Claude Code / Cursor-style config:

{
  "mcpServers": {
    "celiums-memory": {
      "url": "http://localhost:3210/mcp",
      "headers": { "Authorization": "Bearer cmk_your_key_here" }
    }
  }
}

From then on the client can call remember, recall, journal_write, forage, ethics_trace, and the rest โ€” and auto-bootstrap loads prior context into the first response automatically.


Configuration

Set via .env (Docker) or environment (local). The essentials:

VarWhat
PORTHTTP/MCP port (default 3210)
DATABASE_URLPostgres DSN โ€” enables the Postgres+Qdrant adapter
SQLITE_PATHuse SQLite single-file mode instead of Postgres
QDRANT_URL / VALKEY_URLvector + cache backends (Postgres mode)
CELIUMS_API_KEYauth bearer; auto-generated on first run if unset
PERSONALITYengine personality profile (default celiums)
CELIUMS_LLM_API_KEY / _BASE_URL / _MODELBYO LLM for AI-backed tools (any OpenAI-compatible provider, Ollama, Anthropic, โ€ฆ)
KNOWLEDGE_API_URL / _KEYoptional BYO knowledge backend for forage

.env.example documents the full set including onboarding and zero-knowledge encryption options.


Ethics knowledge corpus (Layer K โ€” optional)

The Ethics Engine runs on Layers A + B with zero setup. Layer K (precedent advisory) consults an ethics_knowledge corpus that is not in the git tree โ€” it ships as a v2.0.0 release asset (ethics_knowledge.jsonl, ~31 MB, embeddings precomputed). To enable Layer K, point OPENSEARCH_URL at your OpenSearch and load it:

OPENSEARCH_URL="https://user:pass@your-opensearch:25060" pnpm ethics:load

The loader downloads the release asset, verifies its SHA-256, creates the index with the exact mapping, and bulk-indexes it (idempotent โ€” re-runnable; --force recreates, --dry-run validates without writing). Until then Layer K abstains cleanly; A + B are unaffected.


The MCP tool surface (61 tools)

FamilyExamplesPurpose
Memory / OpenCorerecall, remember, forage, sense, synthesizeMemory + knowledge primitives
Journaljournal_write, journal_recall, journal_arc, journal_verify_chainHash-chained first-person journal
Ethicsethics_lookup, ethics_audit, ethics_traceLookup, ad-hoc audit, traced evaluation
Atlas (optional)atlas_ask, atlas_classify, bloom, cultivateModel routing + cognitive primitives
Researchresearch_project_*, research_search, research_exportLong-running research workflows
Writewrite_project_*, write_scene_*, write_continuity_checkLong-form creative continuity
Proactiveturn_context, turn_after, compact_checkpointPer-turn context composition

Development

pnpm install
pnpm build         # turbo: builds packages in dependency order
pnpm typecheck     # workspace-wide
pnpm test          # vitest

The deployable is packages/core (@celiums/memory); the other workspace packages are its peers/deps. docker/Dockerfile builds the same thing the staging image does.


Integrating

The engine is built to live inside your stack and is consumed over MCP or HTTP. Thin integration adapters (LangChain, LlamaIndex, REST, CLI) are being rebuilt against the current engine API under packages/.


License & support

Apache-2.0 โ€” every line of source is public, including the full Ethics Engine. Its ethics_knowledge corpus ships as a release asset (see Releases), not in the git tree. See LICENSE and TRADEMARKS.md.

If Celiums Memory is useful to you, you can sponsor its development. It is built โ€” in the open, going its own way in peace โ€” by Celiums Solutions LLC.

Related MCP Servers

modelcontextprotocol/server-memoryVerified

๐Ÿ“‡ ๐Ÿ  - Knowledge graph-based persistent memory system for maintaining context

๐Ÿง  Knowledge & Memory2 views
0xshellming/mcp-summarizer

๐Ÿ“• โ˜๏ธ - AI Summarization MCP Server, Support for multiple content types: Plain text, Web pages, PDF documents, EPUB books, HTML content

๐Ÿง  Knowledge & Memory0 views
20alexl/claude-engram

๐Ÿ ๐Ÿ  - Persistent memory and session intelligence for Claude Code. Auto-tracks mistakes, decisions, and context via hooks. Mines session history for patterns and cross-session search. Loop detection, pre-edit warnings, context compaction survival. Runs locally with Ollama.

๐Ÿง  Knowledge & Memory0 views
a2cr/a2cr

๐Ÿ โ˜๏ธ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - MCP server for AI-agent handoffs. Saves client-encrypted WorkBaton checkpoints and WorkStash notes so Codex, Claude Code, Roo Code, and other MCP clients can resume work without passing full chat history.

๐Ÿง  Knowledge & Memory0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Active

Recent health check succeeded.

Last checked: 7/28/2026, 9:06:48 PM

Unclaimed listing (imported or pending owner verification). Claim it โ†’
โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.