HomeKB MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@HomeKB MCP Serversearch my notes about gardening"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
HomeKB
A personal Markdown knowledge base that lives on your computer and stays within reach of your AI — locally or from anywhere.
Files first. Your notes remain ordinary
.mdfiles in a folder you control.Agent native. Claude Code, Codex, Claude, ChatGPT, and other MCP clients can search, read, create, update, and share notes.
Local by construction. The index, retrieval, and writes stay on your home computer; AI calls use the provider you configure.
Remote without an account. Pair with a one-time code; the relay stores relationships and token hashes, never your knowledge-base content at rest.
Your knowledge lives at home
HomeKB turns a folder of Markdown files into a semantic knowledge base without moving ownership into a cloud app.
Drop notes into ~/.homekb/notes/ — or point HomeKB at an existing Markdown folder — and the Rust engine incrementally builds a local sqlite-vec index. You can then search by meaning, ask questions with citations, edit notes, or let an AI agent work with the library through MCP.
The command-line engine is the product core. The desktop app and Web UI are renderers over the same RPC contract, while the relay is only a pipe between a remote client and the engine running at home.
Related MCP server: alaya
What it can do
Compile Markdown into summaries, chunks, document types, suggested questions, and embeddings.
Retrieve with dual-pool KNN over document summaries and chunks, fused with RRF.
Switch to whole-category enumeration when a question asks for coverage rather than a top-K match.
Answer questions from local notes with source citations.
Create, read, update, list, and semantically search notes through the CLI or MCP.
Keep unpublished drafts on the home device and share them across paired clients.
Render Markdown and local images, upload pasted or dropped images, and edit notes from the desktop or Web UI.
Create revocable public links for individual notes, with optional passwords and expiry.
Connect remote browsers and AI clients through an outbound tunnel — no public IP on the home computer required.
How it works
flowchart LR
A["Phone, browser, or remote AI"] -->|"TLS · paired request"| R["HomeKB relay<br/>no knowledge data at rest"]
R -->|"outbound SSE tunnel"| E["HomeKB engine<br/>your computer"]
L["Local AI or desktop app"] -->|"MCP or loopback RPC"| E
E --> N["Markdown notes"]
E --> I["Local sqlite-vec index"]HomeKB has three independently useful pieces:
Piece | Role |
Engine ( | A self-contained Rust CLI for compilation, retrieval, Q&A, local MCP, local HTTP RPC, sharing, pairing, and tunneling. |
Client ( | One Next.js UI for two surfaces: a pure Web frontend and a Tauri desktop renderer that installs and talks to the local engine. |
Relay ( | Interchangeable Cloudflare Workers and Node targets that forward RPC, streams, and binary assets without storing knowledge-base content. |
The protocol and data-layout contract lives in docs/ARCHITECTURE.md.
Quick start: engine
The engine is a single self-contained binary — bundled SQLite, rustls TLS, no runtime dependencies and no Rust toolchain required. Install it through your platform's package manager:
# macOS / Linux — Homebrew
brew install do-md/tap/homekb
# macOS / Linux — install script
curl -fsSL https://raw.githubusercontent.com/do-md/homekb/main/install.sh | sh
# Windows — Scoop
scoop bucket add homekb https://github.com/do-md/scoop-bucket
scoop install homekbOr download a binary directly from the latest release. Prefer building from source? cd engine && cargo install --path cli (needs a recent Rust toolchain).
Then point it at an AI provider and index your notes:
# OpenAI shortcut: configures embedding + summary generation.
homekb init --openai-key "$OPENAI_API_KEY"
# Or index an existing Markdown folder.
# homekb init --notes "$HOME/Documents/notes" --openai-key "$OPENAI_API_KEY"
homekb reindex
homekb query "What did I decide about local-first storage?"
homekb ask "Summarize my notes about local-first storage."homekb init creates the data directories and ~/.homekb/config.toml. HomeKB also supports built-in presets for OpenAI, Gemini, Voyage, Cohere, DeepSeek, and Qwen, plus custom OpenAI-compatible endpoints. See AI provider configuration.
To keep compilation running in the background on macOS:
homekb watch --install --interval 300On Linux and Windows, use homekb watch in your process manager for now; built-in service installation is currently macOS-only.
Connect an AI locally
HomeKB exposes the same tools to every MCP client:
kb_search · kb_read · kb_create · kb_update · kb_list · kb_status · kb_share
Claude Code:
claude mcp add homekb -- homekb mcpCodex:
codex mcp add homekb -- homekb mcpThe MCP server runs over stdio and calls the local engine directly. No relay is involved.
Remote access
Remote access uses a connection service — HomeKB's relay — and an outbound tunnel from the home computer. The recommended self-host target is Cloudflare Workers; a standalone Node + SQLite target is included for running on your own server.
Deploy a relay by following the Cloudflare Workers guide, or run the Node target.
Register the home computer and start its tunnel:
homekb register --relay https://your-relay.example.com homekb tunnel --install --interval 0 # macOS; watch handles compilation homekb pairUse the eight-character pairing code in the Web UI, or add
https://your-relay.example.com/api/mcpas a custom MCP connector in Claude or ChatGPT and enter the code during OAuth authorization.
If you did not install homekb watch, omit --interval 0; the tunnel's default 300-second interval can handle compilation as well.
The same pairing flow works for browsers and AI clients. There is no HomeKB account, and a pairing code is single-use and expires after ten minutes.
Data and trust model
Data | Where it lives |
Notes |
|
Drafts and assets |
|
Search snapshot |
|
Working database | The platform application-data directory, kept outside the data root to avoid cloud-sync/WAL corruption. |
Configuration and AI keys |
|
Relay state | Pairing relationships, share routing, and SHA-256 token hashes — no notes or index. |
There are two boundaries worth stating plainly:
At rest: the relay stores no note, attachment, search result, or index content. Your home computer remains the source of truth.
In transit: remote requests pass through relay memory after TLS termination. Text used for embeddings, summaries, or answers reaches the AI provider you configure. The current protocol is not end-to-end encrypted. Self-hosting the relay removes the HomeKB operator from this trust path; it does not remove the AI provider you choose.
See Relay trust boundary for the full model.
Engine commands
HomeKB follows a Git-style subcommand model — no REPL and no client dependency.
homekb init Create the data tree and configuration
homekb reindex Incrementally compile changed notes
homekb watch Run scheduled incremental compilation
homekb query Search semantically
homekb ask Answer from the library with citations
homekb new Create a Markdown note
homekb status Inspect index health
homekb rebuild Rebuild for a new embedding vector space
homekb mcp Serve local MCP over stdio
homekb serve Serve local HTTP RPC and assets
homekb register Register with a connection service
homekb pair Generate a one-time pairing code
homekb share Create, list, or revoke public note links
homekb tunnel Keep the home connected to the relayRun homekb <command> --help for complete options.
Development
Engine:
cd engine
cargo test
cargo buildWeb UI and Node relay:
cd client
npm install --include=dev
npm run dev # Web UI: http://localhost:3000
npm run relay:dev # Node relay: http://localhost:8787
npm testCloudflare Workers relay:
cd relay/cf
npm install --include=dev
npx wrangler devDesktop development uses Tauri 2 and the same client code. Start the Web dev server, then run npm run tauri dev from client/.
For contribution rules and the protocol-first workflow, read AGENTS.md and docs/ARCHITECTURE.md.
Current status
The Rust engine, local MCP, Node relay, Workers relay, Web UI, and macOS desktop shell are implemented and tested together.
Remote MCP pairing has been verified with claude.ai, the Claude mobile app, and ChatGPT Web.
The engine ships as prebuilt binaries for macOS (Apple Silicon + Intel), Linux (x86_64, glibc ≥ 2.35), and Windows (x86_64), published on every
engine-v*tag and installable via Homebrew, Scoop, or the install script.Background-service installation is macOS-only; Linux and Windows currently run
watchandtunnelunder an external process manager.End-to-end encryption, native mobile apps, conflict resolution, and ChatGPT Deep Research
search/fetchtools are not implemented.
HomeKB is not presented as production-ready yet. The design is intentionally open and inspectable while the distribution and first-run experience are being finished.
License
Source code owned by the HomeKB repository is available under the MIT License: you may use, modify, distribute, sublicense, and sell it under the license terms.
The MIT License does not relicense third-party dependencies. In particular, @do-md/core-react@0.2.14 is licensed under the PolyForm Noncommercial License 1.0.0 and retains its noncommercial-use restrictions. See Third-Party Notices before distributing a complete HomeKB build.
Documentation and feedback
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/do-md/homekb'
If you have feedback or need assistance with the MCP directory API, please join our Discord server