This guide provides detailed instructions for integrating Memory Bank MCP with the Cursor code editor.
Cursor is an AI-powered code editor built on top of VS Code that supports the Model Context Protocol (MCP). It allows AI assistants to interact with external tools and resources, such as Memory Bank MCP.
Before integrating Memory Bank MCP with Cursor, ensure you have:
-
Installed Cursor
-
Verified that npx is available on your system:
npx --version
-
Verified that Memory Bank MCP is accessible via npx:
npx @movibe/memory-bank-mcp --help
Ensure that you can access Memory Bank MCP via npx:
npx @movibe/memory-bank-mcp --helpThis command should display the help information for Memory Bank MCP.
- Launch Cursor
- Go to Settings (⚙️) in the bottom left corner
- Navigate to Extensions > MCP
- Click on "Add MCP Server"
Fill in the following details:
- Name: Memory Bank MCP
- Command: npx
- Arguments:
@movibe/memory-bank-mcpfollowed by any optional modes- Example:
@movibe/memory-bank-mcp --mode codefor code-focused mode - Example:
@movibe/memory-bank-mcp --mode architectfor architecture-focused mode
- Example:
- Click "Save" to add the MCP server
- Enable the MCP server by toggling it on in the MCP servers list
- Open a project in Cursor
- Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
- Type "MCP: List Available Servers" and select it
- Verify that "Memory Bank MCP" is listed and active
Once configured, you can interact with Memory Bank MCP in Cursor through AI commands.
Use the /mcp command prefix to interact with Memory Bank MCP:
/mcp memory-bank-mcp <tool_name> <parameters>
-
Initialize a Memory Bank:
/mcp memory-bank-mcp initialize_memory_bank path=./memory-bank -
Set Memory Bank Path:
/mcp memory-bank-mcp set_memory_bank_path path=./memory-bank -
List Memory Bank Files:
/mcp memory-bank-mcp list_memory_bank_files random_string=list -
Get Memory Bank Status:
/mcp memory-bank-mcp get_memory_bank_status random_string=status
-
Track Progress:
/mcp memory-bank-mcp track_progress action="Feature Implementation" description="Implemented feature X"
-
Log Decision:
/mcp memory-bank-mcp log_decision title="API Design" context="Needed to design the API for feature X" decision="Used REST API with JSON responses"
-
Switch Mode:
/mcp memory-bank-mcp switch_mode mode=code -
Get Current Mode:
/mcp memory-bank-mcp get_current_mode random_string=mode
-
Read Memory Bank File:
/mcp memory-bank-mcp read_memory_bank_file filename=progress.md -
Write to Memory Bank File:
/mcp memory-bank-mcp write_memory_bank_file filename=notes.md content="# Project Notes\n\n- Note 1\n- Note 2"
-
Update Active Context:
/mcp memory-bank-mcp update_active_context tasks=["Task 1", "Task 2"] issues=["Issue 1"] nextSteps=["Step 1", "Step 2"]
-
Initialize a Memory Bank:
/mcp memory-bank-mcp initialize_memory_bank path=./memory-bank -
Update the product context with project information:
/mcp memory-bank-mcp read_memory_bank_file filename=product-context.md(Edit the content as needed)
/mcp memory-bank-mcp write_memory_bank_file filename=product-context.md content="..." -
Set up initial tasks:
/mcp memory-bank-mcp update_active_context tasks=["Set up project structure", "Implement core features"] nextSteps=["Create initial files", "Set up testing framework"]
-
Track progress on completed tasks:
/mcp memory-bank-mcp track_progress action="Project Setup" description="Created initial project structure with necessary configuration files" -
Log important decisions:
/mcp memory-bank-mcp log_decision title="Database Selection" context="Needed to select a database for the project" decision="Selected PostgreSQL for its reliability and feature set" -
Update active context as tasks are completed:
/mcp memory-bank-mcp update_active_context tasks=["Implement core features"] issues=["Performance issue in X module"] nextSteps=["Optimize X module", "Add more tests"]
If you see "Memory Bank not found" errors:
-
Verify the Memory Bank path:
/mcp memory-bank-mcp set_memory_bank_path path=/absolute/path/to/memory-bank -
Initialize a new Memory Bank if needed:
/mcp memory-bank-mcp initialize_memory_bank path=./memory-bank
If the MCP server is not responding:
-
Check if npx can access the package:
npx @movibe/memory-bank-mcp --help
-
Restart Cursor and try again
-
Clear npx cache if needed:
npx clear-npx-cache
- Initialize Early: Create a Memory Bank at the start of your project
- Track Regularly: Record progress and decisions as they happen
- Use Modes: Switch modes based on your current task (coding, debugging, etc.)
- Review Context: Regularly review the active context to stay focused
- Backup: Regularly backup your Memory Bank files