mcpField
M
memory-bank-loader-mcp

memory-bank-loader-mcp

Local
github.com/abeyuyaMemory & Knowledge4Updated 80w ago

About memory-bank-loader-mcp

memory-bank-loader-mcp is an MCP server that gathers files from a memory-bank directory into one response. It is intended for AI workflows that need project context, reducing the number of tool calls needed to load those files.

Key features

  1. 01Recursively reads directory files
  2. 02Prioritizes root and designated files
  3. 03Sorts remaining files by path
  4. 04Consolidates memory-bank content

Use cases

  1. 01Loading project context into an AI workflow
  2. 02Reducing calls when reading a memory bank

MCP support

Exposes the `read-memory-bank` tool to MCP clients. The tool reads and consolidates files from a specified memory-bank directory.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"memory-bank-loader": {
"command": "npx",
"args": [
"-y",
"memory-bank-loader-mcp"
]
}
}
}
Run commandnpx -y memory-bank-loader-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmmemory-bank-loader-mcp

Tools

1

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
memoryBankDirectoryFullPathstringYesFull path to the memory bank directory

Details

From the project README

memory-bank-loader-mcp

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.