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

@diazstg/memory-bank-mcp

v1.8.1

Published

MCP Server for managing Memory Bank with remote server support

Readme

Memory Bank MCP

NPM Version Semgrep CE scan License: MIT

An MCP server that gives AI assistants persistent memory across sessions. It stores project context, decisions, and progress in structured markdown files — locally or on a remote server via SSH.

Quick Start

# Run directly (no install needed)
npx @diazstg/memory-bank-mcp

# Or install globally
npm install -g @diazstg/memory-bank-mcp

Via Smithery (Claude Desktop)

npx -y @smithery/cli install @diazstg/memory-bank-mcp --client claude

Configuration

Add to your editor's MCP config (.vscode/mcp.json, Cursor, Claude Desktop, etc.):

{
  "servers": {
    "memory-bank-mcp": {
      "command": "npx",
      "args": ["-y",
          "@diazstg/memory-bank-mcp",
          "--username",
          "your-github-username"
      ],
      "type": "stdio"
    }
  }
}

Tip: Including --username is highly recommended for proper progress tracking.

Common Options

npx @diazstg/memory-bank-mcp --username "github-user"   # Username for progress tracking (recommended)
npx @diazstg/memory-bank-mcp --mode code                # Set operational mode
npx @diazstg/memory-bank-mcp --path /my/project         # Custom project path
npx @diazstg/memory-bank-mcp --folder my-memory         # Custom folder name (default: memory-bank)
npx @diazstg/memory-bank-mcp --help                     # All options

Remote Server (SSH)

Store your Memory Bank on a remote server:

npx @diazstg/memory-bank-mcp --remote \
  --remote-user username \
  --remote-host example.com \
  --remote-path /home/username/memory-bank \
  --ssh-key ~/.ssh/id_ed25519

See Remote Server Guide and SSH Keys Guide.

How It Works

Memory Bank stores project context as markdown files in a memory-bank/ directory:

| File | Purpose | |------|---------| | product-context.md | Project overview, goals, tech stack | | active-context.md | Current state, ongoing tasks, next steps | | progress.md | Chronological record of updates | | decision-log.md | Decisions with context and rationale | | system-patterns.md | Architecture and code patterns |

The AI assistant reads these files at the start of each session and updates them as work progresses, maintaining continuity across conversations.

MCP Tools

| Tool | Description | |------|-------------| | initialize_memory_bank | Create a new Memory Bank | | get_memory_bank_status | Check current status | | read_memory_bank_file | Read a specific file | | write_memory_bank_file | Write/update a file | | track_progress | Add a progress entry | | log_decision | Record a decision | | update_active_context | Update current context | | switch_mode | Change operational mode | | graph_upsert_entity | Create or update a knowledge graph entity | | graph_add_observation | Add an observation to an entity | | graph_link_entities | Create a relation between entities | | graph_search | Search entities by name or type | | graph_open_nodes | Get full details of specific entities | | graph_compact | Compact the event log |

Modes

| Mode | Focus | |------|-------| | code | Implementation and development | | architect | System design and planning | | ask | Q&A and information retrieval | | debug | Troubleshooting and diagnostics | | test | Testing and quality assurance |

Modes can be set via CLI (--mode code), tool call (switch_mode), or .mcprules-[mode] files. See Usage Modes.

As a Library

import { MemoryBankServer } from "@diazstg/memory-bank-mcp";

const server = new MemoryBankServer();
server.run().catch(console.error);

Documentation

| Topic | Link | |-------|------| | Getting Started | npx usage, build with Bun, custom folder | | Guides | Remote server, SSH keys, usage modes, status system, migration, debug MCP | | Integrations | VS Code/Copilot, Claude Code, Cursor, Cline, Roo Code, generic MCP | | Reference | MCP protocol, rules format, file naming | | Development | Architecture, testing, logging |

Alternative: HTTP + PostgreSQL + Redis

The feature/http-postgres-redis-supabase branch provides a cloud-native variant that replaces stdio/local-filesystem with HTTP Streamable MCP transport, PostgreSQL (via Supabase) for storage, and Redis for caching. It is deployed exclusively via Docker and is not published to npm. See the branch README for setup instructions.

Contributing

See CONTRIBUTING.md.

License

See LICENSE.