Memlord

by myrikld

Not rated
GitHub

About

Self-hosted MCP memory server for personal use and teams

Details

Author
myrikld
Categories
Database, AI, Knowledge Base, Communication

Setup

Install Memlord in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/myrikld/memlord

Follow the installation instructions in the repository README, then restart your MCP client.

- Store a memory with type and tags— Usestore_memoryto save a fact, preference, instruction, feedback, decision, or insight, optionally setting an expiration.
- Search memories with hybrid retrieval— Askretrieve_memoryto find relevant memories using combined BM25 full-text and vector semantic search, returning compact snippets.
- Recall memories by time expression— Userecall_memoryto find memories matching natural-language time queries like "last week" or "yesterday."
- Browse and filter all memories— Calllist_memorieswith type and tag filters to paginate through stored memories.
- Consolidate memories via dreaming— Run thedreamprompt to have the assistant reviewdream_reportcandidates, merge near-duplicates into insights, and retire superseded memories non-destructively.

Self-hosted MCP memory server for personal use and teams

Quickstart•How It Works•MCP Tools•Configuration•Requirements•License

- 🔍Hybrid search— BM25 (full-text) + vector KNN (pgvector) fused via Reciprocal Rank Fusion
- 📂Multi-user— each user sees only their own memories; workspaces for shared team knowledge
- 🛠️11 MCP tools— store, retrieve, recall, list, search by tag, get, update, delete, move, list workspaces, dream report
- 💤Dreaming— a guided consolidation pass (dreamMCP prompt +dream_reporttool): finds near-duplicate and conflicting memories, merges them into insights non-destructively, driven by the client LLM
- 🌐Web UI— browse, search, edit and delete memories in the browser; export/import JSON
- 🔒OAuth 2.1— full in-process authorization server, always enabled
- 🐘PostgreSQL— pgvector for embeddings, tsvector for full-text search
- 📊Progressive disclosure— search returns compact snippets by default; callget_memory(name)only for what you need, reducing token usage
- 🔁Deduplication— automatically detects near-identical memories before saving, preventing noise accumulation

- OpenMemory— auto-extracts memories from raw conversation text; no need to decide what to store manually; good import/export
- mcp-memory-service— richer web UI (graph visualization, quality scoring, 8 tabs); more permissive license (Apache 2.0); multiple transport options (stdio, SSE, HTTP)
- basic-memory— memories are human-readable Markdown files you can edit, version-control, and read without any server; wiki-style entity links form a local knowledge graph; ~20 MCP tools

- You wantzero-config local embeddings— ONNX model ships with the server, no Ollama or external API needed
- You run amulti-user team serverwith proper OAuth 2.1 auth and invite-based workspaces
- You want aproduction-grade database(PostgreSQL) that scales beyond a single machine's SQLite
- You manage memoriesexplicitly— store exactly what matters, typed and tagged, not everything the LLM decides to extract
- You want aself-hosted Web UIwith full CRUD and JSON export, without a cloud subscription

# Install dependencies uv sync --dev # Download ONNX model (~23 MB) uv run python scripts/download_model.py # Run migrations alembic upgrade head # Start the server memlord

Openhttp://localhost:8000for the Web UI. The MCP endpoint is at/mcp.

Each search request runs BM25 and vector KNNin parallel, then merges results viaReciprocal Rank Fusion:

flowchart TD Q([query]) --> BM25["BM25\nsearch_vector @@ websearch_to_tsquery"] Q --> EMB["ONNX embed\nparaphrase-multilingual-MiniLM-L12-v2 · 384d · local"] EMB --> KNN["KNN\nembedding <=> query_vector\ncosine distance"] BM25 --> RRF["RRF fusion\nscore = 1/(k+rank_bm25) + 1/(k+rank_vec)\nk=60"] KNN --> RRF RRF --> R([top-N results])

All settings use theMEMLORD_prefix. See.env.examplefor the full list.

SetMEMLORD_BASE_URLto your public URL and changeMEMLORD_OAUTH_JWT_SECRETbefore deploying.

ThedreamMCP prompt walks the client LLM through a full consolidation pass over thedream_reportoutput: classify similar pairs (duplicate / complementary / conflict), merge intoinsightmemories, retire superseded ones viaexpires_at— never destructively.

Workspace management (create, invite, join, leave) is handled via the Web UI.

- Python3.12
- PostgreSQL≥ 15 with
pgvectorextension
- uv— Python package manager

pyright src/ # type check ruff format . # format pytest # run tests alembic-autogen-check # verify migrations are up to date

- AGPL-3.0— free for open-source use. If you run a modified version as a network service, you must publish your source code.
-
Commercial License— for proprietary or closed-source deployments. Contactsergey@memlord.comordmitry@memlord.comto purchase.

Engram is a hosted MCP server that provides reliable memory for AI agents:

Persistent memory, teams, and projects for AI agents. 76 MCP tools for storing, recalling, and sharing knowledge across sessions.

Provides searchable local storage for Claude conversation history, enabling context retrieval during sessions.

Deterministic O(1) memory for AI agents — local-first, MCP-native, with multi-agent speaker attribution and millisecond recall.

Integrates with Mem0.ai to provide persistent memory capabilities for LLMs, supporting cloud, Supabase, and local storage.

Enables Large Language Models to store and retrieve persistent memories with intelligent search capabilities.

Extends the Memory server with PouchDB for robust document-based storage, custom memory file paths, and interaction timestamping.

A memory management system for AI assistants to store, retrieve, and manage user information using a local database.

Open-source shared AI memory and team knowledge layer with 44 MCP tools for notes, memories, URLs, emails, projects, graph search, semantic search, and Git sync.

Agent memory with git-like version control. Custom LLMs turn conversations into structured facts with automatic conflict detection - your agent sees how decisions evolved, not four contradictory text blobs. 80% token reduction vs RAG/graph systems. MCP + REST.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.