AM

alekspetrov/mcp-docs-service

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

58 stars 11 forks 质量 74 趋势 0MIT

MCP 文档管理服务——用于文档管理的模型上下文协议实现

概览

MCP 文档服务是一种用于文档管理的模型上下文协议(MCP)实现。它提供了一套用于读取、写入和管理带有前置元数据的 markdown 文档的工具。该服务设计为与 Claude in Cursor 或 Claude Desktop 等 AI 助手无缝协作,使通过自然语言互动轻松管理文档变得轻松。 - :轻松阅读和写入带有前置元数据的markdown文档 - :对带有不同预览的文档进行精确的行编辑 - :按内容或元数据查找文档 - :从文档中创建导航结构 - 分析文档质量,识别缺失的元数据或断开链接等问题 - 生成针对大型语言模型优化的整合单文档输出 - 与模型上下文协议无缝集成 - 完全支持标记文档中的YAML frontmatter - 支持标准标记文件 需要Node......

概述(AI 翻译)

怎么了?

MCP 文档服务是一种用于文档管理的模型上下文协议(MCP)实现。它提供了一套用于读取、写入和管理带有前置元数据的 markdown 文档的工具。该服务设计为与 Claude in Cursor 或 Claude Desktop 等 AI 助手无缝协作,使通过自然语言互动轻松管理文档变得轻松。

特色

  • 读写文档:轻松读写带有前置元数据的标记文档
  • 编辑文档:对带有差异预览的文档进行精确的行编辑
  • 列表与搜索:按内容或元数据查找文档
  • 导航生成:从文档中创建导航结构
  • 健康检查:分析文档质量,识别缺失的元数据或断裂链接等问题
  • LLM优化文档:生成针对大型语言模型优化的整合单文档输出
  • MCP 集成:与模型上下文协议无缝集成
  • Frontmatter 支持:在 markdown 文档中完全支持 YAML 前置件

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Documentation Service

What is it?

MCP Documentation Service is a Model Context Protocol (MCP) implementation for documentation management. It provides a set of tools for reading, writing, and managing markdown documentation with frontmatter metadata. The service is designed to work seamlessly with AI assistants like Claude in Cursor or Claude Desktop, making it easy to manage your documentation through natural language interactions.

Features

  • Read and Write Documents: Easily read and write markdown documents with frontmatter metadata
  • Edit Documents: Make precise line-based edits to documents with diff previews
  • List and Search: Find documents by content or metadata
  • Navigation Generation: Create navigation structures from your documentation
  • Health Checks: Analyze documentation quality and identify issues like missing metadata or broken links
  • LLM-Optimized Documentation: Generate consolidated single-document output optimized for large language models
  • MCP Integration: Seamless integration with the Model Context Protocol
  • Frontmatter Support: Full support for YAML frontmatter in markdown documents
  • Markdown Compatibility: Works with standard markdown files

Quick Start

Installation

Requires Node to be installed on your machine.

npm install -g mcp-docs-service

Or use directly with npx:

npx mcp-docs-service /path/to/docs

Cursor Integration

To use with Cursor, create a .cursor/mcp.json file in your project root:

{
  "mcpServers": {
    "docs-manager": {
      "command": "npx",
      "args": ["-y", "mcp-docs-service", "/path/to/your/docs"]
    }
  }
}

Claude Desktop Integration

To use MCP Docs Service with Claude Desktop:

  1. Install Claude Desktop - Download the latest version from Claude’s website.

  2. Configure Claude Desktop for MCP:

    • Open Claude Desktop
    • Click on the Claude menu and select “Developer Settings”
    • This will create a configuration file at:
      • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
      • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. Edit the configuration file to add the MCP Docs Service:

{
  "mcpServers": {
    "docs-manager": {
      "command": "npx",
      "args": ["-y", "mcp-docs-service", "/path/to/your/docs"]
      "env": {
        "MCP_NPX_WRAPPER": true
      }
    }
  }
}

Make sure to replace /path/to/your/docs with the absolute path to your documentation directory.

  1. Restart Claude Desktop completely.
在 GitHub 查看完整 README

安装

npx -y mcp-docs-service /path/to/your/docs
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "docs-manager": { "command": "npx", "args": ["-y", "mcp-docs-service", "/path/to/your/docs"] } } }