Claude Code
Set up Basic Memory with Claude Code for persistent development knowledge and enhanced coding sessions
Claude Code provides native support for Basic Memory through the Model Context Protocol (MCP), enabling persistent context across development sessions and building comprehensive coding knowledge.
Setup
Install Basic Memory cli
Configure Claude Code
Basic Memory works automatically with Claude Code through MCP. Install it with:
You can use the /mcp
command in Claude Code to check MCP server status and available tools.
Verify Installation
In Claude Code, check that Basic Memory tools are available:
You should see Basic Memory tools listed, including note creation, search, and project management.
Quick Start
Once configured, you can immediately start using Basic Memory in your development workflow:
MCP Integration Benefits
Claude Code’s native MCP support provides:
- Automatic tool access - No manual setup required
- Project-aware context - Maintains separate knowledge bases per project
- Real-time sync - Changes are immediately available
- Persistent memory - Context survives between sessions
- Structured knowledge - Uses Basic Memory’s semantic format
Available Tools
Through MCP, Claude Code can access all Basic Memory functionality:
- write_note - Create and update documentation
- read_note - Access existing knowledge and context
- search_notes - Find relevant information across projects
- edit_note - Update documentation incrementally
- recent_activity - Check what you’ve been working on
- project management - Switch between different knowledge bases
- build_context - Load conversation context from memory:// URLs
Integration with Development
CLAUDE.md Enhancement
Claude Code uses CLAUDE.md files for project instructions. Basic Memory complements this by:
- Storing detailed knowledge outside the context window
- Enabling search across your entire knowledge base
- Maintaining history of decisions and learnings
- Linking related concepts through relations
Project Context
Basic Memory maintains separate knowledge bases for different projects:
Troubleshooting
Common Issues
Performance Tips
- Multiple projects: Use separate Basic Memory projects for different codebases
- Organized structure: Keep consistent folder organization across projects
- Regular cleanup: Archive old projects to maintain performance
Alternative Usage
If MCP isn’t working, you can still use Basic Memory:
CLI Integration
Use Basic Memory CLI tools from Claude Code’s terminal
File Editing
Edit Basic Memory notes directly and sync manually
Manual Context
Copy content from Basic Memory into conversations
Parallel Usage
Use Claude Desktop alongside Claude Code. With Basic Memory they can see the same notes and share context.