# MemPersist [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/ravhirizaldi/mempersist  
**GitHub Stars:** 2  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mempersist

## Description
Durable, revision-pinned memory storage and retrieval for AI conversations.

## Tools
Capabilities this server exposes over MCP:

- **memory_search** — Hybrid search, 1–20 references; filters and opaque cursor pagination
- **memory_get_context** — Canonical messages around one result chunk, up to 10 each way
- **memory_get_conversation** — Page one conversation's active timeline or full graph
- **memory_get_messages** — Exact source-node or optional keyed lookup, revision-pinned, ordered batch with opaque cursor and byte budget
- **memory_get_conversations** — Revision-pinned batch read of 1–20 conversations, cursor-paged
- **memory_list_conversations** — Metadata and tags only, no bodies
- **memory_list_revisions** — Immutable revision history, newest first
- **memory_resolve_conversations** — Exact-title lookup, no semantic search
- **memory_list_namespaces** — Owned namespaces with conversation counts
- **memory_stats** — Per-namespace counts and indexing health
- **memory_import_status** — Import progress, duplicate, or failure
- **memory_get_capabilities** — The deployed contract: versions, limits, per-tool bounds, and `message_keys` / `atomic_multi_conversation_commit` feature flags
- **memory_build_context** — Deterministic, revision-pinned pack from 1–20 required conversations, optional hybrid evidence, explicit token and byte budgets
- **memory_store** — New intentional memory; first write claims a namespace you name
- **memory_upsert_messages** — Atomic 1–100 insert/update/no-op by exact key; required base revision
- **memory_append** — Continue a conversation with `base_revision_id
- **memory_replace** — Supersede with a complete transcript, preserving identity and tags
- **memory_commit_batch** — Atomically append/replace 1–20 conversations with explicit base revisions
- **memory_edit_messages** — Edit 1–100 known source nodes in place; structured content is rejected
- **memory_restore_revision** — Move the head back to a historical revision, no duplicate revision
- **memory_copy_conversations** — Lossless R2 copy into another owned namespace, idempotency-keyed
- **memory_update_tags** — Add or remove tags under optimistic concurrency
- **memory_delete_conversations** — Up to 100, canonical and derived data together after exact confirmation
- **memory_empty_namespace** — Bounded, resumable batch empty after exact confirmation

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "mempersist": {
    "url": "https://mempersist.codifiedtech.id/mcp"
  }
}
```

## Documentation

## What MemPersist MCP server does

MemPersist MCP server provides durable storage and retrieval for AI conversation memory. It accepts native ChatGPT `conversations.json` exports and also accepts memory writes through MCP clients. Both paths are normalized into a shared revision model, allowing imported and newly created memories to use the same retrieval, pinning, and recovery behavior.

The canonical archive preserves uploaded export bytes and normalized conversation data in Cloudflare R2. Cloudflare D1 stores the catalog, conversation graph metadata, revisions, and pointers into R2. Search data is derived separately, so deleting or rebuilding lexical and vector indexes does not remove the underlying memory.

The system is designed for a single operator in its first version. It does not monitor ChatGPT traffic, extract replacement facts, summarize conversations with a model, or make indexes authoritative.

## How it works

A write is validated and assigned stable identifiers before its canonical revision is stored. Only after that durable operation does the system queue indexing work. D1 FTS5 supports lexical search, while Workers AI using BGE-M3 produces embeddings for Vectorize. Retrieval combines these sources and can fall back to recent canonical data when derived indexes are unavailable.

Imports and MCP writes remain separate ingestion paths, but they converge on the same canonical revision structure. Rebuilds read from R2, so the original export does not need to be uploaded again. The MCP endpoint is stateless Streamable HTTP at `https://mempersist.codifiedtech.id/mcp` and protects interactive access with OAuth 2.1 authorization code flow and PKCE S256. The available OAuth scope is `memory`.

## Setup and configuration

For local development, install dependencies with Yarn, copy `.dev.vars.example` to `.dev.vars`, set a long random `MEMORY_API_TOKEN`, generate bindings, apply local database migrations, and start the Worker. The documented environment requires WSL2 or Linux, Node.js 22 or newer, Yarn 1.22, and Wrangler 4.x authenticated with `yarn wrangler whoami`.

Local D1, R2, KV, and Queues are simulated. The main configuration uses remote Workers AI and Vectorize bindings, although unit and integration tests do not call remote AI. A local HTTPS server can use an origin override so OAuth discovery and token audiences point to the development endpoint.

Clients connect to the deployed URL as a remote HTTP MCP server. OAuth consent uses an email and a single-use, 15-minute magic link. Non-interactive scripts can instead send the developer token as a bearer token; that token maps requests to the owner archive.

## Tools and capabilities

The documented read tools include:

- `memory_search` for hybrid search with filters, reference limits, and cursor pagination.
- `memory_get_context` for messages around a selected result chunk.
- `memory_get_conversation` for reading an active timeline or a full conversation graph.
- `memory_get_conversations` for cursor-paged, revision-pinned batch reads.
- `memory_list_conversations` for metadata and tags without message bodies.
- `memory_list_revisions` for immutable revision history.
- `memory_resolve_conversations` for exact-title lookup.
- `memory_list_namespaces` for owned namespaces and conversation counts.
- `memory_stats` for namespace counts and indexing health.
- `memory_import_status` for import progress, duplicates, and failures.
- `memory_get_capabilities` for deployed versions, limits, bounds, and flags.

MemPersist MCP server also supports intentional writes, but the provided tool listing does not identify those write-tool names or their individual parameters.

## Limitations and notes

MemPersist MCP server is scoped to one operator and does not provide billing, organizations, or speculative multi-tenancy. Cloudflare service limits and billing still apply even though there is no application-level message quota. It does not use Durable Objects, Workflows, cron triggers, or containers.

The ChatGPT import parser accepts the native `conversations.json` format only. Indexes are disposable and never the source of truth. A failed indexing job does not mean the durable canonical write was lost, but retrieval quality or availability may depend on the current index state and canonical fallback behavior.

_Full upstream README: https://allmcps.com/mcp/mempersist/readme_

