🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@unclick/memory-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unclick/memory-mcp

Persistent cross-session memory for AI agents. Zero-config local mode or Supabase cloud sync. 6-layer architecture, 17 MCP tools.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@unclick/memory-mcp

Persistent cross-session memory for AI agents. An MCP server that gives Claude Code, Cursor, and any MCP client a 6-layer memory architecture.

Zero-config local mode - works out of the box, no database needed. Supabase cloud mode - sync across machines with your own database.

Quick Start (Local Mode - 30 seconds)

Add to your MCP config and you're done. No accounts, no keys, no database.

Claude Code

Add to ~/.claude/mcp.json:

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

Claude Desktop

Add to your Claude Desktop config:

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

Cursor

Add to ~/.cursor/mcp.json:

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

Restart your AI tool. Memory is now active. Data is stored locally at ~/.unclick/memory/.

Setup Wizard (optional)

npx @unclick/memory-mcp setup

Interactive setup that auto-detects your MCP clients and writes the config for you.

Upgrade to Supabase Cloud

For cross-machine sync, team sharing, or backup, connect your own Supabase project:

  • Create a free project at supabase.com
  • Run schema.sql in your Supabase SQL Editor
  • Update your MCP config:
{
  "mcpServers": {
    "unclick-memory": {
      "command": "npx",
      "args": ["-y", "@unclick/memory-mcp"],
      "env": {
        "SUPABASE_URL": "https://your-project.supabase.co",
        "SUPABASE_SERVICE_ROLE_KEY": "your-service-role-key"
      }
    }
  }
}

Your data lives in YOUR Supabase. UnClick never sees it.

Enable the Session Bridge

Copy CLAUDE.md to your project root or ~/.claude/CLAUDE.md. This teaches the agent to:

  • Load memory at session start (get_startup_context)
  • Store important facts during the session (add_fact)
  • Write a summary before the session ends (write_session_summary)

This is what makes memory work across sessions. Without it, the agent has the tools but won't use them automatically.

Memory Layers

LayerNamePurposeLoaded at startup?
1Business ContextStanding rules, preferences, client infoYes
2Knowledge LibraryVersioned reference docs (briefs, specs, CVs)Index only
3Session SummariesOne per session - decisions, open loopsLast 5
4Extracted FactsAtomic searchable knowledgeHot facts
5Conversation LogFull verbatim historyNo - search only
6Code DumpsLanguage-tagged code blocksNo - on demand

MCP Tools (17)

ToolDescription
get_startup_contextLoad business context + recent sessions + hot facts
search_memoryFull-text search across conversation logs
search_factsSearch extracted facts
search_librarySearch knowledge library docs
get_library_docGet a specific library document by slug
list_libraryList all library documents
write_session_summarySave end-of-session summary
add_factAdd an atomic fact to memory
supersede_factReplace an outdated fact (never deletes)
log_conversationLog a message to conversation history
store_codeStore a code block
get_business_contextGet all business context entries
set_business_contextAdd/update a business context entry
upsert_library_docCreate/update a library document
manage_decayRun memory decay management
get_conversation_detailGet full conversation for a session
memory_statusOverview of memory usage and stats

How It Works

Session Start: Agent calls get_startup_context - loads standing rules, recent session summaries, and hot facts.

During Session: Agent uses add_fact, search_memory, set_business_context etc. as needed.

Session End: Agent calls write_session_summary - next session picks up where this one left off.

Storage Modes

ModeTriggerData locationBest for
LocalDefault (no env vars)~/.unclick/memory/Solo use, getting started
SupabaseSet SUPABASE_URLYour Supabase projectTeams, cross-machine sync

Decay Management

Memory uses a hot/warm/cold tier system. Recent and frequently accessed items stay "hot" (loaded at startup). Older items decay to "warm" then "cold" based on access patterns. Nothing is ever deleted - cold items are still searchable, just not auto-loaded.

License

MIT

Keywords

mcp

FAQs

Package last updated on 13 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts