home / mcp / basic memory mcp server
Provides a local-first knowledge graph and MCP-enabled access to create, read, and navigate Markdown notes.
Configuration
View docs{
"mcpServers": {
"basicmachines-co-basic-memory": {
"command": "uvx",
"args": [
"basic-memory",
"mcp"
],
"env": {
"BASIC_MEMORY_ENV": "dev",
"BASIC_MEMORY_LOG_LEVEL": "DEBUG",
"BASIC_MEMORY_CLOUD_MODE": "true",
"BASIC_MEMORY_FORCE_CLOUD": "false",
"BASIC_MEMORY_FORCE_LOCAL": "false",
"BASIC_MEMORY_EXPLICIT_ROUTING": "false"
}
}
}
}Basic Memory MCP Server enables your local Markdown-based knowledge graph to be read and written by compatible AI assistants through the MCP protocol. It focuses on local-first knowledge management with seamless integration into your preferred MCP clients, so you can structure, navigate, and grow your notes while retaining full control over your data.
You connect an MCP client to the Basic Memory server using the standard MCP setup provided by your client. In practice, you configure the client to point to the Basic Memory MCP server, then you can create, read, and navigate your knowledge graph through natural conversations and commands.
In Claude Desktop or similar MCP-enabled environments, you can route the Basic Memory server as a local MCP backend. Use the local routing to keep all data on your machine. You will be able to create notes during conversations, load context from existing Markdown files, and query your knowledge graph with semantic relations.
If you prefer to edit and view notes with editors like Obsidian or VS Code, you can access and manipulate your notes in real time while your AI assistant reads from and writes to the same files through MCP.
Prerequisites you need before installing: a shell environment, and a client that can launch MCP servers. The recommended client in this setup is uv, which is used to install and run MCP-powered tools.
Step 1: Install the Basic Memory MCP client support with the recommended installer command.
Step 2: Configure your MCP client to connect to Basic Memory. Use the provided configuration snippet to register Basic Memory as an MCP server. This example shows how to wire Basic Memory into Claude Desktop’s MCP configuration, which enables you to create, read, and search notes through natural language prompts.
Step 3: Start using Basic Memory with your MCP client. The client will communicate with the local MCP server to load context, persist notes, and traverse the knowledge graph as you work.
Local-first and cloud options exist. You can keep all notes as Markdown files on your machine and optionally sync to the cloud.
The Basic Memory server exposes a simple local command flow that you use from your MCP client. For local operation, the recommended approach is to run the local MCP server through the standard CLI flow shown in the examples.
Cloud-related features require a valid subscription and OAuth flow for cloud access. You can route certain projects through the cloud while keeping others local, controlled by explicit routing commands.
The MCP integration provides a set of endpoints to manage knowledge and graph navigation. You can create notes, read notes, edit content, search across your notes, and build contextual views of your knowledge graph.
Create or update notes with specified title, content, folder, and tags; supports output in text or JSON formats.
Read notes by identifier, page, or permalink with configurable output format.
Read raw file content from a given path, returning text, images, or binaries.
View notes as formatted artifacts for quick review.
Edit notes incrementally with operations like append, find_replace, or replace_section.
Move notes to a new destination path while maintaining database consistency.
Delete notes from the knowledge base with optional JSON output.
Navigate the knowledge graph using memory:// URLs and return contextual results in the preferred format.
Query recently updated information within a specified depth and timeframe.
Browse directory contents with optional depth filtering.
Search across your knowledge base with a query and pagination.
Search notes with multiple filters including types, entity types, and tags.
Perform structured frontmatter searches across the repository.
List all available projects for memory management.
Create a new memory project with a given name and path.
Show current project statistics and status.
Check synchronization status between files and the knowledge graph.
Show optional Cloud overview and setup guidance.
Show latest release notes for the MCP server.
Generate knowledge visualizations from graph data.