memory-bank-loader-mcp

by abeyuya

4 164 downloads Not rated yet MIT
GitHub

About

This is an MCP server for retrieving all files in the memory-bank directory at once. Its purpose is to reduce AI tool invocation frequency when loading memory-bank, saving both time and money.

Details

License
MIT

Explore

- Recursively reads all files within the specified directory (e.g., a 'memory-bank' directory).
- Sorts files with a specific priority order:
1. Root-level files come first.
2. Specific priority files (projectbrief.md, etc.) within the root are ordered first.
3. All other files (non-priority root and all subdirectory files) are sorted alphabetically by relative path.
- Optimized for providing clear and structured context to AI models.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name memory-bank-loader-mcp
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Configure the MCP client with the server using npx -y memory-bank-loader-mcp@latest or by building locally and pointing to the built index.js. Then invoke the read-memory-bank tool, providing the required memoryBankDirectoryFullPath parameter (full absolute path to the memory bank directory).

read_memory_bank

Always use this tool to load the Memory Bank at the start of a task.

- read-memory-bank
- Read and consolidates files from the specified memory bank directory. Use this to provide project context (Memory Bank) to the AI.
- Input:
- memoryBankDirectoryFullPath (string, required): The full, absolute path to the directory containing the memory bank files.
- Returns:
- Read file list.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "memory-bank-loader-mcp": {
            "memory-bank-loader": {
                "command": "npx",
                "args": [
                    "-y",
                    "memory-bank-loader-mcp@latest"
                ]
            }
        }
    }
}

McpServers

{
    "memory-bank-loader": {
        "command": "npx",
        "args": [
            "-y",
            "memory-bank-loader-mcp@latest"
        ]
    }
}

This is an MCP server for retrieving all files in the memory-bank directory at once.
Its purpose is to reduce AI tool invocation frequency when loading memory-bank, saving both time and money.

screenshot

Features

- Recursively reads all files within the specified directory (e.g., a 'memory-bank' directory).
- Sorts files with a specific priority order:
1. Root-level files come first.
2. Specific priority files (projectbrief.md, etc.) within the root are ordered first.
3. All other files (non-priority root and all subdirectory files) are sorted alphabetically by relative path.
- Optimized for providing clear and structured context to AI models.

Tools

- read-memory-bank
- Read and consolidates files from the specified memory bank directory. Use this to provide project context (Memory Bank) to the AI.
- Input:
- memoryBankDirectoryFullPath (string, required): The full, absolute path to the directory containing the memory bank files.
- Returns:
- Read file list.

Setup

NPX

{
  "mcpServers": {
    "memory-bank-loader": {
      "command": "npx",
      "args": [
        "-y",
        "memory-bank-loader-mcp@latest",
      ],
    }
  }
}

Build

$ npm run build
{
  "mcpServers": {
    "memory-bank-loader": {
      "command": "node",
      "args": [
        "/full/path/to/memory-bank-loader-mcp/build/index.js"
      ]
    }
  }
}

License

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.