
jeanibarz/knowledge-base-mcp-server 是从 https://github.com/jeanibarz/knowledge-base-mcp-server. 导入的 MCP 服务器候选
概览
jeanibarz/knowledge-base-mcp-server 是从 https://github.com/jeanibarz/knowledge-base-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
将这个服务器指向一个包含 markdown notes 的文件夹,它就会通过意义来搜索,而不仅仅是通过关键词——无论是通过你的 AI 客户端,还是从你的 shell 中。
你把笔记当作普通文件保存在自己的磁盘上。服务器读取它们,将其拆分成块,然后将每个块转化为一个矢量,并用你选择的嵌入模型(本地的 Ollama 模型、OpenAI 或 HuggingFace),并将这些向量存储在本地的 FAISS 索引中。用本地嵌入模型和本地大型语言模型运行,笔记永远不会离开机器;指向托管的服务提供商,只有在那时它们才会穿越网络。两个前门位于该索引之上:
- 一个MCP服务器,任何模型上下文协议客户端——Claude Desktop、Codex CLI、Cursor、Continue、Cline——都可以调用它来搜索你的笔记,从中提问问题,并(可选地)写新的笔记。
- **
kb命令行工具**,用于终端或代理壳中的同一语料库,以及 MCP 表面未公开的操作命令:索引、诊断、评估和笔记整理。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Knowledge Base MCP Server
Point this server at a folder of markdown notes and it becomes searchable by meaning, not just by keyword — from your AI client, or from your shell.
You keep your notes as ordinary files on your own disk. The server reads them, splits them into chunks, turns each chunk into a vector with an embedding model of your choosing (a local Ollama model, OpenAI, or HuggingFace), and stores those vectors in a local FAISS index. Run it with a local embedding model and a local LLM and your notes never leave the machine; point it at a hosted provider and only then do they cross the network. Two front doors sit on top of that index:
- An MCP server that any Model Context Protocol client — Claude Desktop, Claude Code, Codex CLI, Cursor, Continue, Cline, VS Code, Windsurf, JetBrains (setup snippets) — can call to search your notes, ask questions answered from them, and (optionally) write new ones.
- A
kbcommand-line tool for the same corpus from a terminal or an agent’s shell, plus the operational commands the MCP surface doesn’t expose: indexing, diagnostics, evaluation, and note curation.
Throughout the docs, a knowledge base (or shelf) is one subdirectory of your notes root — work/, research/, personal/ — that you can search individually or together.
Demo
Real output, no mock data: the capture drives the kb CLI against a small knowledge base seeded from this repo’s own docs/, indexed with the default Ollama embedding model. Regenerate it with docs/assets/record-demo.sh.
Contents
| Section | Read it when |
|---|---|
| Install | Getting the server or the kb CLI onto your machine. |
| Configure | Choosing an embedding provider and laying out your notes. |
| Use the MCP server | Wiring an AI client to your knowledge bases. |
安装
npx -y @jeanibarz/knowledge-base-mcp-server@latest