GoodMemory logo

GoodMemory

by hjqcan

Local-first memory for coding agents with scoped recall, audit trails, deletion controls, and optional governed writeback.

Install GoodMemory

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "hjqcan-goodmemory": {
      "command": "npx",
      "args": [
        "-y",
        "goodmemory",
        "mcp",
        "serve",
        "--user-id",
        "<user_id>"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio hjqcan-goodmemory -- npx -y goodmemory mcp serve --user-id '<user_id>'

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y goodmemory mcp serve --user-id <user_id>

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The hjqcan/GoodMemory MCP server provides durable user and project memory for chat applications, coding agents, and MCP hosts. It stores data locally in SQLite by default, with Postgres and injected storage adapters available for other deployments. Read-only recall, context building, tracing, statistics, and artifact inspection are enabled by default, while persistent writeback requires opt-in controls. Reach for it when an agent needs cross-session context that can be reviewed, exported, corrected, or deleted.

Use cases

  • Persist user preferences across coding sessions
  • Recall project context for later agent turns
  • Inspect memory traces and stored artifacts
  • Export or delete incorrect project memory
  • Review governed writeback before persistence

Key features

  • Local SQLite storage by default
  • Optional PostgreSQL and injected adapters
  • Read-only recall, trace, stats, and artifact access
  • Opt-in governed memory writeback
  • Memory import, export, feedback, and deletion
  • Codex and Claude Code host integration

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.

14/14 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · goodmemory (npm)

Adoption & maintenance

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

GitHub stars21Stargazers on the source repository.
npm downloads737Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How GoodMemory works

What the hjqcan/GoodMemory MCP server does

The hjqcan/GoodMemory MCP server adds a durable memory layer between an application or installed agent host and its model runtime. It is intended for user and project information that should persist across conversations or coding sessions. The system can store selected facts, retrieve relevant context for a later turn, record feedback, and remove information that is incorrect or no longer wanted.

It is not an LLM, agent framework, vector database, or general-purpose RAG system. Its scope is memory management and inspection. Memory can be scoped to users and projects, which helps separate information belonging to different workspaces or people.

How it works

The hjqcan/GoodMemory MCP server uses SQLite for durable local storage by default when run with Bun. PostgreSQL, custom storage adapters, and embedding providers can be added when the deployment needs them. No account or hosted service is required for the local setup described in the repository.

The default MCP surface is read-only for inspection. Writeback is opt-in and governed by review, forget, and audit controls rather than being enabled automatically. Installed-host support includes lifecycle hooks, read-only MCP inspection, an installed Codex pre-action, and integration with Claude Code. The repository also describes an Inspector for examining the local memory surface.

Memory can be exported and imported, and all stored memory can be deleted. Audit-oriented features include tracing and statistics, allowing an operator to inspect how memory is being used rather than treating retrieval as an opaque operation.

Setup and configuration

The documented installation path uses the published npm package:

Terminal
npm install -g goodmemory@0.8.3
goodmemory setup
goodmemory status

The setup command can configure installed-host integrations. For a Codex-specific check, the repository shows goodmemory status codex --workspace-root .. The local Inspector can be started with goodmemory inspector serve.

SQLite is the default local backend; PostgreSQL and other adapters are configuration options rather than requirements. The package is also published in the official MCP Registry as io.github.hjqcan/goodmemory.

Tools and capabilities

The documented durable memory API includes:

  • remember for adding selected information.
  • recall for retrieving stored context.
  • buildContext for assembling memory for a model turn.
  • feedback for recording feedback about memory use.
  • forget for removing selected memory.
  • exportMemory and importMemory for moving memory data.
  • deleteAllMemory for clearing stored memory.

The MCP-facing inspection capabilities include recall, tracing, statistics, and artifact access. Public write behavior can be customized through GoodMemoryConfig.remember, RememberProfile, rememberRules, annotations on RememberInput, and named extractor IDs. These options are relevant when an application needs to control which information becomes durable memory.

The hjqcan/GoodMemory MCP server also provides package entry points for the main library, AI SDK use, host integration, and HTTP-related code through its compiled distribution and TypeScript declarations.

Limitations and notes

The repository states that GoodMemory has no current or versioned public benchmark claim for version 0.8.3. Historical and internal evaluation material should therefore not be treated as a verified production performance result. The project specifically distinguishes evidence for memory behavior from claims that coding outcomes have improved.

Durable writeback is not enabled by default. Teams that need automatic persistence must explicitly choose and govern that behavior. The default local storage model may also be unsuitable for deployments that require centralized database operations unless PostgreSQL or another supported adapter is configured.

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 GoodMemory

hjqcan/GoodMemory is an MCP server that connects chat apps, coding agents, and MCP hosts to durable user and project memory. Its main tools include remember, recall, buildContext, feedback, forget, exportMemory, importMemory, and deleteAllMemory, with read-only inspection enabled by default.

Install it with `npm install -g goodmemory@0.8.3`, then run `goodmemory setup` and verify with `goodmemory status`. The documented setup uses local SQLite by default and does not require an account or hosted service.

It describes support for MCP clients generally and provides installed-host integrations for Codex and Claude Code.

It stores memory in durable local SQLite by default when used with Bun. PostgreSQL, injected storage adapters, and embedding providers are available as optional additions for deployments that need them.

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 PreviewGoodMemory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hjqcan-goodmemory?style=directory)](https://allmcps.com/mcp/hjqcan-goodmemory)
HTML Embed
<a href="https://allmcps.com/mcp/hjqcan-goodmemory"><img src="https://allmcps.com/api/badge/hjqcan-goodmemory?style=directory" alt="GoodMemory on AllMCPs" /></a>