Memory Bank Server
Provides a centralized MCP-based system for managing and accessing multi-project memory banks remotely, with features like project isolation, file structure validation, and type-safe operations.
alioshr
Tools
memory_bank_read
Read a memory bank file for a specific project
memory_bank_write
Create a new memory bank file for a specific project
memory_bank_update
Update an existing memory bank file for a specific project
list_projects
List all projects in the memory bank
list_project_files
List all files within a specific project
README
Memory Bank MCP Server
<a href="https://glama.ai/mcp/servers/ir18x1tixp"><img width="380" height="200" src="https://glama.ai/mcp/servers/ir18x1tixp/badge" alt="Memory Bank Server MCP server" /></a>
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
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
- Configure the MCP server in your settings (see Configuration section below)
- Start using the memory bank tools in your AI assistant
Configuration
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 Claude desktop app:
~/Library/Application Support/Claude/claude_desktop_config.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 tofalse
to 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
For 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
Custom IA 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
# Install dependencies
npm install
# Build
npm run build
# Test
npm run test
# Watch mode
npm run dev
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.
Recommended Servers
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
AIO-MCP Server
🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from
Persistent Knowledge Graph
An implementation of persistent memory for Claude using a local knowledge graph, allowing the AI to remember information about users across conversations with customizable storage location.
React MCP
react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts
Aindreyway Codex Keeper
Serves as a guardian of development knowledge, providing AI assistants with curated access to latest documentation and best practices.
Perplexity Deep Research
A server that allows AI assistants to perform web searches using Perplexity's sonar-deep-research model with citation support.
Database Explorer
A powerful Model Context Protocol (MCP) tool for exploring and managing different types of databases including PostgreSQL, MySQL, and Firestore.
RAT MCP Server
🧠 MCP server implementing RAT (Retrieval Augmented Thinking) - combines DeepSeek's reasoning with GPT-4/Claude/Mistral responses, maintaining conversation context between interactions.

Titan Memory Server
Enables neural memory sequence learning with a memory-augmented model for improved code understanding and generation, featuring state management, novelty detection, and model persistence.

Workflow Learner
To teach LLM Agents understand workflows with PSR.exe's hmt.