The Memory Bank MCP server is a structured documentation system for project knowledge management with the following capabilities:
Initialize Memory Bank: Create a new documentation structure with templates, project goals, and optional Gemini API key
AI-Generated Documentation: Automatically generate project documentation using the Gemini API
Structured Knowledge System: Maintain six core document types in a hierarchical structure
Update Documents: Modify or regenerate specific documents manually or with AI assistance
Query Memory Bank: Search across all documents with context-aware relevance ranking
Export Documentation: Export in JSON or folder format to a specified location
MCP Integration: Seamlessly integrate with AI assistants via the Model Context Protocol
Generates and maintains interconnected Markdown documents that capture different aspects of project knowledge in a structured format
Memory Bank MCP
Memory Bank is an MCP server that helps teams create, manage, and access structured project documentation. It generates and maintains a set of interconnected Markdown documents that capture different aspects of project knowledge, from high-level goals to technical details and day-to-day progress.
Features
AI-Generated Documentation: Leverages Gemini API to automatically generate comprehensive project documentation
Structured Knowledge System: Maintains six core document types in a hierarchical structure
MCP Integration: Implements the Model Context Protocol for seamless integration with AI assistants
Customizable Location: Specify where you want your Memory Bank directory created
Document Templates: Pre-defined templates for project brief, product context, system patterns, etc.
AI-Assisted Updates: Update documents manually or regenerate them with AI assistance
Advanced Querying: Search across all documents with context-aware relevance ranking
Related MCP server: Linear
Installation
Usage
Development Mode
Production Mode
MCP Configuration
To integrate Memory Bank with the Model Context Protocol (MCP), add the following configuration to your mcp.json file:
Replace /path/to/memory-bank-mcp/dist/index.js with the absolute path to your built index.js file, and add your Gemini API key (if applicable).
Example:
MCP Tools
Memory Bank MCP provides the following tools via the Model Context Protocol:
initialize_memory_bank
Creates a new Memory Bank structure with all document templates.
Parameters:
goal(string): Project goal description (min 10 characters)geminiApiKey(string, optional): Gemini API key for document generationlocation(string, optional): Absolute path where memory-bank folder will be created
Example:
update_document
Updates a specific document in the Memory Bank.
Parameters:
documentType(enum): One of:projectbrief,productContext,systemPatterns,techContext,activeContext,progresscontent(string, optional): New content for the documentregenerate(boolean, default: false): Whether to regenerate the document using AI
Example:
query_memory_bank
Searches across all documents with context-aware relevance ranking.
Parameters:
query(string): Search query (min 5 characters)
Example:
export_memory_bank
Exports all Memory Bank documents.
Parameters:
format(enum, default: "folder"): Export format, either "json" or "folder"outputPath(string, optional): Custom output path for the export
Example:
Document Types
Memory Bank organizes project knowledge into six core document types:
Project Brief (
projectbrief.md): Core document defining project objectives, scope, and visionProduct Context (
productContext.md): Documents product functionality from a user perspectiveSystem Patterns (
systemPatterns.md): Establishes system architecture and component relationshipsTech Context (
techContext.md): Specifies technology stack and implementation detailsActive Context (
activeContext.md): Tracks current tasks, open issues, and development focusProgress (
progress.md): Documents completed work, milestones, and project history
License
MIT