SuperAPIAI Directory

memheaven

github.com · AI agents

Self-hosted, remotely accessible shared long-term memory for AI agents.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

MemHeaven is a self-hostable, searchable remote MCP memory server for ChatGPT and other cloud AI agents. It provides users with a long-term memory layer that they own, can inspect, search, and delete, deployed on Cloudflare. MemHeaven is inspired by MemPalace's long-term memory model, but adopts a remote deployment form to suit hosted clients.

Purpose

AI assistants are useful in the moment, but often forget project context across different chats, sessions, and tools. Built-in memory features are usually owned by the provider and are not a user-controllable, inspectable, searchable memory layer. Local-first memory tools are powerful, but hosted clients like ChatGPT need a remote MCP server. MemHeaven is for users who want searchable memory, inspectable and deletable stored context, cross-session continuity for coding agents and other AI workflows, and a remote MCP deployment rather than a laptop-only scenario.

Key Capabilities

MemHeaven is a standalone, OAuth-protected MCP service that clients can call to retrieve context stored in their own deployment. There is no shared public MemHeaven instance: users run the Worker, storage bindings, OAuth configuration, and access keys in their own Cloudflare account.

Core components include:

  • Worker running the HTTP server
  • D1 storing relational metadata and indexes
  • R2 storing drawers and journal bodies
  • Vectorize providing semantic vector search
  • Workers AI generating embeddings

No database management, no long-running server process. Free tier limits apply, and heavy use may require paid Cloudflare usage.

Key features include: OAuth 2.1 + PKCE + dynamic client registration, compatible with ChatGPT's remote MCP; access-key-based consent page backed by stateless JWT authentication artifacts; tenant-scoped drawer, journal, knowledge graph, and tunnel storage; Streamable HTTP MCP server using WebStandardStreamableHTTPServerTransport; MemPalace-compatible mempalace_* toolset; Worker-safe semantic search using Workers AI embeddings + Vectorize + R2/D1 hydration; quota guardrails, redacted audit logs, smoke scripts, and local test coverage; synthetic memory behavior evaluation for retrieval, scope isolation, tenant isolation, and KG lifecycle regression.

Usage

The fastest path requires a Cloudflare account (with Workers, D1, R2, Vectorize, and Workers AI enabled), and wrangler already authenticated to the target Cloudflare account. Steps include: install dependencies (npm install); choose a public base URL (origin only, without /mcp); create a local Wrangler configuration (cp wrangler.toml.example wrangler.toml); create Cloudflare resources, patch wrangler.toml, and apply remote migrations (npm run init -- --base-url ...); generate valid key material (npm run secrets:generate); upload the generated secrets (npx wrangler secret put JWT_SIGNING_SECRET, etc.); generate the first access key and sync ACCESS_KEYS_JSON (npm run keygen -- --tenant personal --label "Personal"); after local verification, deploy (npm run lint, npm run typecheck, npm test, npm run build, npx wrangler deploy --dry-run --outdir .tmp/wrangler-bundle, npx wrangler deploy). Once complete, connect the hosted client to the /mcp endpoint and paste the printed raw_key on the authorization page.

Use Cases

  • ChatGPT needs to retrieve project decisions, preferences, notes, or other persistent context across chats
  • Remote MCP clients cannot rely on a memory service running only on the user's laptop
  • Different users or workflows need tenant-scoped access to stored context
  • Users want to inspect, search, and delete records held in their own deployment

Limitations

MemHeaven does not change ChatGPT's built-in memory.It is a standalone, OAuth-protected MCP service. Free tier limits apply, with no promise of unlimited free usage, enterprise-grade uptime, or zero cost under any workload. Some underlying Cloudflare services (especially Vectorize) have their own plans and usage limits, and current Cloudflare pricing should be reviewed before large-scale deployment. This is an MVP that intentionally omits generic search/fetch aliases. All exposed MCP tools provide structured outputSchema metadata.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools