A CLI tool and MCP server for managing markdown knowledge bases across coding projects.
{
"mcpServers": {
"kb": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A CLI tool and MCP server for managing markdown knowledge bases across coding projects.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 42 days ago. 7 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
A CLI tool and MCP server for managing markdown knowledge bases across projects. Externalizes project context (CLAUDE.md/AGENT.md) and shared documentation (API docs, specs, workflows) into a central versioned directory, then exposes it to AI coding agents via MCP.
Supports Claude Code, OpenAI Codex, and OpenCode.

kb solves this by centralizing knowledge into ~/knowledge-base/ with:
go install github.com/leona/kb@latest
Or download a prebuilt binary from the latest release:
curl -Lo kb https://github.com/leona/kb/releases/latest/download/kb-linux-amd64
chmod +x kb
sudo mv kb /usr/local/bin/kb
Replace kb-linux-amd64 with your platform: kb-darwin-arm64 (macOS Apple Silicon), kb-darwin-amd64 (macOS Intel), kb-windows-amd64.exe.
kb init
This creates ~/knowledge-base/ with:
kb.yml — configuration fileshared/ — directory for shared documentsprojects/ — directory for per-project knowledge.git/ — version history (auto-managed)To use a different directory:
kb init --dir ~/my-knowledge-base
Then set KB_ROOT in your shell config:
export KB_ROOT="$HOME/my-knowledge-base"
From inside a project directory:
kb setup
Or specify the project name:
kb setup my-project
This auto-detects installed agents and:
.mcp.json for Claude Code, .codex/config.toml for Codex, opencode.json for OpenCode)@import pointers in CLAUDE.md (and AGENTS.md/AGENT.md if they exist) pointing to the KB contextShows what will be written and asks for confirmation (-y to skip).
Restart your agent after setup to connect to the MCP server.
Claude Code expands this @import automatically — the full context loads as before. When Claude modifies the context, it edits the KB file (because of the directive header), not the repo's CLAUDE.md.
Interactive TUI for navigating the knowledge base:
kb
h/l, tab to switch panes, / to filter, Enter to open, Esc to go backq or Ctrl+C to quitAgents use KB tools via MCP to search, read, and create docs on-demand.
Searching the knowledge base:

Reading shared API docs:

Creating a new shared doc:

Every CLI write operation auto-commits to the KB's git repo with a descriptive mes
No automated test available for this server. Check the GitHub README for setup instructions.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationNo known vulnerabilities.
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
An open-source AI agent that brings the power of Gemini directly into your terminal.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
DataForSEO API modelcontextprotocol server
MCP Security Weekly
Get CVE alerts and security updates for Kb and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.