MemWhale logo

MemWhale

Local SQLite memory for debugging history, exposed to coding agents through stdio or HTTP MCP.

Install MemWhale

Run the project’s own setup commands, in order.

Setup steps from the project

MemWhale installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://raw.githubusercontent.com/wuisabel-gif/MemWhale/7c3864c743cec9a8fa813dcc0b2459cc2859c849/install.sh -o "$installer"
    
  2. 2. Install
    sh "$installer"
    
  3. 3. Install
    cargo install memorywhale-cli
    

Overview

MemWhale MCP server records commands, output, failures, and successful fixes in a local SQLite store, then exposes that history to coding agents. Its `mw-mcp` interface provides six memory tools over stdio, while `mw-serve` makes MCP available at `POST /mcp`. Reach for MemWhale when agents need persistent, project-aware debugging context across terminal sessions, SSH connections, or separate agent sessions. Capture is opt-in, so normal terminal activity is not recorded unless configured through the CLI or hooks.

Use cases

  • Capture commands and failures across terminal sessions
  • Search for fixes to recurring build errors
  • Give coding agents compact context from prior debugging
  • Save lessons that can stop risky commands before execution

Key features

  • Local SQLite storage
  • Six MCP memory tools
  • Stdio and HTTP MCP access
  • Command, output, error, and lesson capture
  • Search and compact error context
  • CLI, TUI, web, and desktop interfaces

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 37d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars144Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.

How MemWhale works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MemWhale

MemWhale is an MCP server that connects coding agents to a local SQLite memory of commands, output, failures, and successful fixes. Its six memory tools let compatible clients search and use debugging history, while the CLI and hooks capture new evidence. It runs locally without an account or hosted memory service.

Install MemWhale with a prebuilt binary, Cargo using `cargo install memorywhale-cli`, or Homebrew using the project tap. Then run `mw --version` and `mw doctor` to verify the installation and local setup. Windows users can run it inside WSL.

Connect through the local `mw-mcp` stdio server, or use `mw-serve` for HTTP MCP at `POST /mcp`. The CLI includes integration commands such as `mw integrate claude`, and `mw doctor` checks MCP configuration, hooks, and skills.

Yes, MemWhale lists Cursor among its compatible coding-agent clients. Cursor can access the shared local memory through the MCP integration, alongside clients including Claude Desktop, VS Code, Windsurf, Zed, Codex CLI, Cline, Continue, and Gemini CLI.

No, MCP access does not automatically capture normal terminal activity. Enable interactive-shell capture with `mw global on`, wrap a command with `mw-run`, run a live session with `mw --live`, or configure agent hooks to write evidence to the local store.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMemWhale AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/memwhale?style=directory)](https://allmcps.com/mcp/memwhale)
HTML Embed
<a href="https://allmcps.com/mcp/memwhale"><img src="https://allmcps.com/api/badge/memwhale?style=directory" alt="MemWhale on AllMCPs" /></a>