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.