Skip to main content
Glama

open-docs-mcp

by askme765cs

open-docs-mcp MCP 服务器

提供文档管理功能的开源MCP实现。中文文档

特征

文档管理

  • 从各种来源抓取并索引文档
  • 支持多种文档格式
  • 全文搜索功能

MCP 服务器 API

  • 基于资源的文档访问
  • 基于工具的文档管理

可用工具

  1. enable_doc - 启用特定文档的抓取
  2. disable_doc - 禁用对特定文档的抓取
  3. crawl_docs - 开始抓取已启用的文档
  4. build_index - 为文档构建搜索索引
  5. search_docs - 搜索文档
  6. list_enabled_docs - 列出已启用的文档
  7. list_all_docs - 列出所有可用的文档

Cursor @Docs 兼容性

该项目旨在通过提供以下内容来复制 Cursor 的 @Docs 功能:

  1. 文档索引
    • 从各种来源抓取并索引文档
    • 支持多种文档格式(HTML、Markdown 等)
    • 自动重新索引以使文档保持最新
  2. 文档访问
    • 在所有索引文档中搜索
    • 与 MCP 协议集成以实现 AI 上下文
  3. 自定义文档管理
    • 通过enable_doc工具添加新的文档源
    • 通过list_enabled_docs工具管理已启用的文档
    • 使用crawl_docs工具强制重新抓取

建筑学

┌───────────────────────────────────────────────────────┐ │ open-docs-mcp Server │ ├───────────────────┬───────────────────┬───────────────┤ │ Crawler Module │ Search Engine │ MCP Server │ ├───────────────────┼───────────────────┼───────────────┤ │ - Web crawling │ - Full-text index │ - Resources │ │ - Doc conversion │ - Relevance score │ - Tools │ │ - Storage │ - Query parsing │ - Prompts │ └───────────────────┴───────────────────┴───────────────┘

用法

npx -y open-docs-mcp --docsDir ./docs

通过 Smithery 安装

要通过Smithery自动安装 Claude Desktop 的文档管理服务器:

npx -y @smithery/cli install @askme765cs/open-docs-mcp --client claude

配置

要与 Claude Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "open-docs-mcp": { "command": "npx", "args": [ "-y", "open-docs-mcp", "--docsDir", "/path/to/docs" ] } } }

配置选项:

  • command :Node.js 可执行文件
  • args :传递给脚本的参数数组
    • --docsDir :必需,指定文档目录路径
  • disabled :设置为 true 以暂时禁用服务器
  • alwaysAllow :无需确认即可使用的工具名称数组

发展

npm run watch # Auto-rebuild on changes npm run inspector # Debug with MCP Inspector

贡献

欢迎提交 Pull 请求。对于重大变更,请先提交一个 issue 来讨论您想要修改的内容。

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

一个提供文档管理功能的开源 MCP 实现。该项目旨在复制 Cursor 的 @Docs 功能。

  1. 特征
    1. 文档管理
    2. MCP 服务器 API
    3. 可用工具
    4. Cursor @Docs 兼容性
    5. 建筑学
  2. 用法
    1. 通过 Smithery 安装
    2. 配置
  3. 发展
    1. 贡献
      1. 执照

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          lark-tools-mcp connects Lark and cursor. It provides cursor with the ability to read documents, send messages, process tasks, and perform data analysis.
          Last updated -
          26
          JavaScript
          MIT License
        • -
          security
          A
          license
          -
          quality
          An open-source MCP server that provides applications like Cursor, Windsurf, and Claude with access to llms.txt documentation files, allowing users to control and audit context retrieval.
          Last updated -
          4
          Python
          MIT License
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          A tool that generates MCP servers for Smithery with Cursor IDE integration, allowing users to quickly create servers from templates such as Basic, Web Search, or Database interactions.
          Last updated -
          JavaScript
        • -
          security
          F
          license
          -
          quality
          An MCP server that enables generating scripts based on specified topics and keywords, while also providing functionality to store and summarize notes.
          Last updated -
          Python
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/askme765cs/open-docs-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server