# Kybase [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Kyrzin/kybase  
**GitHub Stars:** 6  
**npm Downloads (last month):** 446  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/kybase

## Description
Self-hosted Markdown memory for AI agents: notes you can read and edit, with hybrid search.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "kybase": {
    "command": "npx",
    "args": ["-y","kybase-mcp"],
    "env": {
      "KYBASE_SECRET": "",
      "POSTGRES_PASSWORD": ""
    }
  }
}
```

**Requires environment variables:** `KYBASE_SECRET`, `POSTGRES_PASSWORD` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Kybase does

Kybase provides persistent memory for AI agents as ordinary Markdown notes. Agents can search the knowledge base, read notes, create new notes, update existing content, and connect related notes with wikilinks. The same knowledge base can be accessed by an MCP client and edited in Kybase’s browser interface, so the stored context remains visible and manually maintainable.

Search is hybrid: full-text matching is combined with meaning-based retrieval into a ranked result. This helps an agent find a note by exact wording or by a related idea. Notes also support backlinks and a knowledge graph derived from `[[wikilinks]]`.

## How it works

The hosted application uses PostgreSQL with pgvector and exposes MCP through Streamable HTTP at `/api/mcp`. A client that supports OAuth can authenticate in a browser and receive its own revocable access token. The instance can be shared by several agents, each working against the same notes.

For a single local agent, the `kybase-mcp` package runs through `npx` and stores notes below `~/.kybase`. This mode does not require Docker or a separate database. Notes can be exported as a ZIP containing plain Markdown and folders, and an exported ZIP can be imported back into the application.

Semantic search requires an embedding provider. Kybase supports Google and OpenAI through API keys, or Ollama running locally with the optional Docker profile. Text search and note operations are available without enabling semantic embeddings.

## Setup and configuration

The full application is started with Docker Compose after creating `.env` from `.env.example`. Set `KYBASE_SECRET` and `POSTGRES_PASSWORD` to generated secrets, then start the stack and open the web interface on port 3000. The application uses `KYBASE_SECRET` for sign-in. The deployment is approximately 1 GB before the optional Ollama image, which adds about 4 GB.

For a local MCP connection, add a client entry that runs `npx -y kybase-mcp`, then restart the client. Remote clients connect to the `/api/mcp` URL. Claude Code, Claude Desktop, claude.ai, ChatGPT, and Cursor use the HTTP endpoint; clients limited to stdio can use the local package configuration. Remote connections from Claude or ChatGPT require an HTTPS-reachable deployment.

## Tools and capabilities

- Search notes with combined full-text and semantic ranking.
- Read targeted sections instead of retrieving an entire note.
- Create notes and write new content through MCP.
- Update existing notes at section level.
- Link notes with `[[wikilinks]]` and inspect connected knowledge through backlinks and the graph view.
- Export and import the knowledge base as a Markdown ZIP.

## Limitations and notes

The full deployment requires Docker Compose and a PostgreSQL-backed application stack. Semantic retrieval depends on configuring Google, OpenAI, or Ollama embeddings; Ollama is an optional profile rather than part of the default installation. A shared HTTP deployment should use OAuth-capable clients where possible so the main `KYBASE_SECRET` does not need to be placed in client configuration. Clients without OAuth may use that secret directly, but it grants access to the whole instance.

The local package and the full web application represent separate operating modes: the local mode keeps notes under `~/.kybase`, while the Docker deployment provides the shared web UI, graph view, sharing features, and multi-agent access.

_Full upstream README: https://allmcps.com/mcp/kybase/readme_

