Self-hosted remote MCP memory server for ChatGPT and AI agents.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

MemHeaven is a self-hosted remote MCP memory server for ChatGPT and other cloud AI agents.
It gives hosted AI clients searchable long-term memory you own, deployed on Cloudflare. MemHeaven is inspired by MemPalace's long-term-memory model while using a remote deployment shape for hosted clients.
Deploy on a Cloudflare Free account. No VM, no Docker, no database admin.
Free-tier limits apply; heavy usage may require paid Cloudflare usage.
Quick links: Quickstart · Getting started from zero · ChatGPT setup · Client compatibility · Security model · Behavior evals
AI assistants are useful in the moment, but they often forget project context across chats, sessions, and tools.
Built-in memory features can help, but they are usually provider-owned and are not the same thing as an inspectable, searchable memory layer you control. Local-first memory tools are powerful too, but hosted clients like ChatGPT and other remote agents need a remote MCP server.
MemHeaven is for people who want:
Choose MemHeaven when a hosted client or AI agent needs a searchable memory layer that persists outside the current chat:
MemHeaven does not change ChatGPT's built-in memory. It is a separate OAuth-protected MCP service that your client can call for context stored in your own deployment. There is no shared public MemHeaven instance: you operate the Worker, storage bindings, OAuth configuration, and access keys in your Cloudflare account.
If you want ChatGPT to use a searchable memory layer across chats without putting that memory in a shared third-party service, deploy MemHeaven in your own Cloudflare account and connect ChatGPT to your instance's /mcp endpoint. This external memory complements ChatGPT's built-in memory: you can inspect, search, and delete the records stored by your own deployment. See the ChatGPT setup and security model before connecting a client.
MemHeaven is designed for personal use and small trusted-group usage on Cloudflare-managed services.
That means:
Free-tier limits apply. MemHeaven does not promise unlimited free usage, enterprise uptime, or zero cost under every workload. Also note that some underlying Cloudflare services, especially Vectorize, have their own plan and usage constraints, so review the current Cloudflare pricing before a broad rollout.
Then connect your hosted client to:
When the authorization page opens, paste the printed raw_key.
If you want the hand-holding version, use docs/GETTING_STARTED_FROM_ZERO.md.
| Client | Status | Notes |
|---|---|---|
| ChatGPT | Confirmed | Manually verified end-to-end for the /mcp URL, OAuth authorization flow, and a mempalace_status tool call |
| Claude.ai hosted connectors | Expected | Known exact hosted callback is allowlisted, but public docs do not expose the URL and end-to-end verification is still needed |
| Local IDE / CLI MCP clients | Expected | Generic localhost / 127.0.0.1 / [::1] loopback OAuth callbacks are already allowed |
| VS Code / GitHub Copilot MCP | Expected for local loopback; hosted OAuth unknown | Generic localhost callbacks are allowlisted; no exact vscode.dev hosted callback is currently pre-allowlisted |
| Grok / xAI | Expected with bearer/header auth | Treat as an Authorization: Bearer <OAuth access token> integration for /mcp, not as a hosted OAuth callback allowlist target |
| Perplexity / Abacus | Not applicable / Unknown | No confirmed hosted-client callback contract is allowlisted |
Full details: docs/CLIENT_COMPATIBILITY.md
Use MemHeaven conservatively for writes and proactively for reads when prior context matters. The MCP tools return their own detailed guidance, so the ChatGPT/custom-agent instruction can stay short.
Copy-paste instruction for agents:
Full guide: docs/AGENT_MEMORY_PROTOCOL.md
MemHeaven is inspired by MemPalace, the open-source local-first AI memory project that helped show how useful verbatim, searchable long-term memory can be for AI agents.
MemPalace made a strong case for keeping original context and organizing it in a navigable memory structure. MemHeaven explores a different deployment shape: remote MCP memory for hosted clients and trusted shared setups.
We see that as complementary to MemPalace’s on-device approach, not a replacement for it.
/mcp endpoint.docs/GETTING_STARTED_FROM_ZERO.mddocs/CLIENT_COMPATIBILITY.mddocs/AGENT_MEMORY_PROTOCOL.mddocs/SECURITY.mdWebStandardStreamableHTTPServerTransport with per-request stateless bootstrap.mempalace_* tool surface, including adapted local-only tools.Use the local eval harness before/after retrieval, wake-context, or KG behavior changes:
The optional remote smoke/eval skips safely unless configured with environment variables:
See docs/BENCHMARKS.md. These are MemHeaven self-evals with synthetic fixtures, not MemHeaven-vs-MemPalace benchmark claims.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/memheaven)<a href="https://allmcps.com/mcp/memheaven"><img src="https://allmcps.com/api/badge/memheaven?style=directory" alt="MemHeaven on AllMCPs" /></a>