文档处理工具

@cablate/mcp-doc-forge
4 Stars 1.4k 次浏览 cablate 更新于 2026-08-23

提供全面的文档处理功能,包括读取、转换和操作各种文档格式,具有先进的文本和HTML处理能力。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "searxng": {
      "args": [
        "-y",
        "@cablate/mcp-doc-forge"
      ],
      "command": "npx",
      "enabled": true
    }
  }
}

可用工具 (16 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

document_reader 1 个参数 需填 1 项

Read content from non-image document-files at specified paths, supporting various file formats: .pdf, .docx, .txt, .html, .csv

必填参数:filePath

pdf_merger 2 个参数 需填 2 项

Merge multiple PDF files into one

必填参数:inputPaths、outputDir

pdf_splitter 3 个参数 需填 3 项

Split a PDF file into multiple files

必填参数:inputPath、outputDir、pageRanges

docx_to_pdf 2 个参数 需填 2 项

Convert DOCX files to PDF format

必填参数:inputPath、outputPath

docx_to_html 2 个参数 需填 2 项

Convert DOCX to HTML while preserving formatting

必填参数:inputPath、outputDir

html_cleaner 2 个参数 需填 2 项

Clean HTML by removing unnecessary tags and attributes

必填参数:inputPath、outputDir

html_to_text 2 个参数 需填 2 项

Convert HTML to plain text while preserving structure

必填参数:inputPath、outputDir

html_to_markdown 2 个参数 需填 2 项

Convert HTML to Markdown format

必填参数:inputPath、outputDir

html_extract_resources 2 个参数 需填 2 项

Extract all resources (images, videos, links) from HTML

必填参数:inputPath、outputDir

html_formatter 2 个参数 需填 2 项

Format and beautify HTML code

必填参数:inputPath、outputDir

text_diff 3 个参数 需填 3 项

Compare two text files and show differences

必填参数:file1Path、file2Path、outputDir

text_splitter 4 个参数 需填 4 项

Split text file by specified delimiter or line count

必填参数:inputPath、outputDir、splitBy、value

text_formatter 2 个参数 需填 2 项

Format text with proper indentation and line spacing

必填参数:inputPath、outputDir

text_encoding_converter 4 个参数 需填 4 项

Convert text between different encodings

必填参数:inputPath、outputDir、fromEncoding、toEncoding

excel_read 2 个参数 需填 1 项

Read Excel file and convert to JSON format while preserving structure

必填参数:inputPath

format_convert 3 个参数 需填 3 项

Convert between different document formats (Markdown, HTML, XML, JSON)

必填参数:input、fromFormat、toFormat

服务介绍

简单文档处理 MCP 服务器

smithery 徽章

一个强大的模型上下文协议(MCP)服务器,提供全面的文档处理能力。

功能

文档阅读器

  • 阅读 DOCX、PDF、TXT、HTML、CSV

文档转换

  • DOCX 转 HTML/PDF
  • HTML 转 TXT/Markdown
  • PDF 操作(合并、拆分)

文本处理

  • 多编码转换支持(UTF-8、Big5、GBK)
  • 文本格式化和清理
  • 文本比较和差异生成
  • 按行或分隔符分割文本

HTML 处理

  • HTML 清理和格式化
  • 资源提取(图片、链接、视频)
  • 保留结构的转换

安装

通过 Smithery 安装

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

npx -y @smithery/cli install @cablate/mcp-doc-forge --client claude

手动安装

npm install -g @cablate/mcp-doc-forge

使用方法

命令行界面

mcp-doc-forge

Dive Desktop 一起使用

  1. 在 Dive Desktop 中点击“+ 添加 MCP 服务器”
  2. 复制并粘贴此配置:
{
  "mcpServers": {
    "searxng": {
      "command": "npx",
      "args": [
        "-y",
        "@cablate/mcp-doc-forge"
      ],
      "enabled": true
    }
  }
}
  1. 点击“保存”以安装 MCP 服务器

许可证

MIT

贡献

欢迎社区参与和贡献!以下是贡献方式:

  • ⭐️ 如果你觉得项目有用,请给它加星标
  • 🐛 提交问题:报告问题或提供建议
  • 🔧 创建拉取请求:提交代码改进

联系方式

如果你有任何问题或建议,随时联系我们:

  • 📧 电子邮件: reahtuoo310109@gmail.com
  • 📧 GitHub: CabLate
  • 🤝 合作:欢迎讨论项目合作
  • 📚 技术指导:诚挚欢迎建议和技术指导

相关 MCP 服务