Basic Memory logo

Basic Memory

by basicmachines-co

Local-first MCP memory built from searchable Markdown files and a semantic knowledge graph.

Install Basic Memory

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "basicmachines-co-basic-memory": {
      "command": "uvx",
      "args": [
        "--prerelease=allow",
        "basic-memory"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

basicmachines-co/basic-memory gives MCP clients read/write access to a local-first knowledge base stored as plain Markdown files. Its tools cover file and note management, semantic search, graph-based context retrieval, and documentation lookup. Humans and agents can work on the same files, while optional cloud sync supports cross-device and team workspaces. Reach for it when an agent needs durable project memory that remains inspectable and portable.

Use cases

  • Store durable project notes for AI agents
  • Search a personal knowledge base by meaning
  • Share synchronized Markdown knowledge with a team
  • Build context from linked observations and notes

Key features

  • Plain Markdown storage
  • Semantic and hybrid search
  • Knowledge graph context retrieval
  • Read/write MCP tools for note management
  • Optional cloud sync and team workspaces

Tools12

What Basic Memory lets your agent do. Expand a tool for its parameters.

Self-reported~22 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

47/47 checks healthy over the last 89d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · basic-memory (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4.5kStargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed12Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Basic Memory works

What basicmachines-co/basic-memory does

basicmachines-co/basic-memory provides persistent AI memory through a semantic knowledge graph backed by plain Markdown files. The files remain readable and editable by people as well as agents, so the knowledge base is not confined to an opaque database format. Wikilinks and observations contribute relationships that can be used to build context across notes.

The local installation keeps data on disk and is suitable for offline or air-gapped workflows. An optional hosted path adds cross-device synchronization, shared team workspaces, snapshots, backups, and access from web and mobile clients. Both paths use the same Markdown-based product model, and notes can be exported as ordinary Markdown.

How it works

An MCP client connects to the server over stdio or HTTPS. Agents can then create, inspect, change, move, remove, list, and locate knowledge stored in the Markdown collection. Search supports semantic matching rather than relying only on exact keywords; optional cross-encoder reranking can improve vector and hybrid search results.

The bm_context capability helps assemble related information for an agent, while bm_man exposes tool guidance. The server also includes search and fetch tools for clients that use those MCP operations. Tool behavior hints identify properties such as read-only, destructive, and idempotent operations, allowing clients to discover capabilities progressively.

Setup and configuration

The local package requires Python 3.12 or newer and can be installed with uv:

bash
uv tool install basic-memory --prerelease=allow

The prerelease option is required because the package depends on a prerelease FastMCP version. The same option should be used with related uvx and upgrade commands. Deployments using Postgres with semantic vectors in Milvus can install the optional extra:

bash
uv tool install "basic-memory[milvus]" --prerelease=allow

After installation, configure the MCP client to launch the local server or connect it to the hosted HTTPS service. The cloud option requires no local Python installation and provides managed hosting, synchronization, and backups.

Tools and capabilities

  • bm_write, bm_read, and bm_edit create, inspect, and update Markdown knowledge.
  • bm_move and bm_delete reorganize or remove stored items.
  • bm_search, bm_list, and bm_find support semantic discovery and collection browsing.
  • bm_context gathers related knowledge for agent use.
  • bm_man provides tool-oriented guidance for progressive discovery.
  • search and fetch support MCP clients using those generic operations.
  • Optional cloud workspaces synchronize knowledge between devices and team members.

Limitations and notes

The local and cloud modes have different operational characteristics. Local data stays on disk, but cross-device synchronization, mobile access, snapshots, and backups must be handled separately. The hosted mode provides those services but is not air-gapped. Local installations are free under the AGPL-3.0 license; the hosted service is a paid offering with a trial.

Cloud synchronization can also be used alongside local Markdown workflows, including editing files with applications such as Obsidian. Plain Markdown export preserves the notes and wikilinks, which supports moving between local and hosted use without changing the underlying file format.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Basic Memory

basicmachines-co/basic-memory is an MCP server that connects AI clients to a local-first knowledge base made from plain Markdown files. Its main tools write, read, edit, move, delete, search, list, find, and assemble context from those files, with additional search and fetch tools for MCP clients that use them.

Install the local package with uv using `uv tool install basic-memory --prerelease=allow`. Python 3.12 or newer is required, and the prerelease flag is needed for its FastMCP dependency. Configure an MCP client to launch the installed server after installation.

Yes, basicmachines-co/basic-memory works with Cursor over stdio or HTTPS. The repository lists Cursor as a supported client and uses Cursor's `.cursor/mcp.json` configuration for the local connection.

Yes, the hosted option provides cross-device synchronization, web and mobile access, snapshots, backups, and shared team workspaces. The local mode keeps files on disk and does not provide built-in cross-device synchronization; users can manage that separately with tools such as Git or Syncthing.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBasic Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/basicmachines-co-basic-memory?style=directory)](https://allmcps.com/mcp/basicmachines-co-basic-memory)
HTML Embed
<a href="https://allmcps.com/mcp/basicmachines-co-basic-memory"><img src="https://allmcps.com/api/badge/basicmachines-co-basic-memory?style=directory" alt="Basic Memory on AllMCPs" /></a>