Data as of

Memory Bank MCP Server for Claude Code: Setup & Config

Claude Code: Manage project memory files through an MCP assistant using a shared storage root.

What you can do with Memory Bank in Claude Code

Choose it for straightforward, project-isolated memory files shared with an MCP coding assistant.

  • Keep a coding assistant's project notes available between sessions.
  • Create or revise memory-bank documents through an MCP client.

Before you start: Memory Bank in Claude Code

  • Node.js and npx
  • An MCP-compatible client
  • A configured memory-bank storage directory

This follows the README's Claude configuration. Set the storage root to your directory. Docker is an alternative and requires a host-volume mapping. Review any client auto-approval settings separately from the server launch.

Memory Bank Claude Code configuration

  1. Choose Claude Code configuration scope

    For Memory Bank MCP Server, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.

  2. Add Memory Bank MCP Server to Claude Code

    Use the memory-bank-mcp entry below in mcpServers. Keep Memory Bank MCP Server's documented stdio connection fields and your other Claude Code entries.

  3. Check Memory Bank MCP Server in Claude Code

    Memory Bank MCP Server: Inspect claude mcp list and /mcp status.

Config file · Project scope: .mcp.json at the repository root

JSON
{
  "mcpServers": {
    "memory-bank-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@allpepper/memory-bank-mcp@latest"
      ],
      "env": {
        "MEMORY_BANK_ROOT": "<directory that will hold project memory banks>"
      }
    }
  }
}

CLI (POSIX shell)
claude mcp add-json --scope project 'memory-bank-mcp' '{"type":"stdio","command":"npx","args":["-y","@allpepper/memory-bank-mcp@latest"],"env":{"MEMORY_BANK_ROOT":"<directory that will hold project memory banks>"}}'

Memory Bank tools available to Claude Code

Memory Bank's stored tool list documents 5 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.

memory_bank_read

For Memory Bank's memory_bank_read, review the permission request and arguments in Claude Code before approval.

memory_bank_write

For Memory Bank's memory_bank_write, review the permission request and arguments in Claude Code before approval.

memory_bank_update

For Memory Bank's memory_bank_update, review the permission request and arguments in Claude Code before approval.

Revise an existing project memory file.

list_projects

For Memory Bank's list_projects, review the permission request and arguments in Claude Code before approval.

Discover projects stored beneath the memory-bank root.

list_project_files

For Memory Bank's list_project_files, review the permission request and arguments in Claude Code before approval.

Enumerate the memory files belonging to one project.

Memory Bank: full stored tool descriptions

Troubleshooting Memory Bank in Claude Code

  • If Memory Bank MCP Server fails to start, check npx @allpepper/memory-bank-mcp@latest (Node.js/npm), the working directory, and Claude Code's selected scope; inspect claude mcp list and /mcp.
  • Memory Bank MCP Server: check MEMORY_BANK_ROOT; keep credentials out of shared .mcp.json.
  • Memory Bank MCP Server uses stdio here: Claude Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
  • Known limitation: Requires choosing and maintaining a storage directory.
  • Known limitation: The documented interface does not include semantic-search tools.
  • Known limitation: Sample client settings can auto-approve writes and should be reviewed.
  • General Claude Code troubleshooting lives in the /clients/claude-code guide.

Memory Bank MCP Server — details. Claude Code guide

Frequently asked questions

Register Memory Bank MCP Server with the displayed claude mcp add-json --scope project command, or merge the JSON into .mcp.json at the repository root.

Claude Code's memory-bank-mcp example uses stdio.

Memory Bank MCP Server's Claude Code configuration invokes npx @allpepper/memory-bank-mcp@latest (Node.js/npm).

Claude Code's Memory Bank MCP Server example references MEMORY_BANK_ROOT. Check these names if startup or authentication fails; the example alone does not distinguish required from optional values.

Memory Bank MCP Server's stored list contains 5 tools, including memory_bank_read, memory_bank_write, memory_bank_update. Compare those names with Claude Code's connected tool list; the stored list is not a live check.

Yes. The README describes project-specific directories, project listing, and per-project file listing.

Yes. It documents building a local image and mounting a host memory directory into the container.