# MemHeaven [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/nazar256/memheaven  
**GitHub Stars:** 2  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memheaven

## Description
Self-hosted remote MCP memory server for ChatGPT and AI agents.

## Tools
Capabilities this server exposes over MCP:

- **mempalace_status** — Diagnostics and backend capabilities for memory-relevant chats.
- **mempalace_wake_context** — Start a memory-relevant chat with bounded, privacy-scoped startup context.
- **mempalace_list_wings** — List tenant-scoped wings and active drawer counts.
- **mempalace_list_rooms** — List tenant-scoped rooms and active drawer counts for one wing or all wings.
- **mempalace_get_taxonomy** — Return the current tenant-scoped wing and room taxonomy.
- **mempalace_get_aaak_spec** — Return compact guidance for concise, readable memory notes.
- **mempalace_search** — Search tenant-scoped drawers with hybrid semantic and lexical retrieval.
- **mempalace_check_duplicate** — Check for exact or semantic duplicates before writing memory.
- **mempalace_get_drawer** — Fetch one tenant-scoped drawer with bounded content and provenance.
- **mempalace_list_drawers** — List active tenant-scoped drawers with optional wing and room filters.
- **mempalace_add_drawer** — Add durable drawer content and index it semantically.
- **mempalace_update_drawer** — Update a drawer and reindex changed content or metadata.
- **mempalace_delete_drawer** — Soft-delete a tenant-scoped drawer and remove its semantic index entries.
- **mempalace_diary_write** — Write a concise diary entry and index it for scoped search.
- **mempalace_diary_read** — Read recent diary entries with optional wing and room filters.
- **mempalace_diary_search** — Search diary entries for one explicit agent with hard scope filters.
- **mempalace_diary_reindex** — Backfill or refresh diary semantic index rows for the tenant.
- **mempalace_kg_query** — Query tenant-scoped temporal knowledge-graph facts.
- **mempalace_kg_check** — Run deterministic reliability checks for active KG conflicts and stale facts.
- **mempalace_kg_add** — Add a tenant-scoped temporal knowledge-graph fact.
- **mempalace_kg_invalidate** — Invalidate an exact tenant-scoped knowledge-graph fact.
- **mempalace_kg_timeline** — Show the recent knowledge-graph timeline for an entity or all facts.
- **mempalace_kg_stats** — Return tenant-scoped knowledge-graph statistics.
- **mempalace_traverse** — Traverse the tenant shared-room graph and explicit tunnels.
- **mempalace_find_tunnels** — Find tenant-scoped cross-wing shared rooms that behave like passive tunnels.
- **mempalace_graph_stats** — Return tenant-scoped graph, shared-room, and explicit tunnel statistics.
- **mempalace_create_tunnel** — Create an explicit tenant-scoped tunnel between wing and room locations.
- **mempalace_list_tunnels** — List tenant-scoped explicit tunnels, optionally filtered by endpoint wing.
- **mempalace_delete_tunnel** — Delete a tenant-scoped explicit tunnel by ID.
- **mempalace_follow_tunnels** — Follow explicit tunnels connected to a wing and room location.
- **mempalace_hook_settings** — Return the configured save policy for this deployment.
- **mempalace_memories_filed_away** — Return the latest tenant-scoped write filing status.
- **mempalace_reconnect** — Return configured binding and index health.
- **mempalace_sync** — Report that local filesystem and git sync is unsupported in hosted mode.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/memheaven/readme_

