MemHeaven logo

MemHeaven

Self-hosted Cloudflare MCP memory server for searchable, tenant-scoped drawers, diaries, knowledge graphs, and tunnels.

Install MemHeaven

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

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for MemHeaven, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The MemHeaven MCP server gives ChatGPT and other remote AI agents a self-hosted, searchable memory layer over Streamable HTTP. It stores metadata in Cloudflare D1, full drawer and diary content in R2, and uses Workers AI with Vectorize for semantic retrieval. OAuth 2.1, access keys, and tenant scoping control access to stored context. Reach for it when a hosted client needs durable project context that you can inspect, search, and delete in your own Cloudflare account.

Use cases

  • Persist project decisions across ChatGPT conversations
  • Search tenant-scoped notes from a remote coding agent
  • Review and delete stored memory in your Cloudflare account
  • Track durable facts with a temporal knowledge graph

Key features

  • Remote Streamable HTTP MCP endpoint
  • Tenant-scoped drawers and diary storage
  • Hybrid semantic and lexical memory search
  • Temporal knowledge-graph operations
  • Shared-room graph and tunnel traversal
  • OAuth 2.1, PKCE, and access-key authorization

Tools34

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

Self-reported~705 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.

15/15 checks healthy over the last 83d

Supply-chain signal

2 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 1Medium 2Low 0

Scanned 9/14/2026 via OSV.dev · https://memory.example.com/mcp (npm)

Adoption & maintenance

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

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

How MemHeaven works

What the MemHeaven MCP server does

The MemHeaven MCP server provides remote, tenant-scoped memory for ChatGPT and other AI agents. It is intended for durable context that should persist across chats, sessions, editors, or tools, including project decisions, preferences, notes, and other concise facts.

Memory is organized into wings, rooms, and drawers. Drawers hold durable content and provenance, while diary entries provide a separate time-oriented record. The service also supports temporal knowledge-graph facts and graph relationships through shared rooms and explicit tunnels. Records can be inspected, searched, updated, invalidated, or soft-deleted through MCP tools.

This is external memory, not a replacement for a client’s built-in memory. There is no shared public deployment; each operator runs the Worker and its Cloudflare storage, authentication, and access-key configuration.

How it works

A Cloudflare Worker exposes OAuth endpoints and an authenticated /mcp endpoint using Streamable HTTP MCP. D1 stores metadata, indexes, knowledge-graph data, tunnel definitions, quotas, and audit records. R2 stores full drawer and diary bodies. Workers AI creates embeddings, and Vectorize supports semantic search over chunked content.

The MemHeaven MCP server uses access keys to authorize users and associate requests with tenant-scoped memory. Startup guidance can be requested with mempalace_wake_context; the returned context is bounded and privacy-scoped. Search combines semantic and lexical retrieval, while diary and knowledge-graph operations provide more targeted ways to recover prior information.

Setup and configuration

Deploy the project to a Cloudflare account with a Worker, D1, R2, Vectorize, and Workers AI configured. The documented setup begins by installing dependencies, copying wrangler.toml.example, initializing the deployment with its base URL, and generating secrets.

The required secrets are JWT_SIGNING_SECRET, TOKEN_ENCRYPTION_KEY, and AUTH_KEY_PEPPER. Generate an access key for a tenant, deploy the Worker, and connect a supported client to the deployment’s /mcp URL. During authorization, the client uses the generated raw key. Cloudflare free-tier limits apply, and larger workloads may require paid usage.

Tools and capabilities

The MemHeaven MCP server exposes tools for:

  • Checking service status, backend capabilities, taxonomy, and memory-writing guidance.
  • Listing wings, rooms, drawers, and active drawer counts.
  • Searching, reading, adding, updating, and soft-deleting drawers.
  • Writing, reading, searching, and reindexing diary entries.
  • Adding, querying, invalidating, checking, and reviewing timelines for temporal knowledge-graph facts.
  • Traversing shared-room graphs and creating, listing, following, or deleting explicit tunnels.
  • Returning graph and knowledge-graph statistics.

Use duplicate checks before adding memory when exact or semantic repetition is a concern. Keep work, personal, and project scopes separate, and save durable facts rather than transient conversation content.

Limitations and notes

The service is designed for personal use and small trusted groups rather than an unlimited or enterprise deployment. Cloudflare plan and service constraints, especially for Vectorize, affect capacity and cost. Hosted-client compatibility varies: ChatGPT has been manually verified for the /mcp URL, OAuth flow, and a status-tool call; local IDE and CLI clients are expected to work, and VS Code is expected for local loopback OAuth callbacks. Hosted OAuth behavior for some clients still requires verification.

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 MemHeaven

MemHeaven is an MCP server that connects ChatGPT and other remote AI agents to self-hosted Cloudflare memory storage. Its main tools manage searchable drawers, diary entries, temporal knowledge-graph facts, and graph tunnels, with tenant-scoped access, semantic retrieval, inspection, updates, and deletion.

Install it by configuring the project for Cloudflare, creating the required secrets, generating a tenant access key, deploying the Worker, and connecting a client to `/mcp`. The documented flow uses `npm install`, `wrangler.toml`, the initialization script, and `npx wrangler deploy`.

Yes, ChatGPT is manually verified with MemHeaven’s `/mcp` URL, OAuth authorization flow, and `mempalace_status` tool call. You must deploy your own instance and connect ChatGPT to that deployment; MemHeaven does not modify ChatGPT’s built-in memory.

MemHeaven stores metadata and indexes in Cloudflare D1, full drawer and diary bodies in R2, and semantic vectors in Vectorize. Workers AI generates embeddings, while the Cloudflare Worker serves the authenticated MCP endpoint.

Yes, MemHeaven can search tenant-scoped drawers with hybrid semantic and lexical retrieval, fetch records with provenance, and soft-delete drawers. It also provides diary search and tools for inspecting, updating, or invalidating other supported memory records.

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 PreviewMemHeaven AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/memheaven?style=directory)](https://allmcps.com/mcp/memheaven)
HTML Embed
<a href="https://allmcps.com/mcp/memheaven"><img src="https://allmcps.com/api/badge/memheaven?style=directory" alt="MemHeaven on AllMCPs" /></a>