Feedback Memory logo

Feedback Memory

Stores rules and review decisions, then retrieves relevant corrections before an agent drafts new content.

Install Feedback Memory

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": {
    "feedback-memory": {
      "command": "npx",
      "args": [
        "-y",
        "github:ssap-pa/self-learning-agent-setup"
      ],
      "env": {
        "OPENAI_API_KEY": "YOUR_VALUE_HERE",
        "FEEDBACK_MEMORY_DIR": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env OPENAI_API_KEY=YOUR_VALUE_HERE --env FEEDBACK_MEMORY_DIR=YOUR_VALUE_HERE --transport stdio feedback-memory -- npx -y github:ssap-pa/self-learning-agent-setup

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

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

feedback-memory gives agents persistent memory for user approvals, edits, rejections, and standing preferences. It stores this information in a local Postgres database using PGlite and pgvector, then retrieves the closest prior corrections before drafting. The server uses offline hashed-word embeddings by default, with optional OpenAI text-embedding-3-small embeddings for meaning-based matches. Reach for it when repeated review feedback should influence future posts, replies, emails, documentation, or code.

Use cases

  • Recall brand and style corrections before drafting replies
  • Record user edits and rejection reasons after review
  • Save standing preferences that should apply to every draft
  • Inspect recent decisions and active rules
  • Remove outdated rules or corrections by ID

Key features

  • Similarity search over past feedback
  • Persistent local memory with PGlite and pgvector
  • Separate standing rules and situation-specific decisions
  • Offline embeddings with optional OpenAI embeddings
  • Claude Code plugin and stdio MCP usage
  • Memory inspection and deletion tools

Tools5

What Feedback Memory lets your agent do. Expand a tool for its parameters.

Verified live~649 tokens of context

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.

12/12 checks healthy over the last 50d

What it can do

From the 5 tools this server returned when we ran it.

Can delete or modify data · 1Makes changes · 1Read-only tools · 3
Network at startup4 connections
Files written at startup30

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · github:ssap-pa/self-learning-agent-setup (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Tools exposed5Callable tools this server registers over MCP.

How Feedback Memory works

What feedback-memory does

feedback-memory records how a user responds to agent-generated work and makes that history available during later drafts. Approvals, edits, and rejections can be stored with the situation and the reason behind the decision. A final edited version can also be saved so future responses can follow the wording the user chose.

Standing preferences are stored separately as rules. These are intended for instructions that should apply broadly, such as avoiding exclamation marks or using database values for prices. Rules are returned before situation-specific corrections.

The server is suited to agents that produce material for review, including posts, replies, emails, documentation, commit messages, and style-sensitive code.

How it works

Before drafting, the agent sends the task to recall_corrections. The server returns active rules and the most similar past decisions, ordered from the closest match onward. After the user approves, edits, or rejects the result, the agent calls record_decision to preserve the outcome and any stated reason.

Feedback is searched by embedding similarity rather than only exact keywords. The default offline mode hashes words and applies light stemming, so related forms such as “shipping” and “ship” can match when they share usable terms. An optional OpenAI embedding mode uses text-embedding-3-small instead.

The repository also contains a Postgres schema with tables for runs, feedback, and rules, plus a similarity-search function using pgvector. The included demo can run with PGlite or pg and shows the feedback loop across multiple days of example decisions.

Setup and configuration

For Claude Code, install the plugin with:

text
/plugin marketplace add https://github.com/ssap-pa/self-learning-agent-setup.git
/plugin install feedback-memory@ssap-pa

The MCP server can also be added directly with claude mcp add, or configured through the mcpServers JSON format used by Cursor and Claude Desktop. Claude Desktop also has a downloadable .mcpb bundle.

The direct server command uses npx -y github:ssap-pa/self-learning-agent-setup. Its local database is kept under ~/.feedback-memory. Set FEEDBACK_MEMORY_DIR when separate running clients need separate database folders. Set OPENAI_API_KEY to enable OpenAI embeddings; leaving it unset uses the offline embedding implementation.

Add workflow instructions to the agent, such as calling recall_corrections before reviewable drafts and record_decision after an approval, edit, or rejection. Avoid installing the plugin and a separate MCP instance for the same client, because both use the same local memory directory by default.

Tools and capabilities

  • recall_corrections: Retrieves standing rules and similar past decisions for a proposed task.
  • record_decision: Stores an approval, edit, or rejection, including a reason or the final edited text.
  • add_rule: Saves a preference intended to apply in every relevant recall.
  • list_memory: Displays active rules, recent decision IDs, and seven-day approval, edit, and rejection counts.
  • forget: Removes one rule or stored decision by its ID.

Limitations and notes

The server stores memory locally, so each client normally uses its own database folder unless configured otherwise. Offline matching is based on hashed words and light stemming; corrections expressed with no meaningful overlap may not be retrieved as reliably as they are with OpenAI embeddings.

The agent must call the relevant tools, or use the provided Claude Code hooks and plugin behavior, for feedback to affect later work. The repository’s broader pattern also distinguishes durable rules from situation-specific memories: a recurring correction can inform a proposed rule, but stored feedback is not automatically described as an active rule. The demo uses in-memory PGlite and does not require a database or API key.

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 Feedback Memory

feedback-memory is an MCP server that connects an agent to local Postgres memory for user rules and review decisions. Its main tools recall similar corrections before drafting, record approvals, edits, and rejections afterward, add standing rules, inspect stored memory, and remove outdated entries by ID.

Install it with `npx -y github:ssap-pa/self-learning-agent-setup` through an MCP client configuration. Claude Code can use `claude mcp add feedback-memory -- npx -y github:ssap-pa/self-learning-agent-setup`; Cursor and Claude Desktop can use the equivalent `mcpServers` JSON entry.

Yes, feedback-memory works with Cursor through its MCP configuration. Add a server named `feedback-memory` with `npx` and the GitHub package as its argument, then instruct the agent to call `recall_corrections` before drafting and `record_decision` after review.

It searches stored feedback by embedding similarity. Without an API key, it hashes words locally with light stemming; with `OPENAI_API_KEY`, it can use OpenAI’s `text-embedding-3-small` embeddings to match situations by meaning.

Set `FEEDBACK_MEMORY_DIR` to a different folder for each client or process. By default, the server stores its local database under `~/.feedback-memory`, so installing it multiple ways can otherwise make clients share the same memory.

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