Knowledge Base logo

Knowledge Base

by @vulhdev

Stores, searches, versions, reviews, and links documents in a local SQLite knowledge base through MCP.

Install Knowledge Base

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": {
    "vulhdev-knowledge-base": {
      "command": "npx",
      "args": [
        "-y",
        "@vulhdev/knowledge-base"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y @vulhdev/knowledge-base

ntimes/linux-x64/native/libonnxruntime_providers_cuda.so to /tmp/allmcps-pre/node_modules/onnxruntime-node/bin/napi-v6/linux/x64/libonnxruntime_providers_cuda.so npm error Killed npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.2 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.2 npm notice To update run: npm install -g npm@12.2.2 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-12T15_09_17_915Z-debug-0.log

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

@vulhdev/knowledge-base is an MCP server for persistent document storage in SQLite, organized by workspace, feature, and content type. It provides CRUD operations, multilingual semantic search using a local ONNX model plus BM25 ranking, version history, document lineage, and links between plans and git commits. Review tools connect documents to a local browser interface for inline comments and resolution. Use it when Claude Code needs durable project context across sessions without an external database service.

Use cases

  • Save specifications, plans, ideas, and feature documentation across sessions
  • Search project knowledge with natural-language queries
  • Track document evolution from ideas to specifications and plans
  • Link implementation commits to plan tasks
  • Collect and resolve inline document review comments

Key features

  • SQLite-backed persistent document storage
  • Hybrid semantic and BM25 full-text search
  • Document lineage and version history
  • Git commit references for plan tasks
  • Inline review workflow with comment resolution
  • Claude Code skills and agents

Tools19

What Knowledge Base lets your agent do. Expand a tool for its parameters.

Self-reported~788 tokens of context

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.

5/5 checks healthy over the last 19d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @vulhdev/knowledge-base (npm)

Adoption & maintenance

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

GitHub stars4Stargazers on the source repository.
npm downloads626Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed19Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Knowledge Base works

What @vulhdev/knowledge-base does

@vulhdev/knowledge-base gives MCP clients a persistent knowledge base for ideas, specifications, plans, feature documentation, digests, and other documents. Content is arranged in a three-level hierarchy: workspace, feature, and document. The database is stored locally in SQLite, so saved material remains available across Claude Code sessions without requiring a hosted service.

Documents can be created, read, listed, updated, and permanently deleted. Titles are optional but appear in list and search results. The server also models relationships between documents: link_content connects existing records, derive_content creates a child document while inheriting the parent workspace and feature, and get_lineage returns both ancestors and descendants.

How it works

Semantic search combines vector similarity from a local ONNX embedding model with BM25 full-text search through Reciprocal Rank Fusion. It supports natural-language queries, including Vietnamese and other languages covered by the multilingual model. Title matches receive additional weight, recent documents receive a limited recency boost, and results can be paged with an offset.

Content versions are separate records in a version chain. create_version creates the next version and marks the previous latest record as no longer current; list_versions returns the complete chain in ascending order. Standard listing and semantic search operations expose only the latest version.

Plans or other documents can be associated with git commits at task granularity. Review sessions use the local GUI: Claude opens a document review URL, a user selects text and comments, and MCP tools wait for the committed review before comments and review status are resolved.

Setup and configuration

The package requires Node.js 22.5 or later. Install it as a Claude Code plugin with the marketplace commands, or register the MCP server directly:

Terminal
claude mcp add knowledge-base -- npx -y @vulhdev/knowledge-base

On first use, it creates ~/.claude/knowledge-base/settings.json and stores the database at ~/.claude/knowledge-base/knowledge-base.db. Running npx @vulhdev/knowledge-base init can associate a project with a workspace, download the roughly 120 MB embedding model, and install the bundled Claude Code skills and agents globally or in the current project.

Native compilation may require C++ build tools for better-sqlite3. Prebuilt binaries cover common platforms; if startup reports a native addon error, install the platform's build tools and run npm rebuild better-sqlite3.

The optional browser interface starts with npx @vulhdev/knowledge-base gui and listens on port 57891 by default. Its port can be changed with PORT.

Tools and capabilities

  • Create, retrieve, list, update, and delete documents.
  • Search content with hybrid semantic and full-text ranking.
  • Create and inspect document version chains.
  • Link documents, derive child documents, and inspect lineage.
  • Attach git commits to document tasks and retrieve commit coverage.
  • Open reviews, wait for committed feedback, list pending reviews, and resolve comments or complete reviews.
  • Use Claude Code skills for creation, search, import, export, exploration, digests, documentation analysis, review, feedback resolution, and version diffs.
  • Inspect tool failures captured in the GUI's Errors view.

Limitations and notes

Semantic search depends on the locally downloaded embedding model. The database and model are local files, and the server uses SQLite rather than an external service. Deleting a document is permanent. Code references are not copied when a new document version is created, although features and content links are copied. The bundled skills and agents are specifically intended for Claude Code.

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 Knowledge Base

@vulhdev/knowledge-base is an MCP server that connects Claude Code to a local SQLite knowledge base. Its main tools create, retrieve, update, delete, list, and search documents, while additional tools manage versions, lineage, git commit references, and inline reviews through the bundled browser interface.

Install it with Claude Code's marketplace commands or register it directly with `claude mcp add knowledge-base -- npx -y @vulhdev/knowledge-base`. Running `npx @vulhdev/knowledge-base init` can then configure a workspace, download the embedding model, and install optional Claude Code skills and agents.

Semantic search combines a local ONNX embedding model with BM25 full-text search using Reciprocal Rank Fusion. It can find related content without exact word matches, supports multilingual natural-language queries including Vietnamese, weights title matches more heavily, and supports pagination with `offset`.

Open a review with `open_for_review`, then give the returned GUI URL to the user for inline comments. `wait_for_review` waits for the user to commit the review; `get_pending_review`, `resolve_comment`, and `resolve_review` let Claude process comments and update their resolved status.

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