# delx-memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/davidmosiah/delx-memory  
**GitHub Stars:** 2  
**npm Downloads (last month):** 575  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/delx-memory

## Description
Local-first persistent memory MCP: shared SQLite key/value store, searchable, TTL-aware, secret-safe

## Tools
Capabilities this server exposes over MCP:

- **memory_agent_manifest** — Machine-readable install and operating instructions for AI agents. Call first when onboarding. Supports privacy_mode documentation for read tools.
- **memory_connection_status** — Local SQLite path readiness and size without reading entry values. Safe first call every session.
- **memory_data_inventory** — Static inventory of memory domains, privacy modes and recommended first calls. No live value reads.
- **memory_capabilities** — Self-description of this MCP including privacy modes and mutation gating.
- **memory_get** — Exact key lookup. Returns the stored value plus timestamps, ttl, tags, metadata. Returns null if missing or expired. Optional privacy_mode=summary omits full values.
- **memory_list** — List keys with optional prefix, tag, or since (updated_at) filter. Returns keys + timestamps + tags only — call memory_get for values. Scoped by DELX_MEMORY_NAMESPACE when set.
- **memory_search** — Full-text search across keys, values AND tags. Uses an FTS5 index with bm25 relevance ranking (key-weighted), word-stemming, diacritic folding and prefix matching — so multi-word, partial and accent-insensitive queries all hit, ranked by relevance. Falls back to a LIKE substring scan if the SQLite build lacks FTS5. Returns top N matches with a snippet. Case-insensitive. privacy_mode=summary omits snippets.
- **memory_stats** — High-level stats about the local memory store. Safe to call first on every session to gauge whether the store is empty, small, or large.
- **memory_set** — Create or update a key in memory. Rejects credential-shaped keys or values. Requires explicit_user_intent: true. Returns whether the row was created or updated.
- **memory_forget** — Delete a single key from memory. Idempotent: returns existed=false if the key was not present. Requires explicit_user_intent: true.
- **memory_forget_by_tag** — Delete every entry carrying the given tag. Returns deleted_count. Requires explicit_user_intent: true.
- **memory_export** — Dump the memory store as JSON, JSONL, or Markdown. Optional since/until window on updated_at. Use for backup/inspection. Requires explicit_user_intent: true.
- **memory_get_many** — Batch exact-key lookup (max 50). Missing keys omitted. Respects DELX_MEMORY_NAMESPACE.
- **memory_set_batch** — Upsert up to 50 entries in one SQLite transaction. One explicit_user_intent covers the batch. Rejects secret-shaped keys/values. Namespace-aware.
- **memory_handoff** — Returns store stats + the most recently updated keys (optional values). Designed for session start: one call instead of stats+list+get fan-out. Namespace-aware.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "delx-memory": {
    "command": "npx",
    "args": ["-y","delx-memory"]
  }
}
```

## Documentation

## What delx-memory MCP server does

The delx-memory MCP server provides persistent, local-first memory for agents that communicate through MCP. It stores JSON-serializable values in a SQLite database, allowing separate sessions and supported clients to access the same data. The default database is `~/.delx-memory/db.sqlite`, with an alternate location available through `DELX_MEMORY_PATH`.

The store supports key-based retrieval, tags, prefixes, update-time filtering, TTL expiration, full-text search, and exports in JSON, JSONL, or Markdown. Values are limited to 64 KB after JSON serialization, and keys are limited to 512 characters. Expired records are removed lazily when they are read.

Secret-safety checks reject credential-shaped keys and values. The server refuses names containing patterns such as `token`, `password`, `api_key`, or `credential`, and also checks nested objects and recognizable token formats. It is not intended to replace an operating-system credential manager.

## How it works

By default, the process exposes tools over stdio and uses SQLite for storage. Multiple MCP clients can point to the same database, so a preference or project note written in one client can be read in another. Set `DELX_MEMORY_NAMESPACE` to add an isolated namespace; stored keys are represented internally with that namespace prefix. Omitting the variable uses the default shared namespace.

The tool set includes session-resume and discovery operations such as `memory_handoff`, `memory_agent_manifest`, `memory_connection_status`, and `memory_capabilities`. Read operations include `memory_list`, `memory_get`, and `memory_search`. Search uses SQLite FTS5 with BM25 ranking, stemming, and diacritic folding when available, then falls back to `LIKE` matching if FTS5 cannot be used.

Write and deletion operations require `explicit_user_intent: true`. `memory_set` can update one record, while batch writes handle up to 50 records in one transaction. Deletion can target a key or a tag. This requirement is intended to prevent an agent from changing stored context without clearly indicating that the user authorized the mutation.

## Setup and configuration

Run `npx -y delx-memory doctor` to check the Node.js version, database writability, and file permissions. The package requires Node.js 20 or newer. A global installation is also supported with `npm install -g delx-memory`, followed by `delx-memory doctor` or `delx-memory`.

The standard command starts the stdio server:

```bash
npx -y delx-memory
```

The delx-memory MCP server can instead run with the full MCP SDK using `--sdk` or `DELX_MEMORY_TRANSPORT=sdk`. `DELX_MEMORY_LEAN=1` reduces the SDK path by skipping prompts and resources. The optional HTTP mode uses `--http` or `DELX_MEMORY_TRANSPORT=http`; it listens on loopback by default and exposes `/health` and a sessionless `/mcp` endpoint. `DELX_MEMORY_HOST` and `DELX_MEMORY_PORT` change its HTTP bind settings.

The database directory is created with mode `0700` and the file with mode `0600` where the platform permits those permissions. No environment variable is required for the default stdio setup.

## Tools and capabilities

- Resume a session with recent keys and store statistics using `memory_handoff`.
- Inspect readiness, size, capabilities, and agent-facing operational information.
- List keys by prefix, tag, or `since` timestamp for delta synchronization.
- Read one key or up to 50 keys in a batch.
- Search stored content with FTS5 BM25 ranking or the fallback matcher.
- Upsert up to 50 records in one transaction, subject to explicit intent.
- Remove individual records or all records associated with a tag.
- Export the store as JSON, JSONL, or Markdown.

## Limitations and notes

The delx-memory MCP server is not a vector database and does not provide embedding-based search. TTL cleanup is best effort: expired rows are deleted on access, and SQLite may retain freed pages until later maintenance. The project also makes no backup or durability promise, so the database should be backed up if its contents matter.

The database remains on the local machine and the project states that it does not upload data, use telemetry, or phone home. Local storage is not encryption: other users with sufficient machine access may be able to read the file. Full-disk encryption is recommended when that threat matters. Secret-like data should go to Keychain, gnome-keyring, Windows Credential Manager, or another dedicated credential store instead.

_Full upstream README: https://allmcps.com/mcp/delx-memory/readme_

