Kybase logo

Kybase

Self-hosted Markdown memory with hybrid search, section editing, wikilinks, exports, and MCP access over HTTP or stdio.

Install Kybase

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "kybase": {
      "command": "npx",
      "args": [
        "-y",
        "kybase-mcp"
      ],
      "env": {
        "KYBASE_SECRET": "YOUR_VALUE_HERE",
        "POSTGRES_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env KYBASE_SECRET=YOUR_VALUE_HERE --env POSTGRES_PASSWORD=YOUR_VALUE_HERE --transport stdio kybase -- npx -y kybase-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y kybase-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Kybase MCP server gives agents a self-hosted Markdown knowledge base they can search, read, create, update, and link through MCP. It supports Streamable HTTP at `/api/mcp` for shared deployments and an `npx` stdio package for a local agent, with notes stored on the local machine in the latter mode. Hybrid search combines full-text and semantic results, while section-level operations let agents work on targeted parts of a note. Reach for Kybase when multiple agents or sessions need shared, editable memory that remains available outside any single conversation.

Use cases

  • Store decisions and operational knowledge across agent sessions
  • Search Markdown notes by exact terms or related meaning
  • Share one editable knowledge base across multiple agents
  • Update targeted note sections without rewriting whole documents
  • Export agent memory as portable Markdown backups

Key features

  • Hybrid full-text and semantic search
  • Section-level note reads and edits
  • Markdown storage with browser editing
  • Wikilinks, backlinks, and knowledge graph
  • Streamable HTTP and stdio access
  • Markdown ZIP import and export

Security & health

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

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 54d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · kybase-mcp (npm)

Adoption & maintenance

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

GitHub stars6Stargazers on the source repository.
npm downloads446Package downloads in the last 30 days.
Last commit22d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Kybase works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Kybase

Kybase is an MCP server that connects AI agents to a self-hosted Markdown knowledge base. Its main tools let agents search, read, create, update, and link notes, with hybrid full-text and semantic search. It supports Streamable HTTP for shared deployments and an npx-based stdio mode for local use.

Install the local server by adding an MCP entry that runs `npx -y kybase-mcp`, then restart the client. For the full application, clone the repository, create `.env`, set `KYBASE_SECRET` and `POSTGRES_PASSWORD`, and start the Docker Compose stack.

Yes, Kybase works with Cursor through its Streamable HTTP endpoint. Add the server URL to the global `~/.cursor/mcp.json` or project `.cursor/mcp.json`, then connect the server in Cursor’s MCP settings and complete sign-in.

Yes, the local `kybase-mcp` package runs through `npx` without Docker or a separate database. It stores notes under `~/.kybase`; Docker is used for the full application with its web interface, shared access, and PostgreSQL stack.

Kybase combines full-text and semantic search into a ranked result. Exact wording can find notes through text search, while an embedding provider enables meaning-based retrieval through Google, OpenAI, or locally running Ollama.

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 PreviewKybase AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kybase?style=directory)](https://allmcps.com/mcp/kybase)
HTML Embed
<a href="https://allmcps.com/mcp/kybase"><img src="https://allmcps.com/api/badge/kybase?style=directory" alt="Kybase on AllMCPs" /></a>