# Kybase

> Kybase is an open-source MCP server for knowledge and memory. Self-hosted Markdown memory for AI agents with notes you can read and edit. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** self-hosted, CLI, Web, Linux, macOS, Windows
- **Website:** https://kyrzin.github.io/kybase/
- **Repository:** https://github.com/kyrzin/kybase/tree/HEAD/packages/kybase-mcp
- **MCP Registry name:** io.github.Kyrzin/kybase
- **Categories:** knowledge and memory
- **Listing updated:** 2026-11-14

## About

Kybase gives an agent a persistent place to write what it learns, in plain Markdown stored in Postgres, while you read and correct the same notes in a browser. The site's example has an agent finding an architecture decision record and answering from it, with the section it came from.

The agent can open one section of a long note and append to it without rewriting the rest. Notes link with wikilinks and appear in a graph, every edit keeps the previous version labelled with the app that made it, and search combines keyword and semantic matching. Embeddings can use local Ollama, Google or OpenAI; without any provider, full-text search still works.

There are two ways to run it: npx kybase-mcp for a single local agent over stdio, or a Docker Compose stack for several agents and the web app, reached over HTTPS with OAuth sign-in. It is open source under AGPL-3.0 and has no vendor account or cloud service in between.

## Features

- **Plain Markdown notes:** Everything the agent saves is readable and editable text.
- **Hybrid search:** Finds notes by exact words and by meaning.
- **Section-level edits:** Agents read and append to parts of long notes.
- **Version history:** Each edit keeps the earlier version, labelled by app.
- **Wikilinks and graph:** Notes link together and show as a graph.
- **Choice of embeddings:** Ollama, Google or OpenAI, or full-text only.

## Good for

- Give Claude or Cursor a shared memory across sessions
- Keep architecture decisions where agents can cite them
- Review and fix what an agent wrote down
- Export notes as a Markdown vault zip

## Install

### Claude Code (Terminal)

```sh
claude mcp add kybase --env GOOGLE_API_KEY='<GOOGLE_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env DATABASE_URL='<DATABASE_URL>' -- npx -y kybase-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "kybase": {
      "command": "npx",
      "args": [
        "-y",
        "kybase-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "kybase": {
      "command": "npx",
      "args": [
        "-y",
        "kybase-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "kybase": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "kybase-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "kybase": {
      "command": "npx",
      "args": [
        "-y",
        "kybase-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "kybase": {
      "command": "npx",
      "args": [
        "-y",
        "kybase-mcp"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

## Tools

- `search_notes`: Search notes by keyword and meaning.

## FAQ

### Is there a Kybase account?

No. The site says it runs on your server or laptop with no Kybase account or cloud service.

### What licence is it?

AGPL-3.0.

### Do notes leave my machine?

Not with Ollama embeddings; Google and OpenAI embedding providers send text to those services.

### Can I get my notes out?

Yes, kybase-mcp export vault.zip writes them as Markdown.

### Is Kybase free?

Yes. Kybase is open source, so you can use and self-host it for free.

### How do I add Kybase to Claude Code?

Run this command in your terminal: claude mcp add kybase --env GOOGLE_API_KEY='<GOOGLE_API_KEY>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env DATABASE_URL='<DATABASE_URL>' -- npx -y kybase-mcp

### What are the best alternatives to Kybase?

The closest alternatives to Kybase are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and note1.

## 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.
- [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.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [note1](https://ai-powered.com/mcp/note1): note1 is an MCP server for productivity.
- [MedXpert 图书馆连接器（通用版）](https://ai-powered.com/mcp/medxpert): MedXpert 图书馆连接器（通用版） is an open-source MCP server for knowledge and memory.
- [Context Nest](https://ai-powered.com/mcp/context-nest): Context Nest is a freemium MCP server for knowledge and memory.
- [Tulsa Ecosystem Map](https://ai-powered.com/mcp/tulsa-ecosystem-map): Tulsa Ecosystem Map is a free MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/kybase
