# MemWhale [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/wuisabel-gif/MemWhale  
**GitHub Stars:** 144  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memwhale

## Description
Persistent, local memory for developers and their coding agents. Records commands, output, errors, and the fixes that worked into SQLite and serves them over MCP.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/wuisabel-gif/MemWhale), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/wuisabel-gif/MemWhale/7c3864c743cec9a8fa813dcc0b2459cc2859c849/install.sh -o "$installer"
```

2. Install:

```sh
sh "$installer"
```

3. Install:

```sh
cargo install memorywhale-cli
```

## Documentation

## What MemWhale does

MemWhale keeps a local record of development and debugging work. It can preserve commands, their output, failures, the surrounding environment, and lessons about fixes that worked. That record remains available after a terminal, SSH connection, or coding-agent session ends.

The stored evidence is held in SQLite and can be searched or condensed into context for an agent. The system is intended as a debugging memory layer rather than an autonomous coding agent, a general personal-memory system, or a substitute for project documentation. It works without an account or hosted memory service, and its local-first design avoids uploading the captured material.

## How it works

MemoryWhale separates capture from retrieval. Shell capture, `mw-run`, live sessions, and agent hooks can write development events to the local store. The MCP interface reads and writes that shared memory, but connecting an MCP client does not by itself record ordinary terminal activity.

The command-line workflow includes commands for enabling global interactive-shell capture, wrapping one command with `mw-run`, saving a lesson with `mw remember`, searching prior incidents, and producing compact context with `mw context --last-error`. Longer sessions can run with `mw --live`. The same store is also available through a terminal UI, web dashboard, and desktop application.

Repository discovery uses local Git metadata. Linked worktrees can share a canonical repository identity while retaining their individual worktree roots and project tags. GitHub context is fetched only when explicitly requested with `mw github context <pr>` through an existing `gh` login; it is not synchronized in the background or automatically saved to memory.

## Setup and configuration

Install a prebuilt binary on Linux x86_64 or aarch64, or on macOS, or install the CLI with Cargo or Homebrew. Windows users can run it inside WSL. After installation, run `mw --version` and `mw doctor` to check the local setup.

The common MCP integration is `mw-mcp`, a local stdio server. `mw integrate claude` and `mw integrate rho` configure supported agent access, while `mw doctor` checks MCP, hooks, and skills independently. `mw-serve` starts the local web dashboard and provides HTTP MCP at `POST /mcp`; adding `--api` enables its read-only JSON API. Requests from outside the loopback interface require a token.

A desktop application is also shipped with releases and displays agent instructions, command output, lessons, and incoming notes from the menu bar.

## Tools and capabilities

- Capture interactive shell commands and output.
- Wrap individual commands with `mw-run`.
- Record crash-resistant live sessions.
- Save lessons for later retrieval.
- Search previous failures and fixes.
- Generate compact context for agents.
- Expose shared memory through six MCP tools over stdio or HTTP.
- Browse the store through the TUI, web dashboard, or desktop app.
- Import knowledge from selected Claude Code, Codex, ChatGPT, and Claude conversations for approval.
- Use a pre-run hook to stop a command when it matches a saved lesson.

## Limitations and notes

MemoryWhale records development experience rather than all personal information. Capture and retrieval are separate, and MCP access alone does not collect shell activity. The HTTP server uses the dashboard listener; non-loopback access requires a token. GitHub context retrieval is explicit and bounded, and does not check out code or perform automatic synchronization.

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

