---
title: Basic Memory MCP Server for Claude Code
canonical: https://skillselion.com/mcp/tool/io.github.basicmachines-co/basic-memory
content_type: text/markdown
description: Basic Memory is a MCP server that provides local-first Markdown knowledge management with bi-directional LLM sync for agent sessions.
---

# Basic Memory MCP Server

Title: Basic Memory MCP Server for Claude Code

> Basic Memory is a MCP server that provides local-first Markdown knowledge management with bi-directional LLM sync for agent sessions.

Canonical: https://skillselion.com/mcp/tool/io.github.basicmachines-co/basic-memory

Basic Memory is an MCP server that keeps an agent's memory as plain Markdown files on your own disk. Observations and wikilinks across those files build a knowledge graph the agent searches by meaning, and sync runs both ways, so a note you edit in your own editor reaches the next session and anything the agent writes lands in a file you keep. It needs Python 3.12 or newer and ships under AGPL-3.0.

Basic Memory is a MCP server that provides local-first Markdown knowledge management with bi-directional LLM sync for agent sessions.

## Key facts

- Installs: 0
- GitHub stars: 4,604
- Author: basicmachines-co
- Repository: basicmachines-co/basic-memory
- Install command: `claude mcp add basic-memory -- uvx basic-memory`
- Last updated: November 16, 2026

## What Basic Memory MCP does

Give your coding agent durable, local Markdown memory that syncs both ways so session context survives across projects.

Agent chats forget yesterday’s decisions, forcing solo builders to re-explain architecture, pricing, and scope every time they open a new session.

After registration, your agent reads and writes durable Markdown memory on your machine so project context stays aligned with files you control.

Best for: Best when you use Claude Code or Cursor and want offline-friendly, editor-visible memory without paying for a hosted knowledge SaaS.

Not for: Multi-tenant team wikis with fine-grained ACLs, or developers who only need ephemeral chat with no long-term project ledger.

- Local-first knowledge store with bi-directional sync between LLM sessions and Markdown files
- Runs as stdio MCP via PyPI package basic-memory with uvx runtime hint
- You own plain Markdown on disk - readable outside any vendor UI
- Version 0.21.5 in catalog with explicit mcp subcommand in runtime arguments
- Fits long-horizon solo builds where decisions and specs must persist across weeks

## README

<!-- mcp-name: io.github.basicmachines-co/basic-memory -->
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
[![PyPI version](https://badge.fury.io/py/basic-memory.svg)](https://badge.fury.io/py/basic-memory)
[![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/)
[![Tests](https://github.com/basicmachines-co/basic-memory/workflows/Tests/badge.svg)](https://github.com/basicmachines-co/basic-memory/actions)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
![](https://badge.mcpx.dev?type=server 'MCP Server')
![](https://badge.mcpx.dev?type=dev 'MCP Dev')
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/basicmachines-co/basic-memory)

### Skip the install  -  try Basic Memory in the cloud

Claude, Codex, or Cursor connected in 30 seconds. No Python, no JSON, no
terminal. **$15.00/mo locked in for life** (12.50/mo yearly pricing). 7-day free
trial  -  cancel any time before day 7 if it's not for you. Beta pricing  - 
sign up now and your rate never goes up. OSS users: code `BMFOSS` takes
another 20% off for 3 months.

[Start free trial →](https://basicmemory.com?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=banner)

#### Basic Memory Teams is now available!

Give your team a single, shared cloud workspace. Knowledge isn't confined to one person  -  anything a teammate writes is immediately available to everyone else and to their AI assistants. 
Edit a note together in real time, hand work off between humans and agents, and build one connected knowledge base instead of scattered copies. Same pricing - start with one user and add more as needed. 

---

## Basic Memory

#### Your AI never forgets again.

Pick up right where you left off  -  in Claude, Codex, Cursor, ChatGPT, or
anything that speaks [MCP](https://modelcontextprotocol.io). Your knowledge
lives as Markdown files that both you and your AI can read, write, and
search.

- **Local-first.** Plain text on your disk. Forever.
- **Two-way.** AI and humans write to the same files; sync keeps them in step.
- **A real knowledge graph.** Observations and wikilinks compound into context.
- **Semantic search.** Find notes by meaning, not just keywords.
- **MCP-native.** Works with every major AI client and IDE.
- **Progressive tool discovery.** Every tool is tagged with behavior hints
  (read-only, destructive, idempotent) so agents pick the right tool on
  demand  -  no wasted context trying things to see what they do.
- **Cloud, optional.** Sync across devices when you want  -  never required.

### Get started

Pick the path that fits you. Both run the same product on the same Markdown.

<table>
<tr>
<th width="50%">☁️ &nbsp; Cloud</th>
<th width="50%">💻 &nbsp; Local install</th>
</tr>
<tr>
<td valign="top">

**30 seconds.** Sign up, connect your AI client, done.

- Works in any browser
- Mobile, web, desktop
- Cross-device sync built in
- We handle hosting, backups, snapshots

**$15.00/mo locked for life** · 7-day free trial · cancel any time

[**Start free trial →**](https://basicmemory.com?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=quickstart)

</td>
<td valign="top">

**2 minutes.** Install, configure your AI client, run.

- Free forever (AGPL-3.0)
- All data on your disk
- Air-gapped friendly
- Requires Python via [`uv`](https://docs.astral.sh/uv/)

```bash
uv tool install basic-memory
```

[**Configure your client ↓**](#connect-your-ai-client)

</td>
</tr>
</table>

### What people are saying

> Basic Memory changed my whole relationship with LLMs. I switched from GPT
> and Gemini to exclusively Claude and Claude Code because of this
> integration and am completely revamping all our company's processes around
> a Basic Memory workflow.
>
>  -  **Alex**, TrainerDay

> Basic Memory is the missing 'wow' factor in AI chatbots. Now I can't
> imagine Claude or Claude Code without it.
>
>  -  **Caleb**, Caleb Picker Consulting

> I don't code without Basic Memory anymore. It's such a time saver to be
> able to refer to projects I don't currently have active and keep a running
> log of all my learnings and ProTips.
>
>  -  **@groksrc**, Developer

More on [basicmemory.com](https://basicmemory.com?utm_source=github&utm_medium=referral&utm_campaign=readme).

### Basic Memory Cloud

The hosted version of Basic Memory. Same product, same Markdown files, same
MCP tools  -  we just host the database, run the sync, and put it on your
phone.

#### What you get

- **Every device, same brain.** Your knowledge graph on web, mobile, and
  desktop. No copy-paste between machines.
- **Connect any MCP client.** Claude Desktop, Claude Code, Codex, Cursor,
  ChatGPT (Custom GPTs), VS Code  -  one-click connect from the web app.
- **Bidirectional sync to local.** Edit on your phone, see it in Obsidian on
  your laptop. rclone-powered with conflict resolution.
- **Snapshots and backups.** Point-in-time restore. Browse history. Never
  lose a note.
- **No lock-in.** Your notes are plain Markdown. Export to local Markdown any
  time  -  same files, same format, same wikilinks. Cancel anytime, your data
  stays yours.

Built on WorkOS AuthKit, Neon Postgres, and Tigris S3.

#### Pricing

**$15.00/mo, locked in for the life of your subscription** (regular price
$19). Sign up during beta and the rate never goes up  -  as long as you stay
subscribed, you keep the price. One plan, no tiers, no surprise upgrades.
Unlimited notes, unlimited projects, every feature.

- 7-day free trial. Cancel any time before day 7 if it's not for you.
- Cancel anytime after that too  -  export your notes whenever you want.
- OSS users: code `BMFOSS` for another 20% off for 3 months (~$11.40/mo).

[**Start your 7-day free trial →**](https://basicmemory.com?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=cloud-section)

### Cloud vs. local

|  | Cloud | Local |
|---|---|---|
| **Setup time** | 30 seconds | 2 minutes (requires Python) |
| **Cost** | $15.00/mo, locked for life (7-day trial) | Free |
| **Storage** | We host (Tigris S3) | Your disk |
| **Cross-device sync** | Built in | Manual (Git, Syncthing, etc.) |
| **Mobile access** | Yes (web + app) | No |
| **Air-gapped** | No | Yes |
| **Your data stays yours** | Yes  -  export anytime | Yes  -  already there |
| **Source code** | AGPL-3.0 | AGPL-3.0 |
| **Snapshots & backups** | Built in | Roll your own |

Both paths use the same OSS engine and the same Markdown files. There's no
lock-in either way  -  flip between them when your needs change.

### Works with the tools you already use

| Client | Transport | Notes |
|---|---|---|
| Cloud web app | https | Sign in at basicmemory.com  -  no install |
| [Claude Desktop](#claude-desktop) | stdio/https | macOS / Windows / Linux |
| [Claude Code](#claude-code) | stdio/https | `claude mcp add` |
| [Codex](#codex-cli) | stdio/https | OpenAI's coding agent |
| [Cursor](#cursor) | stdio/https | `.cursor/mcp.json` |
| [VS Code](#vs-code) | stdio/https | Native MCP support |
| [ChatGPT](#chatgpt) | https | Custom GPT actions (`search` / `fetch`) |
| [Obsidian](#obsidian) |  -  | Reads/writes the same Markdown directly |
| Anything MCP | stdio/https | If it speaks MCP, it works |

### Official agent packages

This repository is also the canonical home for Basic Memory's host-native
agent packages. The core Python package, Claude Code plugin, shared skills,
Hermes plugin, and OpenClaw plugin all ship from the same source tree.

Maintainers can verify the whole consolidated surface from the repo root:

```bash
just package-check
```

Package-local justfiles are also available when working inside one host:

```bash
just package-check-claude-code
just package-check-skills
just package-check-hermes
just package-check-openclaw
```

#### Claude Code plugin

The Claude Code plugin is the bridge between Claude's working memory and Basic
Memory  -  session-start briefings, pre-compaction checkpoints, an opt-in capture
output style, and `/basic-memory:bm-setup` · `:remember` · `:share` · `:status`.

**Connect the Basic Memory MCP server first**  -  see [Connect your AI
client](#connect-your-ai-client). The plugin's hooks and skills call it, so it's a
hard prerequisite. Then add the marketplace and install:

```bash
claude plugin marketplace add basicmachines-co/basic-memory \
  --sparse .claude-plugin plugins/claude-code
claude plugin install basic-memory@basicmachines-co
```

Source: [`plugins/claude-code`](plugins/claude-code).

#### Shared skills

Framework-agnostic `SKILL.md` files live in [`skills/`](skills). If your
Skills CLI supports repository subdirectory sources:

```bash
npx skills add basicmachines-co/basic-memory/skills
```

If your installed Skills CLI cannot load that source, update the CLI or copy
the `memory-*` directories from `skills/` into your agent's skills directory.

#### Hermes

Hermes keeps its native plugin shape under [`integrations/hermes`](integrations/hermes):

```bash
hermes plugins install basicmachines-co/basic-memory --path integrations/hermes
```

If your Hermes build lacks subpath installs, use the final deprecated
`basicmachines-co/hermes-basic-memory` pointer release until host support
lands.

#### OpenClaw

OpenClaw stays package-native and publishes from
[`integrations/openclaw`](integrations/openclaw):

```bash
openclaw plugins install @basicmemory/openclaw-basic-memory
```

### Pick up where you left off

https://github.com/user-attachments/assets/a55d8238-8dd0-454a-be4c-8860dbbd0ddc

### Connect your AI client

If you went the [Cloud](#get-started) route, the web app walks you through
client connect. The snippets below are for local installs.

#### Claude Desktop

Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "basic-memory": {
      "command": "uvx",
      "args": ["basic-memory", "mcp"]
    }
  }
}
```

Restart Claude Desktop. Notes live in `~/basic-memory` by default.

<details>
<summary><b>Claude Code, Codex CLI, Cursor, VS Code, ChatGPT, Obsidian</b></summary>

#### Claude Code

```bash
claude mcp add basic-memory -- uvx basic-memory mcp
```

For the full memory bridge  -  session briefings, pre-compaction checkpoints, and
the `/basic-memory:*` commands  -  also install the [Claude Code
plugin](#claude-code-plugin) on top of this.

#### Codex CLI

Add to `~/.codex/config.toml`:

```toml
[mcp_servers.basic-memory]
command = "uvx"
args = ["basic-memory", "mcp"]
```

#### Cursor

Add to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):

```json
{
  "mcpServers": {
    "basic-memory": {
      "command": "uvx",
      "args": ["basic-memory", "mcp"]
    }
  }
}
```

#### VS Code

Add to your User Settings (JSON):

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

#### ChatGPT

Basic Memory exposes OpenAI-compatible `search` and `fetch` tools for Custom
GPT actions. See the [ChatGPT integration
guide](https://docs.basicmemory.com/integrations/chatgpt/?utm_source=github&utm_medium=referral&utm_campaign=readme).

#### Obsidian

No setup. Point Obsidian at `~/basic-memory` (or your project folder) and the
same wikilinks, frontmatter, and Markdown your AI writes appear in your graph
view. Edit either side  -  sync handles the rest.

</details>

Try a prompt:

```
"Create a note about our project architecture decisions."
"Find information about JWT auth in my notes."
"What have I been working on this week?"
```

### What's New

- **Automatic updates.** Basic Memory keeps itself up to date for `uv tool`
  and Homebrew installs; `bm update` triggers a manual check.
- **Semantic vector search.** Find notes by meaning, not just keywords.
  Hybrid full-text + vector ranking with FastEmbed embeddings, on SQLite or
  Postgres.
- **Schema system.** Infer, validate, and diff the structure of your
  knowledge base with `schema_infer`, `schema_validate`, `schema_diff`.
- **Per-project cloud routing.** Route individual projects through the cloud
  while others stay local, via API key (`bm project set-cloud`).
- **Smarter editing.** `edit_note` append/prepend auto-creates notes when
  missing; `write_note` guards against accidental overwrites.
- **Richer search results.** Matched chunk text is included so the LLM gets
  context, not just hits.
- **FastMCP 3.0 + tool annotations.** Every tool ships with MCP behavior
  hints (`readOnlyHint`, `destructiveHint`, `idempotentHint`,
  `openWorldHint`) so agents can discover capabilities progressively at
  runtime instead of guessing or burning tokens.
- **CLI overhaul.** `--json` output for scripting, workspace-aware commands,
  and an htop-inspired project dashboard.

Full [CHANGELOG](CHANGELOG.md) for v0.18 → v0.20.

### Why Basic Memory

Most LLM conversations are ephemeral. You ask a question, get an answer, then
everything is forgotten. Workarounds have limits:

- **Chat history** captures conversations but isn't structured knowledge.
- **RAG** lets the LLM query your documents but not write back to them.
- **Vector DBs** need complex infra and usually live in someone else's cloud.
- **Knowledge graphs** need specialized tooling to maintain.

Basic Memory takes a simpler path: **structured Markdown files that humans
and LLMs both read and write.**

- All knowledge stays in plain files you control.
- Both sides read and write to the same files.
- Familiar Markdown with semantic patterns  -  no new format to learn.
- A traversable graph the LLM can follow link by link.
- Works with the editors you already use (Obsidian, VS Code, anything).
- Just files plus a local SQLite index. No servers required.

### How it works

You're chatting normally about coffee:

> I've been experimenting with brewing methods. Pour over gives more clarity
> than French press, water at 205°F seems best, and freshly ground beans
> make a huge difference.

Ask the LLM to capture it:

> "Make a note on coffee brewing methods."

A Markdown file appears in your project directory in real time:

```markdown
---
title: Coffee Brewing Methods
permalink: coffee-brewing-methods
tags: [coffee, brewing]
---

# Coffee Brewing Methods

## Observations
- [method] Pour over highlights subtle flavors over body
- [technique] Water at 205°F (96°C) extracts optimal compounds
- [principle] Freshly ground beans preserve aromatics

## Relations
- relates_to [[Coffee Bean Origins]]
- requires [[Proper Grinding Technique]]
- affects [[Flavor Extraction]]
```

Next session, the LLM picks up the thread. It follows the relations to
surface what you already know about Ethiopian beans and burr grinders, and
builds on it instead of starting over. You see the same files in Obsidian or
your editor. Edit them by hand  -  the AI sees your changes too.

Real two-way flow: humans edit Markdown, LLMs read/write through MCP, sync
keeps everything consistent, and the source of truth is always your files.

### The Markdown format

Each file is an `Entity`. Entities have `Observations` (facts about them) and
`Relations` (links to other entities). That's the whole grammar.

#### Frontmatter

```markdown
---
title: <Entity title>
type: note
permalink: <uri-slug>
tags: [optional, list]
---
```

#### Observations

Facts about the entity. Categories in `[brackets]`, tags with `#`, optional
context in parens.

```markdown
- [method] Pour over highlights subtle flavors
- [tip] Grind medium-fine for V60 #brewing
- [fact] Lighter roasts contain more caffeine than dark
- [resource] James Hoffmann's V60 technique on YouTube
- [question] How does temperature affect compound extraction?
```

#### Relations

Wiki-style links that form the graph. Single-token relation types, or quote
multi-word ones.

```markdown
- pairs_well_with [[Chocolate Desserts]]
- grown_in [[Ethiopia]]

Excerpt. The rest of the file is on the canonical page and in the source repository.

## Basic Memory MCP FAQ

### Is Basic Memory free?

The server is open source under AGPL-3.0 and runs on your machine against Markdown files you own. Basic Machines also sells a hosted plan at $15 a month that runs the same engine on the same Markdown and adds the database, sync and mobile access. The README says you can export back to local Markdown at any time.

### Who is Basic Memory for?

It is for developers and agent power users who want persistent, file-based context that both humans and LLMs can update during long build cycles.

### When should I use Basic Memory?

Use it while building agent-tooling - once you have recurring projects where specs, research, and implementation notes must survive across many sessions.

### How do I add Basic Memory to my agent?

Install the basic-memory PyPI package, configure stdio MCP with uvx running basic-memory mcp per server metadata, then point your client at the local knowledge directory.

### How do I install Basic Memory MCP Server?

claude mcp add basic-memory -- uvx basic-memory

## Machine access

- [Sitemap](https://skillselion.com/sitemap.xml)
- [llms.txt](https://skillselion.com/llms.txt)
- [llms-full.txt](https://skillselion.com/llms-full.txt)
- [Developer resources](https://skillselion.com/developers)
- [OpenAPI spec](https://skillselion.com/openapi.json)
- [MCP handshake](https://skillselion.com/.well-known/mcp)
- [API catalog](https://skillselion.com/.well-known/api-catalog)
- [AI catalog](https://skillselion.com/.well-known/ai-catalog.json)
- [Pricing](https://skillselion.com/pricing.md)
- [Auth](https://skillselion.com/auth.md)
- [AGENTS.md](https://skillselion.com/AGENTS.md)
- [Contact](https://skillselion.com/contact)
- [Home](https://skillselion.com/)
