npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@whenmoon-afk/memory-mcp

v2.5.0

Published

Brain-inspired memory for AI agents - MCP server

Readme

Memory MCP

npm version License: MIT

Local, persistent memory for Claude Desktop and MCP-compatible AI assistants.

A lightweight MCP server that gives your AI durable, searchable memory — entirely on your machine. Built with TypeScript, SQLite + FTS5, and minimal dependencies.

Quick Start

Choose your installation method below based on your platform and preference.

Option 1: Direct from GitHub (Always Latest)

This method fetches directly from GitHub, bypassing npm cache issues.

macOS / Linux:

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, ~/.config/Claude/claude_desktop_config.json on Linux):

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "github:whenmoon-afk/claude-memory-mcp"]
    }
  }
}

Windows (Command Prompt wrapper):

Add to your Claude Desktop config (%APPDATA%/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "memory": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "github:whenmoon-afk/claude-memory-mcp"]
    }
  }
}

Windows (Full npx.cmd path - alternative):

{
  "mcpServers": {
    "memory": {
      "command": "C:\\Program Files\\nodejs\\npx.cmd",
      "args": ["-y", "github:whenmoon-afk/claude-memory-mcp"]
    }
  }
}

WSL Users: Use the macOS/Linux config above.

Option 2: Global Install (Most Reliable)

Install globally for offline support and faster startup:

npm install -g @whenmoon-afk/memory-mcp

Find your global npm path:

npm root -g

Then add to Claude Desktop config:

{
  "mcpServers": {
    "memory": {
      "command": "node",
      "args": ["YOUR_GLOBAL_PATH/node_modules/@whenmoon-afk/memory-mcp/dist/index.js"]
    }
  }
}

Replace YOUR_GLOBAL_PATH with the output from npm root -g.

Option 3: Automatic Installer

For first-time setup, the installer configures Claude Desktop automatically:

npx @whenmoon-afk/memory-mcp-install

After any installation method, restart Claude Desktop completely (quit and reopen).

Custom Database Location

By default, memories are stored at ~/.memory-mcp/memory.db on all platforms.

To use a custom location, add the env field to your config:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "github:whenmoon-afk/claude-memory-mcp"],
      "env": {
        "MEMORY_DB_PATH": "/path/to/your/memory.db"
      }
    }
  }
}

The database is a single portable SQLite file. Back it up by copying the file.

Tools

| Tool | Description | |------|-------------| | memory_store | Store a memory with auto-summarization and entity extraction | | memory_recall | Search memories with token-aware loading | | memory_forget | Soft-delete a memory (preserves audit trail) |

Features

  • FTS5 full-text search (fast, no embeddings needed)
  • Token budgeting for context-aware responses
  • Automatic entity extraction and summarization
  • Soft deletes with provenance tracking
  • Hybrid relevance scoring (recency + importance + frequency)

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | MEMORY_DB_PATH | Platform-specific | Database file location | | DEFAULT_TTL_DAYS | 90 | Default memory expiration |

Troubleshooting

Tools not appearing in Claude Desktop?

  1. Restart Claude Desktop completely (quit and reopen)
  2. Verify config file syntax is valid JSON
  3. Check that Node.js 18+ is installed: node --version

"Connection closed" on Windows?

Windows requires either:

  • The cmd /c wrapper method (see Windows config above), OR
  • The full path to npx.cmd (e.g., C:\Program Files\nodejs\npx.cmd)

Getting stale cached versions?

The npx github: method bypasses npm cache. Alternatively:

  • Clear npm cache: npm cache clean --force
  • Use global install for version control

Slow startup with github: method?

First run requires downloading and installing dependencies (can take 30+ seconds). Subsequent runs are faster but still fetch from GitHub. For faster startup, use the global install method.

Dependencies

  • @modelcontextprotocol/sdk - MCP protocol implementation
  • better-sqlite3 - Fast native SQLite with FTS5

Links

  • npm: https://www.npmjs.com/package/@whenmoon-afk/memory-mcp
  • GitHub: https://github.com/WhenMoon-afk/claude-memory-mcp
  • Issues: https://github.com/WhenMoon-afk/claude-memory-mcp/issues

Disclaimer

This project is provided as-is. It is actively maintained but may have breaking changes between minor versions.

License

MIT