Skip to main content

Installation

This guide covers everything you need to know about installing and configuring Basic Memory on different platforms.

System Requirements

Python

Version 3.12 or higher required

Operating System

macOS, Linux, or Windows

MCP Client

Claude Desktop, VS Code with MCP, or other MCP-compatible client

Disk Space

Minimal (~50MB for installation)
Basic Memory requires Python 3.12+ due to modern type system features (type statement and type parameters). It will not work with earlier Python versions.

Checking Your Python Version

Before installing, verify your Python version:
python --version
# or
python3 --version
If you see a version lower than 3.12, you’ll need to upgrade Python first:
# Using Homebrew
brew install [email protected]

Installation Methods

uv is a fast Python package installer. It’s the recommended method for installing Basic Memory.
1

Install uv (if not already installed)

curl -LsSf https://astral.sh/uv/install.sh | sh
2

Install Basic Memory

uv tool install basic-memory
This installs Basic Memory as a standalone tool with its own isolated environment.
3

Verify installation

basic-memory --version
You should see output like: basic-memory, version 0.15.0
With uv, you can also run Basic Memory without installing it using uvx basic-memory [command].

Method 2: Using pip

If you prefer pip or don’t want to install uv:
1

Install Basic Memory

pip install basic-memory
Or for a user-local installation (recommended):
pip install --user basic-memory
2

Verify installation

basic-memory --version

Method 3: From Source (For Development)

If you want to contribute or modify Basic Memory:
1

Clone the repository

git clone https://github.com/basicmachines-co/basic-memory.git
cd basic-memory
2

Install with development dependencies

# Using uv (recommended)
uv sync

# Or using pip
pip install -e ".[dev]"
3

Verify installation

basic-memory --version

Configuring MCP Clients

Basic Memory works with any MCP-compatible client. Here’s how to configure the most popular ones:

Claude Desktop

Claude Desktop is the most popular MCP client for Basic Memory.
1

Locate the configuration file

~/Library/Application Support/Claude/claude_desktop_config.json
If the file doesn’t exist, create it.
2

Add Basic Memory configuration

3

Restart Claude Desktop

Close and reopen Claude Desktop completely for the changes to take effect.
4

Verify MCP is working

Look for a small hammer icon (🔨) in Claude Desktop. When you start typing prompts like “Create a note about…”, Claude should be able to use Basic Memory tools.

VS Code

For VS Code with MCP support:
1

Open VS Code User Settings (JSON)

Press Ctrl + Shift + P (or Cmd + Shift + P on macOS) and type:
Preferences: Open User Settings (JSON)
2

Add Basic Memory configuration

{
  "mcp": {
    "servers": {
      "basic-memory": {
        "command": "uvx",
        "args": ["basic-memory", "mcp"]
      }
    }
  }
}
3

Alternative: Workspace configuration

Create .vscode/mcp.json in your workspace:
{
  "servers": {
    "basic-memory": {
      "command": "uvx",
      "args": ["basic-memory", "mcp"]
    }
  }
}
This allows sharing the configuration with your team.

Other MCP Clients

For other MCP-compatible clients, the general pattern is:
{
  "command": "uvx",
  "args": ["basic-memory", "mcp"]
}
Refer to your client’s documentation for specific configuration details.

Initial Setup

After installation, initialize your Basic Memory project:
1

Check default project location

By default, Basic Memory stores notes in ~/basic-memory/:
basic-memory status
This creates the directory and database if they don’t exist.
2

(Optional) Create a custom project

If you want to use a different location:
basic-memory project add my-project ~/Documents/my-knowledge-base
basic-memory project default my-project
3

Start sync service

For real-time synchronization:
basic-memory sync --watch
Or run a one-time sync:
basic-memory sync

Configuration Options

Custom Project Directory

To use a custom directory for your knowledge base:
# Add a new project
basic-memory project add work ~/work-knowledge

# Set it as default
basic-memory project default work

# Verify
basic-memory project list

Multiple Projects

You can manage multiple knowledge bases:
basic-memory project list

Cloud Sync (Optional)

Basic Memory Cloud provides cross-device synchronization:
1

Sign up for Basic Memory Cloud

Visit basicmemory.com and sign up for an account.
Use code BMFOSS for 20% off for 3 months (OSS discount).
2

Authenticate

basic-memory cloud login
This opens your browser for OAuth authentication.
3

Set up cloud sync

basic-memory cloud setup
This configures rclone for bidirectional sync.
4

Enable cloud for a project

basic-memory project set-cloud my-project
5

Sync to cloud

# One-way sync (local → cloud)
basic-memory project sync

# Bidirectional sync
basic-memory project bisync
Cloud sync is completely optional. Basic Memory works perfectly as a local-only tool.

Importing Existing Data

If you have existing notes or conversations, you can import them:

From Claude.ai

1

Export conversations from Claude.ai

In Claude.ai, go to Settings → Export Data to download your conversations.
2

Import to Basic Memory

basic-memory import claude conversations ~/Downloads/conversations.json
For projects:
basic-memory import claude projects ~/Downloads/projects.json

From ChatGPT

1

Export conversations from ChatGPT

In ChatGPT Settings, use Data Export to download your conversations.
2

Import to Basic Memory

basic-memory import chatgpt ~/Downloads/conversations.json

From Memory JSON

If you have data from another MCP memory server:
basic-memory import memory-json ~/path/to/memory.json

Verification

Verify your installation is working correctly:
1

Check version

basic-memory --version
2

Check status

basic-memory status
Should show your project directory and sync status.
3

Test MCP in Claude

Open Claude Desktop and try:
Create a note about testing Basic Memory installation
If it works, you should see a new file in ~/basic-memory/.

Troubleshooting

Problem: The basic-memory command is not in your PATH.Solutions:
  1. If using uv tool install, ensure uv’s bin directory is in your PATH:
    export PATH="$HOME/.local/bin:$PATH"
    
    Add this to your ~/.bashrc or ~/.zshrc to make it permanent.
  2. If using pip install --user, add the user bin directory:
    export PATH="$HOME/.local/bin:$PATH"
    
  3. Use the full path:
    ~/.local/bin/basic-memory --version
    
Problem: Error message about Python version.Solution: Upgrade to Python 3.12 or higher:
brew install [email protected]
Problem: No hammer icon or MCP tools in Claude Desktop.Solutions:
  1. Verify config file location is correct for your OS
  2. Check JSON syntax is valid (use a JSON validator)
  3. Ensure you fully restarted Claude Desktop (not just closed the window)
  4. Check Claude Desktop logs:
    • macOS: ~/Library/Logs/Claude/
    • Windows: %APPDATA%\Claude\logs\
  5. Test Basic Memory works directly:
    basic-memory --version
    
Problem: Cannot write to the default directory.Solution: Check directory permissions:
ls -la ~/basic-memory/
If needed, fix permissions:
chmod 755 ~/basic-memory/
Or use a custom directory:
basic-memory project add custom ~/Documents/knowledge
basic-memory project default custom
Problem: Files aren’t syncing or showing errors.Solutions:
  1. Check sync status:
    basic-memory status
    
  2. Run sync manually with verbose output:
    basic-memory sync --verbose
    
  3. Check logs:
    cat ~/.basic-memory/basic-memory.log
    
  4. Verify database integrity:
    basic-memory doctor
    
Problem: Cloud authentication fails.Solutions:
  1. Check your internet connection
  2. Verify your subscription is active at basicmemory.com
  3. Try logging out and back in:
    basic-memory cloud logout
    basic-memory cloud login
    
  4. Check cloud status:
    basic-memory cloud status
    

Uninstallation

If you need to uninstall Basic Memory:
uv tool uninstall basic-memory
To remove your data:
# Remove default project
rm -rf ~/basic-memory/

# Remove configuration
rm -rf ~/.basic-memory/
This permanently deletes your knowledge base. Back up any important notes before uninstalling.

Next Steps

Quick Start

Create your first note and start building your knowledge base

User Guide

Learn about Basic Memory’s features in depth

CLI Reference

Complete command-line interface documentation

Knowledge Format

Understand the Markdown format for notes

Getting Help

If you run into issues:

Discord Community

Ask questions and get help

GitHub Issues

Report bugs or request features

Documentation

Browse the full docs

Build docs developers (and LLMs) love