alioshr/memory-bank-mcp

A Model Context Protocol (MCP) server implementation for remote memory bank management, inspired by Cline Memory Bank.

917 ★84 forksTypeScriptUpdated 11mo ago

What you need to know

A Model Context Protocol server for remote, centralized memory bank management (inspired by the Cline Memory Bank) — read/write/update memory bank files with multi-project support, project isolation, and path-traversal prevention.

Install

npx -y @smithery/cli install @alioshr/memory-bank-mcp --client claude   # Smithery one-shot for Claude Desktop
Manual config: `npx -y @allpepper/memory-bank-mcp` with env MEMORY_BANK_ROOT=<path-to-bank>
docker build -t memory-bank-mcp:local .   # Docker option

Usage

  • Configure the server in your MCP settings (Claude Desktop `claude_desktop_config.json`, Claude Code `~/.claude.json`, Cline/Roo Code mcp_settings.json, or Cursor) with the `MEMORY_BANK_ROOT` env var pointing at the directory where project memory banks are stored.
  • Set `autoApprove`/`alwaysAllow` to memory_bank_read, memory_bank_write, memory_bank_update, list_projects, list_project_files for no-prompt operation.
  • Use the memory bank tools from your AI assistant for persistent project context across sessions.

Key features

  • Multi-project support: per-project directories, project listing, file listing, project existence validation.
  • Remote accessibility over the full MCP protocol with type-safe operations and proper error handling.
  • Security through project isolation and path traversal prevention; safe read-only operations.
  • Inspired by Cline Memory Bank, extended with remote capabilities and multi-project management.

Best for

Centralized, multi-project persistent 'memory bank' context for AI coding agents (Cline, Claude, Cursor) that needs to be shared or isolated per project.

Caveats

  • Requires configuring the `MEMORY_BANK_ROOT` environment variable — without it the server has no storage location.
  • npm package is published as @allpepper/memory-bank-mcp (differs from the repo name).
Platforms: Linux · macOS · WindowsClients: Claude Desktop · Claude Code · Cline · Roo Code (VS Code) · Cursor

Reviewed 2026-08-07

Topics

antrophicclaudeclinecline-memory-bankcursormcp-servermemory-bankmodel-context-protocolwindsurf
View on GitHub ↗
Stars
917★
Forks
84
Language
TypeScript
License
MIT
Created
2025-02-16
Last push
2025-08-20