Memory Bank MCP Server

Memory Bank MCP Server

A Model Context Protocol server that provides structured workflow tools for managing software development projects through different complexity levels, offering specialized modes for project planning, design, implementation, and documentation.

Category
访问服务器

Tools

van_mode

Initialize project and determine complexity level. Entry point for the Memory Bank system.

plan_mode

Create detailed implementation plan based on complexity level

creative_mode

Design and architecture work for complex components

implement_mode

Execute the implementation based on plan and creative decisions

reflect_archive_mode

Reflect on implementation and archive documentation

README

Memory Bank MCP Server

A Model Context Protocol (MCP) server implementing the Memory Bank system based on the cursor-memory-bank custom modes.

Overview

This MCP server provides structured workflow tools for managing software development projects through different complexity levels and phases:

  • VAN Mode: Project initialization and complexity assessment
  • PLAN Mode: Detailed implementation planning
  • CREATIVE Mode: Design and architecture decisions
  • IMPLEMENT Mode: Code implementation and execution
  • REFLECT+ARCHIVE Mode: Project reflection and documentation archiving

Features

🎯 VAN Mode (Entry Point)

  • Initialize new projects with complexity levels 1-4
  • Set up Memory Bank file structure
  • Determine appropriate next mode based on complexity

📋 PLAN Mode (Planning)

  • Generate implementation plans based on complexity level
  • Create detailed step-by-step approaches
  • Identify components requiring creative phases

🎨 CREATIVE Mode (Design)

  • Architecture design with multiple options analysis
  • Algorithm design with complexity considerations
  • UI/UX design with accessibility and usability focus
  • Structured documentation of design decisions

⚒️ IMPLEMENT Mode (Execution)

  • Phase-based implementation for complex projects
  • Integration testing and documentation
  • Progress tracking and status updates

🤔 REFLECT+ARCHIVE Mode (Completion)

  • Implementation reflection and lessons learned
  • Complete project archiving
  • Preparation for next task initialization

Installation

npm install
npm run build

Usage

Running the Server

npm start

Available Tools

1. van_mode

Initialize a project with complexity assessment.

Parameters:

  • complexity (required): "1" | "2" | "3" | "4"
    • Level 1: Quick bug fix
    • Level 2: Simple enhancement
    • Level 3: Complex feature
    • Level 4: Major feature/refactor
  • task_description (optional): Description of the task

Example:

{
  "complexity": "3",
  "task_description": "Implement user authentication system"
}

2. plan_mode

Create detailed implementation plan.

Parameters:

  • complexity (optional): Complexity level (reads from tasks.md if not provided)

3. creative_mode

Perform design and architecture work.

Parameters:

  • component_name (required): Name of component requiring design
  • creative_type (required): "architecture" | "algorithm" | "uiux"
  • requirements (required): Requirements and constraints

Example:

{
  "component_name": "user_auth_system",
  "creative_type": "architecture",
  "requirements": "Secure authentication with JWT tokens, OAuth integration, and role-based access control"
}

4. implement_mode

Execute implementation based on plan.

Parameters:

  • phase (optional): Implementation phase for complex projects
  • complexity (optional): Complexity level (reads from tasks.md if not provided)

5. reflect_archive_mode

Reflect on implementation and archive documentation.

Parameters:

  • action (required): "reflect" | "archive"
    • "reflect": Review and document implementation experience
    • "archive": Create final documentation archive

Memory Bank Files

The server creates and manages several files in the .memory_bank directory:

  • tasks.md: Main task tracking and status
  • activeContext.md: Current context and focus
  • progress.md: Implementation progress tracking
  • implementation-plan.md: Detailed implementation plan
  • reflection.md: Post-implementation reflection
  • creative-{component}.md: Creative phase documentation
  • docs/archive/project-archive.md: Final project archive

Workflow Example

# 1. Initialize project
van_mode(complexity="3", task_description="Build REST API")

# 2. Create implementation plan
plan_mode()

# 3. Design complex components (if Level 3-4)
creative_mode(component_name="api_architecture", creative_type="architecture", requirements="...")

# 4. Implement the solution
implement_mode(phase="core_components")

# 5. Reflect and archive
reflect_archive_mode(action="reflect")
reflect_archive_mode(action="archive")

Complexity Levels

  • Level 1: Quick bug fixes - Direct implementation, minimal planning
  • Level 2: Simple enhancements - Streamlined planning, straightforward implementation
  • Level 3: Complex features - Comprehensive planning, creative phases may be required
  • Level 4: Major features/refactors - Detailed architecture, phased implementation, creative design required

Development

# Development mode with auto-reload
npm run dev

# Build TypeScript
npm run build

# Run compiled server
npm start

Troubleshooting

Module Resolution Errors

If you encounter ERR_MODULE_NOT_FOUND errors when running the server, ensure:

  1. Build First: Always run npm run build before npm start
  2. ES Module Imports: All imports in source files use .js extensions
  3. TypeScript Config: The tsconfig.json is configured for ES modules with "module": "ESNext"
# Clean build if issues persist
rm -rf dist/
npm run build
npm start

Memory Bank Directory Permissions

If the server can't create the .memory_bank directory:

# Ensure write permissions in the working directory
chmod 755 .

Integration

This MCP server can be integrated with:

  • Claude Desktop: Add to MCP server configuration
  • Cursor IDE: Use with MCP client capabilities
  • VS Code: Through MCP extensions
  • Custom clients: Any MCP-compatible application

Based On

This implementation is based on the excellent cursor-memory-bank project by vanzan01, adapted for use as an MCP server.

License

ISC

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选