# MarsNMe [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Marsmanleo/MarsNMe  
**GitHub Stars:** 7  
**npm Downloads (last month):** 454  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/marsnme

## Description
Agent-agnostic memory backend that preserves continuity between humans and AI over time.

## Tools
Capabilities this server exposes over MCP:

- **insert_memory** — Store short-term memory
- **list_memories** — List recent memories
- **search_memories** — Semantic search via Jina embeddings
- **recall** — Long-term chunk recall — ~80-char preview per match
- **get_summary** — Medium excerpt (~300 chars) of a chunk by ID
- **get_full** — Complete text of a long-term chunk by ID
- **memory_ingest** — Ingest long-term insight chunks
- **dream_ingest** — Dream-mode long-term ingestion
- **session_boot** — Start a session with context pre-load
- **session_close** — Close session, summarize, auto-promote expiring memories
- **health_check** — Coverage, expiry, conflict diagnostics
- **reload_source_registry** — Refresh source whitelist at runtime
- **demote_memory** — Demote a memory to lower priority
- **soft_forget** — Soft-delete a memory
- **explain_memory** — Explain a memory's provenance
- **batch_promote** — Promote expiring short-term memories to long-term

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "marsnme": {
    "command": "npx",
    "args": ["-y","@marsnme/mcp-gateway"],
    "env": {
      "SUPABASE_BASE_URL": "",
      "SUPABASE_SERVICE_ROLE_KEY": "",
      "JINA_API_KEY": "",
      "MCP_PROFILE": ""
    }
  }
}
```

**Requires environment variables:** `SUPABASE_BASE_URL`, `SUPABASE_SERVICE_ROLE_KEY`, `JINA_API_KEY`, `MCP_PROFILE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What MarsNMe MCP server does

MarsNMe MCP server gives MCP-compatible AI tools a shared memory backend rather than keeping context isolated to one conversation or client. It supports two memory tiers: short-term memories with expiration behavior and long-term insight chunks that can be searched and retrieved at different levels of detail.

The server is intended for workflows where several assistants need access to the same decisions, preferences, project details, or prior discussions. Profiles can be isolated with `MCP_PROFILE`, allowing separate memory spaces. The repository describes the system as agent-agnostic and LLM-agnostic, so the backend is not limited to one assistant vendor.

MarsNMe is focused on memory and continuity. Product-requirement and task-execution tools were removed from the Supabase gateway in version 0.3.0; those workflows are handled by the separate Draft project.

## How it works

Short-term content can be written with `insert_memory` and reviewed with `list_memories`. Long-term material can be added through `memory_ingest` or `dream_ingest`. `search_memories` performs semantic search using Jina embeddings, while the recall flow limits the amount of returned text: `recall` provides an approximately 80-character preview, `get_summary` returns an approximately 300-character excerpt, and `get_full` returns the complete chunk when more detail is needed.

A client can call `session_boot` to begin with preloaded context and `session_close` to summarize a session. Closing a session can automatically promote up to five short-term memories that are close to expiry, using a 48-hour window. A session can also leave a note for another body or agent to receive during its next boot.

Lifecycle tools cover promotion, demotion, soft deletion, provenance inspection, and diagnostics. `health_check` reports coverage, expiry, and conflict information; `explain_memory` describes a memory's provenance; and `reload_source_registry` refreshes the runtime source whitelist.

## Setup and configuration

The simplest route is the hosted setup wizard at `mcp.marsnme.com/setup`. It asks for a username, Supabase credentials, and preferences, then produces a personal MCP URL that can be added to an MCP client.

For the Supabase gateway, create a Supabase project and provide its URL, service-role key, and a Jina API key. The relevant environment variables are:

- `SUPABASE_BASE_URL`
- `SUPABASE_SERVICE_ROLE_KEY`
- `JINA_API_KEY`
- `MCP_PROFILE`

The service-role key must remain private and should not be committed to source control. A free Supabase plan and Jina's free tier are described as sufficient for the initial setup.

The repository also includes a Cloudflare-based option in `marsnme-cf/`, using Cloudflare Workers, D1, and Vectorize without Supabase. This is a self-hosted template and is distinct from the Supabase deployment path. The repository also documents a Cloudflare routing worker for the public MCP URL.

## Tools and capabilities

MarsNMe MCP server exposes tools for:

- Writing and browsing short-term memories.
- Searching long-term memory with semantic embeddings.
- Reading long-term content as a preview, summary, or full chunk.
- Ingesting ordinary and dream-mode long-term insights.
- Booting and closing sessions with context loading and summarization.
- Promoting expiring memories or demoting them to lower priority.
- Soft-forgetting memories without describing hard deletion.
- Checking coverage, expiry, and conflicts.
- Inspecting provenance and refreshing the source whitelist.

The three-stage recall design is useful when returning complete stored text on every search would create unnecessary context. Clients can begin with a preview and request more content only for relevant matches.

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

