
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

An MCP server that persists memories in a SQLite-backed knowledge graph of entities, observations, and relations, with offline BGE-M3 semantic search for context retrieval across conversations.
MCP persistent memory server with a SQLite knowledge graph and semantic search is cataloged as an MCP server attributed to iachilles. An MCP server that persists memories in a SQLite-backed knowledge graph of entities, observations, and relations, with offline BGE-M3 semantic search for context retrieval across conversations. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP persistent memory server with a SQLite knowledge graph and semantic search are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, Memento has pluggable storage backends; setting MEMORY_DB_DRIVER to postgres enables the PostgreSQL manager, which requires the pgvector extension.
No, it uses a quantized version of the bge-m3 model running fully offline in Node.js.
Yes, setting MEMENTO_WRITE_HOOK_PATH makes Memento append one event to a JSON Lines file after each successful graph mutation.
README.md · d6f3d9a0b82f · 采集于 2026-11-13 09:23:15 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Some memories are best persisted.
Provides persistent memory capabilities through a SQLite-based knowledge graph that stores entities, observations, and relationships with semantic search using BGE-M3 embeddings for intelligent context retrieval across conversations.
bge-m3)entities, observations, and relationsMemento requires SQLite 3.38+. Most macOS and Linux distros ship sqlite3 out of the box, but double-check that it's there and new enough:
sqlite3 --version # should print a version string, e.g. 3.46.0
Important Note: This check is just to verify SQLite is installed on your system. Memento does NOT use the sqlite3 CLI for its operation it uses the Node.js sqlite3 module internally.
If you see "command not found" (or your version is older than 3.38), install SQLite:
| Platform | Install command |
|---|---|
| macOS (Homebrew) | brew install sqlite |
| Debian / Ubuntu | sudo apt update && sudo apt install sqlite3 |
Memento now supports pluggable storage backends. Configuration is controlled entirely through environment variables so it remains easy to embed inside MCP workflows.
| Variable | Description |
|---|---|
MEMORY_DB_DRIVER | Optional selector for the database backend. Defaults to sqlite. Set to postgres to enable the PostgreSQL manager. |
MEMORY_DB_PATH | Filesystem path for the SQLite database file (only used when the driver is sqlite). |
SQLITE_VEC_PATH | Optional absolute path to a pre-built sqlite-vec extension shared library. |
MEMORY_DB_DSN / DATABASE_URL | PostgreSQL connection string consumed by the pg client. |
PGHOST, PGPORT, PGUSER, PGPASSWORD, PGDATABASE | Individual PostgreSQL connection parameters. Used when no DSN is provided. |
PGSSLMODE | When set to require, SSL will be enabled with rejectUnauthorized: false. |
MEMENTO_WRITE_HOOK_PATH | Optional path to a JSON Lines file. When set, Memento appends one event after each successful graph mutation. |
Set MEMENTO_WRITE_HOOK_PATH when another process needs to react to memory writes without polling the full graph:
MEMENTO_WRITE_HOOK_PATH=/tmp/memento-events.jsonl memento
Each line is a JSON object with an ISO timestamp, an operation, and the changed entity/relation payload. Example:
{"timestamp":"2026-05-05T16:33:16.619Z","operation":"create_entity","entity":{"name":"Hook Test","entityType":"test"}}
Supported operations are create_entity, add_observations, create_relation, delete_entities, delete_relations, delete_observations, and set_importance. Delete events are emitted only for records that were actually removed.
Hook write failures are logged to stderr but do not fail the graph mutation that already succeeded. Consumers that require strict reconciliation should combine the hook with occasional read_graph or targeted open_nodes checks.
pgvector
extension. It is automatically initialized with CREATE EXTENSION IF NOT EXISTS vector.Claude Desktop:
{
"mcpServers": {
"memory": {
"description": "Custom memory backed by SQLite + vec + FTS5",
"command": "npx",
"args": [
"@iachilles/memento@latest"
],
"env": {
"MEMORY_DB_PATH": "/Path/To/Your/memory.db"
},
"options": {
"autoStart": true,
"restartOnCrash": true
}
}
}
}
Important: Memento loads the sqlite-vec extension programmatically through Node.js, NOT through the sqlite3 CLI.
Common misconceptions:
SQLITE_VEC_PATH environment variable if automatic detection fails. This should point to the Node.js-compatible version of the extension, typically found in your node_modules directory.If automatic vec loading fails:
# Find the Node.js-compatible vec extension
find node_modules -name "vec0.dylib" # macOS
find node_modules -name "vec0.so" # Linux
# Use it via environment variable
SQLITE_VEC_PATH="/full/path/to/node_modules/sqlite-vec-darwin-x64/vec0.dylib" memento
This server exposes the following MCP tools:
create_entitiescreate_relationsadd_observationsdelete_entitiesdelete_relationsdelete_observationsread_graphsearch_nodesopen_nodesset_importance - Set importance level (critical/important/normal/temporary/deprecated)When MEMENTO_WRITE_HOOK_PATH is configured, mutating tools also append JSONL write events for downstream consumers.
This project uses @xenova/transformers, with a quantized version of bge-m3, running fully offline in Node.js.
MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP persistent memory server with a SQLite knowledge graph and semantic search from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/memento)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.