MCP Catalogs
首页mcp-documentation-server screenshot

mcp-documentation-server

by andrea9293·313·综合分 52

TypeScript 实现的 MCP 服务器,使用 Orama 向量数据库和可选的 Gemini AI 集成,提供本地文档管理和语义搜索功能。

file-systemsearchai-llm
37
Forks
1
活跃 Issue
3 个月前
最近提交
2 天前
收录于

概述

MCP 文档服务器是一款用于本地文档管理的先进工具,具备高级搜索功能。它使用嵌入式的 Orama 向量数据库进行混合全文和向量相似性搜索,并通过智能父子分块技术保持上下文完整性。服务器包含内置的 Web 界面用于文档管理,并通过 Google Gemini 集成提供可选的 AI 驱动的搜索功能。所有数据都存储在本地的 ~/.mcp-documentation-server/ 目录中,无需外部依赖。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:管理和搜索技术文档和 API 参考
:创建公司内部文档的知识库
:具有语义搜索功能的个人文档组织
:服务器支持哪些文件格式?
:Web UI 是可选的吗?

什么时候选它

当您需要本地优先的文档管理和语义搜索功能,特别是处理不能存储在云服务中的敏感数据时,选择此服务器。

什么时候不要选它

如果您需要多用户认证或企业级功能如协作编辑,请避免使用此服务器,因为它主要针对单用户本地使用而设计。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • add_document

    Add a document (title, content, optional metadata)

  • list_documents

    List all documents with metadata and content preview

  • get_document

    Retrieve the full content of a document by ID

  • delete_document

    Remove a document, its chunks, database entries, and associated files

  • process_uploads

    Process all files in the uploads folder (chunking + embeddings)

  • get_uploads_path

    Returns the absolute path to the uploads folder

  • list_uploads_files

    Lists files in the uploads folder with size and format info

  • get_ui_url

    Returns the Web UI URL (e.g. http://localhost:3080)

  • search_documents

    Semantic vector search within a specific document

  • search_all_documents

    Hybrid (full-text + vector) cross-document search

  • get_context_window

    Returns a window of chunks around a given chunk index

  • search_documents_with_ai

    AI-powered search using Gemini (requires GEMINI_API_KEY)

可对比工具

semantic-search-mcpvector-mcpchroma-mcpembeddings-mcp

安装

安装

  1. 配置您的 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"
      }
    }
  }
}
  1. 安装包:
npm install -g @andrea9293/mcp-documentation-server

FAQ

服务器支持哪些文件格式?
服务器支持 .txt、.md 和 .pdf 文件的上传和处理。
Web UI 是可选的吗?
是的,您可以通过在环境配置中设置 START_WEB_UI=false 来禁用 Web UI。

mcp-documentation-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。