Basic Memory is a tool that lets you build persistent knowledge through natural conversations with Large Language Models (LLMs) like Claude. It stores everything in simple Markdown files on your computer and uses the Model Context Protocol (MCP) to enable any compatible LLM to read and write to your local knowledge base.
# Install with uv
uv tool install basic-memory
Edit your Claude Desktop configuration file (typically located at ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"basic-memory": {
"command": "uvx",
"args": [
"basic-memory",
"mcp"
]
}
}
}
npx -y @smithery/cli install @basicmachines-co/basic-memory --client claude
This installs and configures Basic Memory without requiring manual edits to the Claude Desktop configuration file.
Add the following to your VS Code User Settings (JSON):
{
"mcp": {
"servers": {
"basic-memory": {
"command": "uvx",
"args": ["basic-memory", "mcp"]
}
}
}
}
Alternatively, create a file at .vscode/mcp.json in your workspace:
{
"servers": {
"basic-memory": {
"command": "uvx",
"args": ["basic-memory", "mcp"]
}
}
}
# One-time sync of local knowledge updates
basic-memory sync
# Run realtime sync process (recommended)
basic-memory sync --watch
# Authenticate with cloud
basic-memory cloud login
# Bidirectional sync with cloud
basic-memory cloud sync
# Verify cloud integrity
basic-memory cloud check
# Mount cloud storage
basic-memory cloud mount
To use Basic Memory with a specific project, update your Claude Desktop config:
{
"mcpServers": {
"basic-memory": {
"command": "uvx",
"args": [
"basic-memory",
"mcp",
"--project",
"your-project-name"
]
}
}
}
Once configured, you can use these functions within Claude:
write_note(title, content, folder, tags) - Create or update notesread_note(identifier, page, page_size) - Read notes by title or permalinkread_content(path) - Read raw file contentview_note(identifier) - View notes as formatted artifactsedit_note(identifier, operation, content) - Edit notes incrementallymove_note(identifier, destination_path) - Move notes with database consistencydelete_note(identifier) - Delete notes from knowledge basebuild_context(url, depth, timeframe) - Navigate knowledge graph via memory:// URLsrecent_activity(type, depth, timeframe) - Find recently updated informationlist_directory(dir_name, depth) - Browse directory contents with filteringsearch(query, page, page_size) - Search across your knowledge baselist_memory_projects() - List all available projectscreate_memory_project(project_name, project_path) - Create new projectsget_current_project() - Show current project statssync_status() - Check synchronization statuscanvas(nodes, edges, title, folder) - Generate knowledge visualizationsTry these prompts in Claude Desktop:
Basic Memory stores knowledge in structured Markdown files:
---
title: <Entity title>
type: <The type of Entity> (e.g. note)
permalink: <a uri slug>
tags:
- <optional tags>
---
- [category] content #tag (optional context)
Examples:
- [method] Pour over extracts more floral notes than French press
- [tip] Grind size should be medium-fine for pour over #brewing
- [preference] Ethiopian beans have bright, fruity flavors (especially from Yirgacheffe)
- relation_type [[WikiLink]] (optional context)
Examples:
- pairs_well_with [[Chocolate Desserts]]
- grown_in [[Ethiopia]]
- requires [[Burr Grinder]]
All files are stored locally in your Basic Memory directory (default: ~/basic-memory).
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "basic-memory" '{"command":"uvx","args":["basic-memory","mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"basic-memory": {
"command": "uvx",
"args": [
"basic-memory",
"mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"basic-memory": {
"command": "uvx",
"args": [
"basic-memory",
"mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect