MemPersist logo

MemPersist

Stores revision-pinned conversation memory in Cloudflare R2 and exposes search, context, and batch retrieval over MCP.

Install MemPersist

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://mempersist.codifiedtech.id/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Claude Code command
claude mcp add --transport http mempersist https://mempersist.codifiedtech.id/mcp

Run in your terminal, then run /mcp in Claude Code to sign in if the server asks.

Overview

MemPersist MCP server stores ChatGPT exports and MCP-created memories in Cloudflare R2, with D1 tracking revisions, graphs, and catalog metadata. It builds disposable lexical and vector indexes for hybrid retrieval while treating the R2 archive as canonical. The remote endpoint uses stateless Streamable HTTP and OAuth 2.1 with PKCE, with a developer-token option for scripts and automation. Reach for it when an agent needs durable conversation history, revision-aware reads, and controlled memory writes rather than model-generated fact extraction.

Use cases

  • Search archived ChatGPT conversations from an AI agent
  • Pin and retrieve specific conversation revisions
  • Assemble message context around search results
  • Batch-read conversations by namespace
  • Monitor imports and indexing health

Key features

  • Revision-pinned conversation storage
  • Hybrid lexical and semantic search
  • ChatGPT export preservation
  • Conversation context and graph retrieval
  • Namespace and revision management
  • OAuth and developer-token authentication

Tools24

What MemPersist lets your agent do. Expand a tool for its parameters.

Self-reported~503 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 53d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Tools exposed24Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How MemPersist works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MemPersist

MemPersist is an MCP server that connects AI clients to Cloudflare R2 conversation archives and a D1 catalog. Its main tools search memories, retrieve message context, read conversations and revisions, list namespaces, inspect statistics, and track imports. It also supports intentional memory writes through MCP.

Run the project locally with Yarn, Node.js 22+, Wrangler 4.x, and WSL2 or Linux. Copy `.dev.vars.example` to `.dev.vars`, set `MEMORY_API_TOKEN`, generate bindings, migrate local D1, and start the Worker with `yarn dev`.

Connect the client to `https://mempersist.codifiedtech.id/mcp` as a remote Streamable HTTP MCP server. Interactive clients use OAuth 2.1 with PKCE and a magic-link consent flow; scripts and non-interactive automation can send the developer token as a bearer token.

Yes. Cursor is listed as a supported client and can add the endpoint as a remote HTTP MCP server in its MCP settings, where it starts the OAuth flow.

Yes. It accepts the native `conversations.json` ChatGPT export format, preserves the uploaded bytes in R2, and normalizes the conversation into revision-pinned canonical data. It does not intercept live ChatGPT traffic.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMemPersist AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mempersist?style=directory)](https://allmcps.com/mcp/mempersist)
HTML Embed
<a href="https://allmcps.com/mcp/mempersist"><img src="https://allmcps.com/api/badge/mempersist?style=directory" alt="MemPersist on AllMCPs" /></a>