MCP memory server with decay and frequency-weighted recall

MCP memory server with decay and frequency-weighted recall

mcp-memory-shipitandpray•byshipitandpray

A Model Context Protocol server that stores, retrieves, and prunes agent memories using category-based exponential decay and mention-frequency boosts.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Stores memories and auto-categorizes them from content patterns, assigning decay lifetimes such as 7 days for one-time questions and 180 days for preferences.
  • •Recalls memories ranked by relevance combining base weight, exponential decay, and a mention-count boost.
  • •Prevents duplicates via bigram similarity and lets new preferences supersede conflicting old ones.
  • •Exposes active memories to the agent through the MCP prompts capability.

BEST FOR

  • •Agents that need long-term user memory without letting one-off questions persist as permanent interests.
  • •Assistant applications that must track recurring topics and update stale preferences automatically.

ABOUT MCP-MEMORY-SHIPITANDPRAY

MCP memory server with decay and frequency-weighted recall is cataloged as an MCP server attributed to shipitandpray. A Model Context Protocol server that stores, retrieves, and prunes agent memories using category-based exponential decay and mention-frequency boosts. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP memory server with decay and frequency-weighted recall are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How are old memories cleaned up?

Dead memories are auto-pruned on every recall read.

Does it support the older v0.1.0 tool names?

Yes; old tool names like reinforce, prune, and stats map to the new tools internally with no breaking changes.

Upstream README

View this exact version on GitHub

README.md · 84942c8e7227 · Fetched 2026-11-13 14:14:30 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

mcp-memory

Smart memory for AI agents. Memories decay, topics are frequency-weighted, one-time questions don't become obsessions.

Solves the Karpathy problem: "A single question from 2 months ago keeps coming up as a deep interest with undue mentions in perpetuity."

What's New in v0.2.0

  • Auto-categorization — no need to specify category, inferred from content
  • Semantic dedup — bigram similarity prevents duplicate memories
  • Preference supersede — "prefers dark mode" then "prefers light mode" updates, not duplicates
  • Recall auto-reinforces — searching for a topic counts as a mention
  • Recall auto-prunes — dead memories cleaned up on every read
  • System prompt injection — active memories provided via MCP prompts capability
  • Fuzzy forget — "VS Code" matches "User prefers VS Code for all editing"
  • 7 tools → 4 tools — simpler API, higher adoption (backwards compatible)

In Action

Day 1: User asks 5 questions (Rust, dark mode, Python, job title, Haskell)

  #1 [ACTIVE] rel=1.000 cat=preference "User prefers dark mode in all editors"
  #2 [ACTIVE] rel=0.900 cat=fact       "User works as a senior software engineer"
  #3 [FADING] rel=0.500 cat=question   "User is building a Python web scraper"
  #4 [FADING] rel=0.300 cat=one-time   "User asked about Rust programming"
  #5 [FADING] rel=0.300 cat=one-time   "User asked what Haskell monads are"

Day 2-5: User mentions Python 4 more times → auto-upgraded to "interest"

  #1 [ACTIVE] rel=2.658 mentions=5 cat=interest    "Python web scraper"
  #2 [ACTIVE] rel=1.000 mentions=1 cat=preference  "dark mode"
  #3 [ACTIVE] rel=0.900 mentions=1 cat=fact         "senior software engineer"
  #4 [FADING] rel=0.300 mentions=1 cat=one-time     "Rust" ← FADING, won't obsess
  #5 [FADING] rel=0.300 mentions=1 cat=one-time     "Haskell" ← FADING, won't obsess

After 60 days:
  Rust:   0.3 × 0.5^(60/7) = 0.0008 → DEAD (gone, as it should be)
  Python: 0.8 × 0.5^(60/60) × 3.32 = 1.329 → STILL ACTIVE (real interest)

How It Fixes This

Current LLM Memorymcp-memory
Ask about Rust once → mentioned foreverAsk once → fades in 7 days
All memories equal weightCategories: one-time (7d), question (14d), interest (60d), preference (180d)
No decayExponential decay — old memories naturally fade
No frequency trackingMentioned 5+ times → auto-upgrades from "question" to "interest"
Keyword matchingBigram similarity + relevance scoring
Agent must decide to rememberAuto-categorizes from content patterns
Contradicting preferences coexistNew preference supersedes old one
Manual cleanup requiredAuto-prunes dead memories on recall

Install

"mcpServers": {
  "memory": {
    "command": "npx",
    "args": ["-y", "mcp-memory"]
  }
}

Tools

ToolWhat it does
rememberStore a memory. Auto-categorizes from content. Auto-deduplicates via bigram similarity. Supersedes conflicting preferences.
recallRetrieve memories ranked by relevance. Auto-reinforces top match. Auto-prunes dead memories.
forgetDelete a memory by ID or fuzzy content match.
inspectDebug view: all memories with decay status, relevance scores, category breakdown, health.

Auto-Categorization

No need to specify category — it's inferred from content:

Content PatternAuto-CategoryDecay
"prefers X", "likes X", "always uses X"preference180 days
"works as X", "is a X", "lives in X"fact365 days
"actually X", "meant X", "wrong"correction365 days
"currently building", "working on"context30 days
"what is X", "how to X"one-time7 days
anything elsequestion14 days

You can still override: remember(content: "...", category: "preference")

Examples

Auto-categorized preference:

remember(content: "User prefers TypeScript over JavaScript")
→ Auto-detected as "preference". Persists 180 days.

Semantic dedup:

remember(content: "Works as data scientist at Google")
remember(content: "Works as senior data scientist at Google")
→ Second call reinforces first (80% similar). Keeps longer version.

Preference supersede:

remember(content: "User prefers dark mode")
remember(content: "User prefers light mode")
→ Superseded: "dark mode" → "light mode". One memory, not two.

Recall auto-reinforces:

recall(query: "MCP servers")
→ Returns matching memories AND counts this as a mention.
  mention_count goes from 1 → 2 automatically.

Fuzzy forget:

forget(content: "VS Code")
→ Matches and removes "User prefers VS Code for all editing"

The Math

relevance = base_weight × decay × frequency_boost

where:
  base_weight  = category-specific (0.3 for one-time, 1.0 for preference)
  decay        = 0.5 ^ (age_days / halflife_days)
  freq_boost   = 1 + log2(mention_count)

A one-time question from 2 months ago: 0.3 × 0.5^(60/7) × 1.0 = 0.0003 → effectively zero. Won't surface.

A preference mentioned 8 times, last week: 1.0 × 0.5^(7/180) × 4.0 = 3.89 → top of every recall.

Backwards Compatibility

v0.2.0 still accepts the old v0.1.0 tool names (reinforce, prune, stats). They map to the new tools internally. No breaking changes.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP memory server with decay and frequency-weighted recall from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-memory-shipitandpray)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent