Memory Bank

Memory and knowledgeFinance and commerce

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

Your AI app calls the Memory Bank MCP server, which does the memory and knowledge and finance and commerce work and sends the result back to the chat.

About Memory Bank

Memory Bank is a community MCP server from alioshr, filed in our directory under memory and knowledge and finance and commerce. A Model Context Protocol (MCP) server implementation for remote memory bank management, inspired by Cline Memory Bank.

Memory Bank runs on your own machine: your AI app starts it with the command npx -y @smithery/cli and talks to it over standard input and output.

At a glance

Publisher
alioshr (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @smithery/cli
Written in
TypeScript
License
MIT
GitHub stars
926

How to set up Memory Bank

  1. Install Node.js on the machine that runs your AI app, because Memory Bank starts with npx and downloads its package on first run.
  2. Check the Memory Bank README for keys or settings; the registry lists none that Memory Bank requires.
  3. Add Memory Bank to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Memory Bank tools to confirm the connection.
  5. Run one read-only task with Memory Bank first, and keep your app asking before each tool call until the results look right.

Memory Bank compared with similar servers

  • MegaMemory by 0xK3vin has fewer GitHub stars than Memory Bank (906 against 926); both are community servers, and both run locally.
  • Iai Personal Memory Engine by CodeAbra has fewer GitHub stars than Memory Bank (926 against 926); both are community servers, and both run locally.
  • Projectmem by riponcm has fewer GitHub stars than Memory Bank (886 against 926); both are community servers, and both run locally.

Before you connect Memory Bank

  • Give Memory Bank its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Memory Bank tool call until you trust what it does with them.
  • Treat text that Memory Bank fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Memory Bank on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Memory Bank

How marketing and sales teams put Memory Bank to work, by company size. Pick the size closest to yours and start Memory Bank on one use case.

Small business

  • A small business can give Memory Bank its offers, FAQs and tone of voice once, so every draft starts from the same facts.
  • Founders can use Memory Bank to keep notes from calls and decisions, then ask what was agreed with a customer weeks later.
  • A small business can ask Memory Bank which products and customers drive margin, then plan promotions around them.
  • Memory Bank runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Memory Bank to positioning docs and past campaigns, so agents write on message without a long prompt each time.
  • Sales and marketing can share one knowledge base through Memory Bank, so answers about pricing and features match across teams.
  • Ecommerce teams can connect Memory Bank to tie campaigns to orders and revenue, not just clicks.
  • Start Memory Bank on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Memory Bank with permissions that follow the source documents, so an agent only recalls what the person asking may see.
  • Large orgs can make Memory Bank the approved memory layer for agents, with retention rules and a way to delete what shouldn't be kept.
  • Enterprises should keep Memory Bank read-only for agents, with any money movement handled by people and existing approvals.
  • Memory Bank is a community server, so have security review the code and pin a version before Memory Bank touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Memory Bank README

From alioshr/memory-bank-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Memory Bank MCP Server

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

Overview

The Memory Bank MCP Server transforms traditional file-based memory banks into a centralized service that:

  • Provides remote access to memory bank files via MCP protocol
  • Enables multi-project memory bank management
  • Maintains consistent file structure and validation
  • Ensures proper isolation between project memory banks

Features

  • Multi-Project Support

    • Project-specific directories
    • File structure enforcement
    • Path traversal prevention
    • Project listing capabilities
    • File listing per project
  • Remote Accessibility

    • Full MCP protocol implementation
    • Type-safe operations
    • Proper error handling
    • Security through project isolation
  • Core Operations

    • Read/write/update memory bank files
    • List available projects
    • List files within projects
    • Project existence validation
    • Safe read-only operations

Installation

To install Memory Bank Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @alioshr/memory-bank-mcp --client claude

This will set up the MCP server configuration automatically. Alternatively, you can configure the server manually as described in the Configuration section below.

Quick Start

  1. Configure the MCP server in your settings (see Configuration section below)
  2. Start using the memory bank tools in your AI assistant

Using with Cline/Roo Code

The memory bank MCP server needs to be configured in your Cline MCP settings file. The location depends on your setup:

  • For Cline extension: ~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • For Roo Code VS Code extension: ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json

Add the following configuration to your MCP settings:

{
  "allpepper-memory-bank": {
    "command": "npx",
    "args": ["-y", "@allpepper/memory-bank-mcp"],
    "env": {
      "MEMORY_BANK_ROOT": "<path-to-bank>"
    },
    "disabled": false,
    "autoApprove": [
      "memory_bank_read",
      "memory_bank_write",
      "memory_bank_update",
      "list_projects",
      "list_project_files"
    ]
  }
}
Configuration Details
  • MEMORY_BANK_ROOT: Directory where project memory banks will be stored (e.g., /path/to/memory-bank)
  • disabled: Set to false to enable the server
  • autoApprove: List of operations that don't require explicit user approval:
    • memory_bank_read: Read memory bank files
    • memory_bank_write: Create new memory bank files
    • memory_bank_update: Update existing memory bank files
    • list_projects: List available projects
    • list_project_files: List files within a project

Using with Cursor

For Cursor, open the settings -> features -> add MCP server -> add the following:

env MEMORY_BANK_ROOT=<path-to-bank> npx -y @allpepper/memory-bank-mcp@latest

Using with Claude

  • Claude desktop config file: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Claude Code config file: ~/.claude.json
  1. Locate the config file
  2. Locate the property called mcpServers
  3. Paste this:
 "allPepper-memory-bank": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "@allpepper/memory-bank-mcp@latest"
          ],
          "env": {
            "MEMORY_BANK_ROOT": "YOUR PATH"
          }
        }

Custom AI instructions

This section contains the instructions that should be pasted on the AI custom instructions, either for Cline, Claude or Cursor, or any other MCP client. You should copy and paste these rules. For reference, see custom-instructions.md which contains these rules.

Development

Basic development commands:

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm run test

# Run tests in watch mode
npm run test:watch

# Run the server directly with ts-node for quick testing
npm run dev
Running with Docker
  1. Build the Docker image:

    docker build -t memory-bank-mcp:local .
    
  2. Run the Docker container for testing:

    docker run -i --rm \
      -e MEMORY_BANK_ROOT="/mnt/memory_bank" \
      -v /path/to/memory-bank:/mnt/memory_bank \
      --entrypoint /bin/sh \
      memory-bank-mcp:local \
      -c "ls -la /mnt/memory_bank"
    
  3. Add MCP configuration, example for Roo Code:

    "allpepper-memory-bank": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", 
        "MEMORY_BANK_ROOT",
        "-v", 
        "/path/to/memory-bank:/mnt/memory_bank",
        "memory-bank-mcp:local"
      ],
      "env": {
        "MEMORY_BANK_ROOT": "/mnt/memory_bank"
      },
      "disabled": false,
      "alwaysAllow": [
        "list_projects",
        "list_project_files",
        "memory_bank_read",
        "memory_bank_update",
        "memory_bank_write"
      ]
    }
    

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request
Development Guidelines
  • Use TypeScript for all new code
  • Maintain type safety across the codebase
  • Add tests for new features
  • Update documentation as needed
  • Follow existing code style and patterns
Testing
  • Write unit tests for new features
  • Include multi-project scenario tests
  • Test error cases thoroughly
  • Validate type constraints
  • Mock filesystem operations appropriately

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

This project implements the memory bank concept originally documented in the Cline Memory Bank, extending it with remote capabilities and multi-project support.

Questions about Memory Bank

What is the Memory Bank MCP server?

A Model Context Protocol (MCP) server implementation for remote memory bank management, inspired by Cline Memory Bank. Memory Bank is maintained by alioshr on GitHub at alioshr/memory-bank-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Memory Bank MCP server?

Add Memory Bank to your AI app's MCP config with the command npx -y @smithery/cli. In Claude Code, run claude mcp add --transport stdio memory-bank -- npx -y @smithery/cli. To run Memory Bank this way you need Node.js installed.

Does Memory Bank need an API key?

The registry lists no required keys for Memory Bank. Check the Memory Bank README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Memory Bank an official MCP server?

No. Memory Bank is a community server maintained by alioshr. Community servers can be excellent; read the code and the open issues before you give Memory Bank access to company data.

What license is Memory Bank under?

Memory Bank is released under the MIT license, according to its GitHub repository. The license covers the code of Memory Bank; the service it connects to has its own terms.