# hjqcan/GoodMemory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/hjqcan/GoodMemory  
**GitHub Stars:** 21  
**npm Downloads (last month):** 737  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hjqcan-goodmemory

## Description
Local-first, auditable memory layer for Codex, Claude Code, and MCP clients. Stores scoped user/project memory in SQLite or Postgres, exposes read-only recall, trace, stats, and artifact tools by default, and supports opt-in governed writeback with review, forget, and audit controls. Published as io.github.hjqcan/goodmemory in the official MCP Registry.

## Claude Desktop Quick Installation
Install path inferred — verify against the README before running it. Uses `npx` (confidence: medium):

```json
"mcpServers": {
  "goodmemory": {
    "command": "npx",
    "args": ["-y","goodmemory","mcp","serve","--user-id","<user_id>"]
  }
}
```

## Documentation

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

```bash
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.

_Full upstream README: https://allmcps.com/mcp/hjqcan-goodmemory/readme_

