Skip to main content
Glama

Memory Bank MCP

by hoppo-chan
MIT License
5
  • Apple
  • Linux

Memory Bank MCP

A guided Memory Bank plugin for AI-assisted development

Memory Bank MCP is a Model Context Protocol (MCP) plugin that helps AI assistants maintain persistent project context through structured markdown files. It provides a systematic approach to tracking project goals, decisions, progress, and patterns through guided instructions rather than direct operations.

Features

  • Guided Operations: Provides instructions for AI assistants to perform operations themselves
  • Structured Context Management: Organize project information across 5 core files
  • Intelligent Guidance: Step-by-step instructions for initialization and updates
  • Flexible Updates: Smart update guidance based on different change types
  • Cross-Platform Support: Automatic path normalization for Windows/macOS/Linux

MCP Configuration

Using the published npm package:

{ "mcpServers": { "memory-bank": { "command": "npx", "args": ["@neko0721/memory-bank-mcp"], "timeout": 600 } } }

Quick Start

  1. Initialize Memory Bank
    Use init-memory-bank to create the memory-bank directory and core files
  2. Read Memory Bank
    Use get-memory-bank-info to view all Memory Bank content
  3. Update Memory Bank
    Use update-memory-bank to get guidance on updating specific files

Core Files

1. productContext.md (Product Context)

  • High-level project overview
  • Goals and key features
  • Overall architecture
  • Automatically incorporates projectBrief.md if available

2. activeContext.md (Active Context)

  • Current work status
  • Recent changes
  • Open questions and issues
  • Focus areas

3. progress.md (Progress)

  • Task tracking in checklist format
  • Completed, current, and planned tasks
  • Progress timeline

4. decisionLog.md (Decision Log)

  • Architectural and implementation decisions
  • Rationale and implications
  • Decision history

5. systemPatterns.md (System Patterns)

  • Recurring patterns and standards
  • Coding conventions
  • Architectural patterns
  • Testing strategies

Usage Guidelines

For AI Assistants

  1. Start Every Session: Check if memory-bank directory exists, then use get-memory-bank-info to understand project state
  2. Initialize When Needed: Use init-memory-bank for new projects
  3. Read Context: Use get-memory-bank-info to understand project state
  4. Update Guidance: Use update-memory-bank to get update instructions
  5. Follow Instructions: Execute the provided guidance to maintain Memory Bank

Update Triggers

  • Architecture Changes: Major structural decisions
  • Feature Completion: New features or capabilities
  • Bug Fixes: Significant issue resolutions
  • Refactoring: Code structure improvements
  • Decisions: Any important technical choices
  • Progress Updates: Task status changes

Tool Reference

init-memory-bank

Initializes Memory Bank with all core files.

Parameters:

  • rootPath: Project root directory path
  • force (optional): Force re-initialization

Returns: Created files list and next steps guidance

get-memory-bank-info

Reads and returns all Memory Bank content (similar to codelf's get-project-info).

Parameters:

  • rootPath: Project root directory path

Returns: Formatted Memory Bank content for AI context

update-memory-bank

Provides guidance for updating Memory Bank files.

Parameters:

  • rootPath: Project root directory path
  • changeType: Type of change (architecture/feature/bugfix/refactor/decision/progress)
  • description: Brief description of the change

Returns: Detailed update instructions with templates and timestamps

Integration Tips

Cursor Setup

Add to Settings → Rules → User Rules:

Before starting any task, check if memory-bank directory exists in the project. If not, run the MCP command init-memory-bank. Use the MCP command get-memory-bank-info to read Memory Bank content at session start. After completing tasks or conversations, you must use the MCP command update-memory-bank to update Memory Bank content. Follow the MCP guidance to maintain Memory Bank files.

Windsurf Setup

Add to Settings → Cascade → Memories and Rules → Global Rules:

Before starting any task, check if memory-bank directory exists in the project. If not, run the MCP command init-memory-bank. Use the MCP command get-memory-bank-info to read Memory Bank content at session start. After completing tasks or conversations, you must use the MCP command update-memory-bank to update Memory Bank content. Follow the MCP guidance to maintain Memory Bank files.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

MIT

Acknowledgments

Inspired by the SPARC methodology and codelf.

-
security - not tested
A
license - permissive license
-
quality - not tested

A Model Context Protocol plugin that helps AI assistants maintain persistent project context through structured markdown files, providing a systematic approach to tracking project goals, decisions, progress, and patterns.

  1. Features
    1. MCP Configuration
  2. Quick Start
    1. Core Files
      1. productContext.md (Product Context)
      2. activeContext.md (Active Context)
      3. progress.md (Progress)
      4. decisionLog.md (Decision Log)
      5. systemPatterns.md (System Patterns)
    2. Usage Guidelines
      1. For AI Assistants
      2. Update Triggers
    3. Tool Reference
      1. init-memory-bank
      2. get-memory-bank-info
      3. update-memory-bank
    4. Integration Tips
      1. Cursor Setup
      2. Windsurf Setup
    5. Contributing
      1. License
        1. Acknowledgments

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol implementation that enables AI assistants to interact with markdown documentation files, providing capabilities for document management, metadata handling, search, and documentation health analysis.
            Last updated -
            14
            346
            11
            TypeScript
            MIT License
            • Apple
            • Linux
          • -
            security
            -
            license
            -
            quality
            A Model Context Protocol server implementation that enables AI assistants to interact with Linear project management systems, allowing them to create, retrieve, and modify data related to issues, projects, teams, and users.
            Last updated -
            20
            2
            TypeScript
          • -
            security
            F
            license
            -
            quality
            A comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.
            Last updated -
            16
            TypeScript
          • A
            security
            A
            license
            A
            quality
            A TypeScript-based Model Context Protocol toolkit that enables AI to interact with code files, manage translations, build projects, and search for files and code content.
            Last updated -
            33
            43
            5
            TypeScript
            MIT License

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/hoppo-chan/memory-bank-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server