# Knowledge Base Server

> A shared knowledge base that grows with your AI agents.

- **URL**: https://followmcp.com/en/servers/knowledge-base-server
- **Category**: Database
- **Origin**: Community
- **Stars**: 190
- **FMRS Score**: 53/100 (Grade D)
- **Source**: https://github.com/willynikes2/knowledge-base-server
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Node.js 18+
- **Auth**: API key / credential required

## 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.

## 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
- 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.

## Client config (JSON)
```json
{"mcpServers":{"knowledge-base":{"command":"node","args":["/path/to/knowledge-base-server/bin/kb.js","mcp"]}}}
```

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