
mcp-documentation-server
by andrea9293·★ 313·综合分 52
TypeScript 实现的 MCP 服务器,使用 Orama 向量数据库和可选的 Gemini AI 集成,提供本地文档管理和语义搜索功能。
概述
MCP 文档服务器是一款用于本地文档管理的先进工具,具备高级搜索功能。它使用嵌入式的 Orama 向量数据库进行混合全文和向量相似性搜索,并通过智能父子分块技术保持上下文完整性。服务器包含内置的 Web 界面用于文档管理,并通过 Google Gemini 集成提供可选的 AI 驱动的搜索功能。所有数据都存储在本地的 ~/.mcp-documentation-server/ 目录中,无需外部依赖。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要本地优先的文档管理和语义搜索功能,特别是处理不能存储在云服务中的敏感数据时,选择此服务器。
什么时候不要选它
如果您需要多用户认证或企业级功能如协作编辑,请避免使用此服务器,因为它主要针对单用户本地使用而设计。
此 server 暴露的工具
从 README 抽取出 12 个工具add_documentAdd a document (title, content, optional metadata)
list_documentsList all documents with metadata and content preview
get_documentRetrieve the full content of a document by ID
delete_documentRemove a document, its chunks, database entries, and associated files
process_uploadsProcess all files in the uploads folder (chunking + embeddings)
get_uploads_pathReturns the absolute path to the uploads folder
list_uploads_filesLists files in the uploads folder with size and format info
get_ui_urlReturns the Web UI URL (e.g. http://localhost:3080)
search_documentsSemantic vector search within a specific document
search_all_documentsHybrid (full-text + vector) cross-document search
get_context_windowReturns a window of chunks around a given chunk index
search_documents_with_aiAI-powered search using Gemini (requires GEMINI_API_KEY)
可对比工具
安装
安装
- 配置您的 MCP 客户端(例如 Claude Desktop、VS Code):
{
"mcpServers": {
"documentation": {
"command": "npx",
"args": [
"-y",
"@andrea9293/mcp-documentation-server"
],
"env": {
"MCP_BASE_DIR": "/path/to/workspace",
"GEMINI_API_KEY": "your-api-key-here",
"MCP_EMBEDDING_MODEL": "Xenova/all-MiniLM-L6-v2",
"START_WEB_UI": "true",
"WEB_PORT": "3080"
}
}
}
}- 安装包:
npm install -g @andrea9293/mcp-documentation-serverFAQ
- 服务器支持哪些文件格式?
- 服务器支持 .txt、.md 和 .pdf 文件的上传和处理。
- Web UI 是可选的吗?
- 是的,您可以通过在环境配置中设置 START_WEB_UI=false 来禁用 Web UI。
mcp-documentation-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。