# Basic Memory

> Basic Memory is a freemium MCP server for files and documents. Local-first notes your AI reads and writes as Markdown, built into a knowledge graph. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $15 a month
- **Platforms:** CLI, Self-hosted, Web, macOS, Windows, Linux
- **Repository:** https://github.com/basicmachines-co/basic-memory
- **MCP Registry name:** io.github.basicmachines-co/basic-memory
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

Basic Memory keeps what you and an assistant work out together as plain Markdown files on your own disk. Both sides write to the same files and sync keeps them aligned, so notes stay readable in tools such as Obsidian. Observations and wikilinks in the notes form a knowledge graph that adds context to later conversations.

Search works by meaning as well as keywords, with optional cross-encoder reranking, and each tool is tagged with hints such as read-only, destructive or idempotent so agents can choose without trial and error. Postgres deployments that keep vectors in Milvus can use an optional extra.

Two routes are offered. The local install is free under AGPL-3.0 via uv tool install basic-memory with the prerelease flag, and works air-gapped. The hosted cloud adds cross-device sync, mobile and web access, snapshots and backups at $15 a month locked in for life (regular price $19), with a 7-day trial and a Teams option for shared workspaces. Notes can be exported as Markdown at any time.

## Features

- **Markdown on disk:** Notes are plain text files both you and the AI can edit.
- **Knowledge graph:** Observations and wikilinks link notes into connected context.
- **Semantic search:** Finds notes by meaning with optional reranking.
- **Tool behaviour hints:** Tools are tagged read-only, destructive or idempotent.
- **Optional cloud:** Hosted sync, mobile access and snapshots for a monthly fee.
- **Teams workspace:** A shared cloud workspace where teammates and their AIs see the same notes.

## Good for

- Pick up a project in Claude Code where the last session ended
- Keep a running log of learnings across AI clients
- Search past notes by concept instead of exact words
- Share one knowledge base across a team and its assistants
- Edit the same notes in Obsidian and through an AI

## Install

### Claude Code: Add with the CLI (Terminal)

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

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add basic-memory -- uvx basic-memory
```

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user basic-memory uvx -- basic-memory

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

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

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### Is Basic Memory free?

The local install is free under AGPL-3.0; the cloud service costs $15 a month with a 7-day free trial.

### Where is my data stored?

Locally on your disk, or in the hosted cloud if you choose it; notes can be exported as Markdown.

### Which clients work?

Claude Desktop, Claude Code, Codex, Cursor, VS Code, ChatGPT and any MCP client.

### Does Basic Memory work offline?

The local install is described as air-gapped friendly.

### How do I add Basic Memory to Claude Code?

Run this command in your terminal: claude mcp add basic-memory -- uvx basic-memory

### What are the best alternatives to Basic Memory?

The closest alternatives to Basic Memory are Codebase Memory, XERJ, Ha MCP, Claude Code Ultimate Guide and Concord MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Open Sunsama](https://ai-powered.com/mcp/open-sunsama): Open Sunsama is an open-source MCP server for productivity.

---
Source: https://ai-powered.com/mcp/basic-memory
