← Back to directory
K

Knowledge Base Server

Community
A shared knowledge base that grows with your AI agents.
Category
Database #45 of 86
Stars
★ 190 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js 18+
Credentials
API key / credential required
License
MIT
Last commit
Tools
21
53FMRS · D

The README describes a self-hosted knowledge base built on SQLite FTS5, local embeddings, and Obsidian sync, with MCP and REST access plus knowledge classification, synthesis, and capture. It is suited to users willing to deploy and manage stored knowledge. No server manifest was provided, so tool availability should be confirmed against the actual deployment.

Strongest · Setup experience 13/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
10/20
Maintenance
10/20
Documentation
12/20
Setup experience
13/20
Why each score
Reliability 8/20
The README describes MCP over stdio and HTTP, REST, SQLite FTS5, and a range of tools, but provides no reviewable server source, manifest, committed tests, or CI workflow contents to verify startup, initialization handshake, tool listing, or error handling. The capability descriptions are extensive, but actual behavior and dependency control cannot be confirmed from the supplied material, so points are deducted.
Security and permissions 10/20
The material describes bcrypt, HttpOnly session cookies, API keys, OAuth 2.1, JWTs, disabled public registration, and a safety review tool for destructive actions. However, there is no source evidence to confirm authentication boundaries, secret storage, permission scope, or whether safety review is enforced. Several tools can write or ingest content, and confirmation mechanisms and data boundaries are unspecified. Points are deducted; the material does not show a red-line behavior.
Maintenance 10/20
The repository is listed as unarchived and MIT licensed, with one open issue. The supplied material provides no commit dates, release history, issue response, dependency update record, or security reporting channel. Maintenance status and the update path are not sufficiently verifiable, so the score is moderate.
Documentation 12/20
The README provides architecture notes, installation steps, tool names, client configuration, authentication methods, environment variables, and usage examples. It lacks per-tool parameters, error behavior, limits, troubleshooting, and cost details. Some capabilities are presented only as summaries, and there is no source or manifest for cross-checking, so points are deducted.
Setup experience 13/20
The README specifies Node.js 18 or newer, interactive and automatic setup paths, and examples for Claude, Codex, Gemini, and remote HTTP clients. The path is fairly clear, but no manifest or execution evidence confirms installation or the MCP handshake, and manual configuration involves environment variables, paths, credentials, and optional service deployment.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkConnects to a database

Best for

  • Individuals or teams who want to self-host a persistent knowledge base and manage its data and deployment.
  • People using Claude Code, Codex CLI, or Gemini CLI who want shared knowledge context.
  • Users of Obsidian or those who need SQLite full-text search and local semantic retrieval.

Not for

  • People who want a hosted service and do not want to maintain servers, databases, or backups.
  • Users who only need simple search and do not need persistent storage, knowledge organization, or MCP integration.
  • Teams that require multi-user role-based access; the README lists this as a roadmap item.

Required permissions

  • A local deployment needs access to ~/.knowledge-base/ and to files and Obsidian vaults the user chooses to ingest or sync.
  • Write-capable tools can add ingested content, notes, classifications, and records to the database or Obsidian vault.
  • Remote deployments can use API Key or OAuth authentication; the server needs the corresponding credentials and access configuration.

Risks and side effects

  • Ingested files and session content are stored in the knowledge base; choose sources carefully to avoid retaining sensitive information that should not be shared.
  • Remote HTTP/API deployment exposes access to the knowledge base; configure authentication, HTTPS, and network access carefully.
  • Classification, synthesis, and self-learning workflows may produce inaccurate summaries or connections; verify important content.
  • The safety-review tool consults knowledge-base history and should not be treated as a guarantee that a destructive action is safe.

Setup

Before you start

Runtime:Node.js 18+

KB_PASSWORD requiredsecret Dashboard login password set on first run.
KB_API_KEY_CLAUDE optionalsecret API key for Claude remote access; configured by the operator.
KB_API_KEY_OPENAI optionalsecret API key for OpenAI/ChatGPT remote access; configured by the operator.
KB_API_KEY_GEMINI optionalsecret API key for Gemini remote access; configured by the operator.
KB_API_KEY_SWARM optionalsecret API key for agent-swarm to write to the mistake ledger; configured by the operator.
BETTER_AUTH_SECRET optionalsecret Token-signing secret for remote OAuth access; configured by the operator.
Other optional settings (6)
KB_PORT optional HTTP server port; defaults to 3838.
OBSIDIAN_VAULT_PATH optional Path to the Obsidian vault to sync; set it to the local vault directory.
KB_MISTAKES_HOME optional Folder for mistake ledger files; defaults to `~/.knowledge-base/mistakes`.
KB_PATTERN_MODEL optional Model name for `kb patterns draft`; defaults to `claude-sonnet-5-5`.
BETTER_AUTH_URL optional OAuth issuer URL for remote access; set it to the deployed service’s issuer URL.
CLASSIFY_MODEL optional Model name used for AI classification; defaults to `claude-haiku-4-5-20251001`.

Requires Node.js 18 or later. Clone the repository, run npm install and npm link, then run kb setup to configure the service; the first run requires KB_PASSWORD. Alternatively, configure an MCP client as shown in the README to run node /path/to/knowledge-base-server/bin/kb.js mcp. Run kb register to register MCP with Claude Code, Codex CLI, and Gemini CLI. For remote HTTP use, the README describes Streamable HTTP, OAuth 2.1, and API Key access; configure the domain and authentication for your deployment.

.mcp.json
{"mcpServers":{"knowledge-base":{"command":"node","args":["/path/to/knowledge-base-server/bin/kb.js","mcp"]}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "knowledge-base": {
      "command": "node",
      "args": [
        "/path/to/knowledge-base-server/bin/kb.js",
        "mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.knowledge-base]
command = "node"
args = ["/path/to/knowledge-base-server/bin/kb.js", "mcp"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add knowledge-base -- node /path/to/knowledge-base-server/bin/kb.js mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm that `kb_search` and `kb_context` appear in your client’s tool list, then ask it to search for recent bug fixes. Returned knowledge base results confirm the connection is working.

Troubleshooting

  1. Confirm Node.js 18 or later is installed and setup has completed successfully.
  2. Check that the server is running, the configured port is reachable, and the MCP command and path are correct; restart client sessions after registering local configuration.
  3. Check KB_PASSWORD, remote API Key or OAuth settings, and Obsidian vault path and file permissions.
  4. If search results are missing, confirm the content was ingested or indexed and check the retrieval tool and query terms.

Things to try

Once connected, you can ask your AI assistant things like:

  • Search the knowledge base for recent bug fixes.
  • Find and summarize the knowledge about Docker networking.
  • Record the findings and fixes from this debugging session.

Tools 21

kb_search read-only
Search the knowledge base with FTS5 and BM25 ranking.
kb_search_smart read-only
Combine keyword and semantic search for conceptual queries.
kb_context read-only
Return summaries and metadata as a token-efficient briefing.
kb_read read-only
Read a document's full content by ID.
kb_list read-only
List documents filtered by type or tag.
kb_write writes
Write a new note to the Obsidian vault.
kb_ingest writes
Ingest raw text into the database.
kb_classify writes
Automatically classify unprocessed content.
Show 13 more tools
kb_promote writes
Refine a raw source into structured knowledge.
kb_synthesize writes
Connect recent knowledge across sources and identify themes.
kb_capture_session writes
Record findings from a debugging or coding session.
kb_capture_fix writes
Record an issue's symptoms, cause, and resolution.
kb_capture_web writes
Capture a web article with its content and metadata.
kb_capture_youtube writes
Capture YouTube transcript text with metadata.
kb_vault_status read-only
Show knowledge-base indexing statistics.
kb_safety_check read-only
Review a planned destructive action against knowledge-base history.
bus_send writes
Send a Markdown message to a local channel; stdio only.
bus_inbox read-only
Read messages newer than a cursor; stdio only.
bus_wait read-only
Long-poll for a new message or until timeout; stdio only.
kb_mistake_record writes
Record a mistake caught by a reviewer or test, with its fix; local stdio only.
kb_patterns_for read-only
Return up to three approved known pitfalls matching a task; local stdio only.

Use cases

Share project context, decisions, and debugging findings across multiple AI agents.
Ingest and search knowledge from Obsidian, code, documents, and other supported sources.
Record sessions and fixes, then organize knowledge through classification, promotion, and synthesis.

Supported clients

Claude Code
Codex
Gemini CLI

Listed from the project's documentation, not tested by this site.

Overview

Knowledge Base Server is a self-hosted knowledge and memory service for AI agents. It uses SQLite FTS5 and local HuggingFace embeddings for full-text, semantic, and hybrid retrieval, with bidirectional Obsidian sync. MCP tools support ingesting, classifying, organizing, retrieving, and recording knowledge; a REST API is also available. The README says core MCP tools work over stdio and Streamable HTTP, while the message bus and mistake-ledger tools are local stdio only.

Similar servers

Source revision e7306fc7c375 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/knowledge-base-server.svg)](https://followmcp.com/en/servers/knowledge-base-server)