Skip to main content
Glama
Memory Bank MCP Server

Memory Bank MCP Server

by ipospelov

Memory Bank MCP Server

This MCP server helps to build structured documentation system based on Cline's Memory Bank pattern for context preservation in AI assistant environments.

Powered by Enlighter and Hyperskill.

Learn how to setup and use Memory Bank directly in Cursor: http://enlightby.ai/projects/37

Features

  • Get detailed information about Memory Bank structure

  • Generate templates for Memory Bank files

  • Analyze project and provide suggestions for Memory Bank content

Related MCP server: Roo Code Memory Bank MCP Server

Running the Server

There are a few options to use this MCP server:

With UVX

Add this to your mcp.json config file:

{
  "mcpServers": {
    "mcp-memory-bank": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/ipospelov/mcp-memory-bank",
        "mcp_memory_bank"
      ]
    }
  }
}

With Smithery

Add this to your mcp.json config file:

{
  "mcpServers": {
    "memory-bank": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli@latest",
        "run",
        "@ipospelov/mcp-memory-bank",
        "--key",
        "your_smithery_key"
      ]
    }
  }
}

With Docker

Add this to your mcp.json config file:

{
  "mcpServers": {
    "memory-bank": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "19283744/mcp-memory-bank:latest"
      ]
    }
  }
}

Manually

Clone repository and run the following commands:

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt

Then add this to your mcp.json config file:

{
  "mcpServers": {
    "memory-bank": {
      "command": "python",
      "args": ["src/mcp_memory_bank/main.py"]
    }
  }
}

Usage Example

Ask Cursor or any other AI code assistant with Memory Bank MCP:

Create memory bank for To Do list application with your tools

Provide more context to get better results.

Available Tools

get_memory_bank_structure

Returns a detailed description of the Memory Bank file structure.

generate_memory_bank_template

Returns a template for a specific Memory Bank file.

Example:

{
  "file_name": "projectbrief.md"
}

analyze_project_summary

Analyzes a project summary and provides suggestions for Memory Bank content.

Example:

{
  "project_summary": "Building a React web app for inventory management with barcode scanning"
}

Memory Bank Structure

The Memory Bank consists of core files and optional context files, all in Markdown format:

Core Files (Required)

  1. projectbrief.md - Foundation document that shapes all other files

  2. productContext.md - Explains why the project exists, problems being solved

  3. activeContext.md - Current work focus, recent changes, next steps

  4. systemPatterns.md - System architecture, technical decisions, design patterns

  5. techContext.md - Technologies used, development setup, constraints

  6. progress.md - What works, what's left to build

  7. memory_bank_instructions.md - How to work with Memory Bank, instructtions for AI-agent

Available Tools

3 tools
analyze_project_summaryC

Analyze a project summary and provide suggestions for Memory Bank content.

Args:
    project_summary: A summary of the project

Inputs: project_summary (required).

generate_memory_bank_templateC

Generate a template for a specific Memory Bank file.

Args:
    file_name: The name of the file to generate a template for (e.g., "projectbrief.md")

Inputs: file_name (required).

get_memory_bank_structureB

Get a detailed description of the Memory Bank file structure.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: analyze_project_summary focuses on content suggestions, generate_memory_bank_template creates file templates, and get_memory_bank_structure describes the file structure. There is no overlap in functionality, making it easy for an agent to select the correct tool.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (e.g., analyze_project_summary, generate_memory_bank_template, get_memory_bank_structure) with clear verbs and descriptive nouns. The naming is uniform and predictable across all tools.

    Tool Count3/5

    With only 3 tools, the server feels thin for a Memory Bank domain, which typically involves more operations like creating, updating, deleting, or searching content. While the tools cover analysis, template generation, and structure description, the count is borderline for comprehensive functionality.

    Completeness2/5

    The tool set has significant gaps for a Memory Bank server. It lacks core CRUD operations (e.g., create, read, update, delete Memory Bank files) and search capabilities, which are essential for managing and interacting with Memory Bank content. The current tools only support auxiliary functions, leading to potential agent failures in basic workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      Memory Bank Server provides a set of tools and resources for AI assistants to interact with Memory Banks. Memory Banks are structured repositories of information that help maintain context and track progress across multiple sessions.
      96 npm
      46
      MIT