MCP Knowledge Base MCP Server

MCP server for knowledge base with local document processing

Local serverstdioTypeScript

What is the MCP Knowledge Base MCP server?

Connect MCP Knowledge Base to Claude, Cursor or any other MCP client and it stops being a tab you switch to. MCP server for knowledge base with local document processing. The mcp knowledge base mcp server is what makes that connection.

What the server does

这是一个基于 Model Context Protocol (MCP) 的知识库服务器,可以处理本地文档并根据文档内容回答问题。

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • add_document — 添加单个文档到知识库
  • add_directory — 添加目录中的所有文档到知识库
  • query_knowledge_base — 查询知识库并获取答案
  • list_documents — 列出所有文档
  • get_document — 获取特定文档信息
  • remove_document — 移除文档
  • clear_knowledge_base — 清空知识库
  • get_stats — 获取统计信息

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP Knowledge Base's toolset — add_document, add_directory, query_knowledge_base and 5 more — is a fair guide to whether it matches your workflow. It is maintained by ikungsjl; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
add_document添加单个文档到知识库
add_directory添加目录中的所有文档到知识库
query_knowledge_base查询知识库并获取答案
list_documents列出所有文档
get_document获取特定文档信息
remove_document移除文档
clear_knowledge_base清空知识库
get_stats获取统计信息

How to install the MCP Knowledge Base MCP server

{
  "mcpServers": {
    "knowledge-base": {
      "command": "node",
      "args": ["dist/index.js"],
      "env": {}
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use MCP Knowledge Base to add document.
  • Use MCP Knowledge Base to add directory.
  • Use MCP Knowledge Base to query knowledge base.

Frequently asked questions

It connects MCP Knowledge Base to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (add_document, add_directory, query_knowledge_base, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Knowledge Base directly.