Memory Bank MCP Server
The Memory Bank MCP Server is a centralized service for remote management of memory bank files across multiple projects. It provides:
Read/Write Operations: Access, create, and update specific files within a project
File Management: List all projects and files within specific projects
Project Isolation: Maintain secure separation between different projects
Consistency: Enforce consistent file naming and structure
Remote Accessibility: Access memory bank files via the MCP protocol
Type-Safe Operations: Ensure proper input validation and error handling
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Memory Bank MCP Server list files in my e-commerce project memory bank"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: agent-context-substrate
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 claudeThis will set up the MCP server configuration automatically. Alternatively, you can configure the server manually as described in the Configuration section below.
Quick Start
Configure the MCP server in your settings (see Configuration section below)
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.jsonFor 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 tofalseto enable the serverautoApprove: List of operations that don't require explicit user approval:memory_bank_read: Read memory bank filesmemory_bank_write: Create new memory bank filesmemory_bank_update: Update existing memory bank fileslist_projects: List available projectslist_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@latestUsing with Claude
Claude desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.jsonClaude Code config file:
~/.claude.json
Locate the config file
Locate the property called
mcpServersPaste 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 devRunning with Docker
Build the Docker image:
docker build -t memory-bank-mcp:local .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"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:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)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.
Available Tools
5 toolslist_project_filesA
List all files within a specific project
Inputs: projectName (required).
list_projectsB
List all projects in the memory bank
Inputs: no named parameters.
memory_bank_readB
Read a memory bank file for a specific project
Inputs: fileName (required), projectName (required).
memory_bank_updateC
Update an existing memory bank file for a specific project
Inputs: content (required), fileName (required), projectName (required).
memory_bank_writeC
Create a new memory bank file for a specific project
Inputs: content (required), fileName (required), projectName (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct resource and action: listing projects, listing files within a project, reading a file, creating a file, and updating a file. There is no overlap or ambiguity between tools.
Names mix two conventions: 'list_projects' and 'list_project_files' use verb-first snake_case, while 'memory_bank_read', 'memory_bank_write', and 'memory_bank_update' use object-first with a modifier. The pattern is inconsistent but still readable.
Five tools is well-scoped for a memory bank server, covering the essential operations without unnecessary bloat. The count feels right for the domain.
The server covers list, read, create, and update of memory bank files, but it is missing a delete operation. This is a notable gap in CRUD coverage, though agents can work around it by archiving or overwriting files.
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
A MCP server built for developers enabling Git based project management with project and personal…
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Remote MCP service for evidence-backed work memory and continuity.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for MongoDB-powered memory bank management with multi-project isolation, version control, and real-time statistics.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to maintain and query project memory independently of the underlying model, with versioned, auditable storage and multi-stage retrieval through a single MCP gateway.MIT
- AlicenseCqualityBmaintenanceProvides a deterministic MCP server that orchestrates projects across web, backend, games, AI, payments, fiscal, and infrastructure domains, with safe file writing, audit logging, and framework-aware context routing.88MIT
- AlicenseNot gradedqualityCmaintenanceEnables multiple MCP-compatible AI clients to share persistent, versioned project knowledge across sessions with conflict-safe updates, provenance, hybrid retrieval, stale-memory handling, and context-budgeted recall.MIT
Appeared in Searches
- MCP server for remembering key project decisions, tracking framework and settings
- Information about memory banks
- A tool for managing or utilizing cache
- A memory-efficient MCP server with vectorized memory bank synchronization
- File system requirements: mounted directory, persistent state, and full R/W access