Document Operations MCP Server 标志

Document Operations MCP Server

组织
Tele-AI

MCP server for seamless document format conversion and processing

发布者Tele-AI
代码仓库doc-ops-mcp
语言TypeScript
复刻数
3
星标数
140
可用工具
13
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Document Operations MCP Server 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 13 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 140 个星标和 3 个复刻。

Document Operations MCP Server

npm version License: MIT Downloads

Language / 语言: English | 中文

Document Operations MCP Server - A universal MCP server for document processing, conversion, and automation. Handle PDF, DOCX, HTML, Markdown, and more through a unified API and toolset.

Demo

Video

https://github.com/user-attachments/assets/43dfeeec-8097-413e-8519-a7de98e31136

In this demo, we showcase how to:

  • Configure doc-ops-mcp in MCP clients
  • Convert DOCX documents to PDF format
  • Add default watermarks to converted PDF files

Table of Contents

  1. Quick Start
  2. System Architecture
  3. Optional Integration
  4. Features
  5. Open Source Licenses
  6. Future Roadmap
  7. Docker Deployment
  8. Development Guide
  9. Troubleshooting
  10. Contributing

1. Quick Start

First, add the Document Operations MCP server to your MCP client.

Standard config works in most MCP clients:

json
{
  "mcpServers": {
    "doc-ops-mcp": {
      "command": "npx",
      "args": ["-y", "doc-ops-mcp"],
      "env": {
        "OUTPUT_DIR": "/path/to/your/output/directory",
        "CACHE_DIR": "/path/to/your/cache/directory",
      }
    }
  }
}

Follow the MCP install guide, use the standard config above.

Follow the MCP install guide, use the standard config above.

Go to Cursor Settings -> MCP -> Add new MCP Server. Name to your liking, use command type with the command npx -y doc-ops-mcp.

For other MCP clients, use the standard config above and refer to your client's documentation for MCP server installation.

Configuration

The Document Operations MCP server supports configuration through environment variables. These can be provided in the MCP client configuration as part of the "env" object:

json
{
  "mcpServers": {
    "doc-ops-mcp": {
      "command": "npx",
      "args": ["-y", "doc-ops-mcp"],
      "env": {
        "OUTPUT_DIR": "/path/to/your/output/directory",
        "CACHE_DIR": "/path/to/your/cache/directory",
        "WATERMARK_IMAGE": "/path/to/watermark.png",
        "QR_CODE_IMAGE": "/path/to/qrcode.png"
      }
    }
  }
}

Supported Document Operations

FormatConvert to PDFConvert to DOCXConvert to HTMLConvert to MarkdownContent RewritingWatermark/QR Code
PDF✅❌❌❌❌✅
DOCX✅✅✅✅✅❌
HTML✅❌✅✅✅❌
Markdown✅✅✅✅✅❌

Rewriting Features:

  • Content Replacement: Support batch text replacement and regular expression replacement
  • Format Adjustment: Modify document structure, heading levels, and style formatting
  • Smart Rewriting: Content optimization while preserving original document format

Usage Examples

Format Conversion:

Convert /Users/docs/report.docx to PDF
Convert /Users/docs/article.md to HTML
Convert /Users/docs/presentation.html to DOCX
Convert /Users/docs/readme.md to PDF (with theme styling)

Document Rewriting:

Rewrite company names in /Users/docs/contract.md
Batch replace terminology in /Users/docs/manual.docx
Adjust heading levels in /Users/docs/article.html
Update dates and version numbers in /Users/docs/policy.md

PDF Enhancement:

Add watermark to /Users/docs/document.pdf
Add QR code to /Users/docs/report.pdf
Add company logo watermark to /Users/docs/invoice.pdf

Environment Variables

The server supports environment variables for controlling output paths and PDF enhancement features:

Core Directories

  • OUTPUT_DIR: Controls where all generated files are saved (default: ~/Documents)
  • CACHE_DIR: Directory for temporary and cache files (default: ~/.cache/doc-ops-mcp)

PDF Enhancement Features

  • WATERMARK_IMAGE: Default watermark image path for PDF files
    • Automatically added to all PDF conversions
    • Supported formats: PNG, JPG
    • If not set, default text watermark "doc-ops-mcp" will be used
  • QR_CODE_IMAGE: Default QR code image path for PDF files
    • Added to PDFs only when explicitly requested (addQrCode=true)
    • Supported formats: PNG, JPG
    • If not set, QR code functionality will be unavailable

Output Path Rules:

  1. If outputPath is not provided → files saved to OUTPUT_DIR with auto-generated names
  2. If outputPath is relative → resolved relative to OUTPUT_DIR
  3. If outputPath is absolute → used as-is, ignoring OUTPUT_DIR

See OUTPUT_PATH_CONTROL.md for detailed documentation.

2. System Architecture

Document Operations MCP Server adopts a pure JavaScript architecture design, providing complete document processing capabilities:

┌─────────────────────────────────────────────────────────────┐
│                    MCP Client Layer                         │
│           (Claude Desktop, Cursor, VS Code, etc.)           │
└─────────────────────┬───────────────────────────────────────┘
                      │ JSON-RPC 2.0
┌─────────────────────┴───────────────────────────────────────┐
│                 Doc-Ops-MCP Server                         │
│  ┌─────────────────┐  ┌─────────────────┐  ┌─────────────┐ │
│  │   Tool Router   │  │  Request        │  │  Response   │ │
│  │   & Handler     │  │  Validator      │  │  Formatter  │ │
│  └────────┬────────┘  └────────┬────────┘  └──────┬──────┘ │
│           │                    │                  │        │
│  ┌────────┴────────────────────┴──────────────────┴─────┐ │
│  │                Document Processing Engine             │ │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐   │ │
│  │  │  Document   │  │   Format    │  │   Style     │   │ │
│  │  │   Reader    │  │  Converter  │  │  Processor  │   │ │
│  │  └─────────────┘  └─────────────┘  └─────────────┘   │ │
│  │                                                        │ │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐   │ │
│  │  │    PDF      │  │  Watermark/ │  │ Conversion  │   │ │
│  │  │ Enhancement │  │   QR Code   │  │  Planner    │   │ │
│  │  └─────────────┘  └─────────────┘  └─────────────┘   │ │
└────┴───────────────────────────────────────────────────────┴─┘
                            │
┌───────────────────────────┴─────────────────────────────────┐
│                    Core Dependencies Layer                  │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐          │
│  │   pdf-lib   │  │word-extractor│  │   marked    │          │
│  │ (PDF Tools) │  │(DOCX Reader)│  │ (Markdown)  │          │
│  └─────────────┘  └─────────────┘  └─────────────┘          │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐          │
│  │   cheerio   │  │    jszip    │  │    docx     │          │
│  │(HTML Parser)│  │(ZIP Handler)│  │(DOCX Gen.)  │          │
│  └─────────────┘  └─────────────┘  └─────────────┘          │
│  ┌─────────────┐  ┌─────────────┐                           │
│  │   xml2js    │  │Custom OOXML │                           │
│  │(XML Parser) │  │   Parser    │                           │
│  └─────────────┘  └─────────────┘                           │
└─────────────────────────────────────────────────────────────┘

Architecture Overview

Core Features:

  • Pure JavaScript implementation with no external system dependencies
  • Complete document reading, conversion, and style processing capabilities
  • Built-in PDF watermark and QR code addition functionality
  • Intelligent conversion planning and path optimization

Conversion Flow:

  • Direct Conversion: Supports direct conversion between most formats
  • Multi-step Conversion: Complex conversions achieved through intermediate formats
  • Style Preservation: Uses OOXML parser to ensure complete style integrity

3. Optional Integration

This server can work with playwright-mcp for enhanced PDF conversion capabilities. Please refer to the official playwright-mcp documentation for detailed configuration.

🔧 PDF Conversion Workflow

This server supports complete PDF conversion functionality:

  1. Document Parsing: Use OOXML parser to ensure complete style preservation
  2. Format Conversion: Convert documents to high-quality HTML format
  3. PDF Generation: Built-in converter or optionally work with playwright-mcp
  4. Enhancement Processing: Automatically add watermarks and QR codes (if configured)

How It Works

This server uses intelligent conversion architecture:

  1. Smart Planning: plan_conversion analyzes conversion requirements and selects optimal paths
  2. Format Conversion: Use specialized converters to handle various document formats
  3. Style Preservation: Ensure style integrity through OOXML parser
  4. Enhancement Processing: Automatically add watermarks, QR codes and other enhancements
  5. Optional Integration: Support working with playwright-mcp for enhanced capabilities

4. Features

MCP Tools

Core Document Tools

Tool NameDescriptionInput ParametersExternal Dependencies
read_documentRead document contentfilePath: Document pathextractMetadata: Extract metadatapreserveFormatting: Preserve formattingNone
write_documentWrite document contentcontent: Document contentoutputPath: Output file pathencoding: File encodingNone
convert_documentSmart document conversioninputPath: Input file pathoutputPath: Output file pathpreserveFormatting: Preserve formattingNone
plan_conversionConversion plannersourceFormat: Source formattargetFormat: Target formatpreserveStyles: Preserve stylesquality: Conversion qualityNone
read_document

Read various document formats including PDF, DOCX, DOC, HTML, MD, and more.

Parameters:

  • filePath (string, required) - Document path to read
  • extractMetadata (boolean, optional) - Extract document metadata, defaults to false
  • preserveFormatting (boolean, optional) - Preserve formatting (HTML output), defaults to false
write_document

Write content to document files in specified formats.

Parameters:

  • content (string, required) - Content to write
  • outputPath (string, optional) - Output file path (auto-generated if not provided)
  • encoding (string, optional) - File encoding, defaults to utf-8
convert_document

Convert documents between formats with enhanced style preservation.

Parameters:

  • inputPath (string, required) - Input file path
  • outputPath (string, optional) - Output file path (auto-generated if not provided)
  • preserveFormatting (boolean, optional) - Preserve formatting, defaults to true
  • useInternalPlaywright (boolean, optional) - Use built-in Playwright for PDF conversion, defaults to false
convert_docx_to_pdf

Convert DOCX to PDF with automatic watermark addition (if configured).

Parameters:

  • docxPath (string, required) - DOCX file path
  • outputPath (string, optional) - Output PDF path (auto-generated if not provided)
  • addQrCode (boolean, optional) - Whether to add QR code, defaults to false
  • preserveFormatting (boolean, optional) - Preserve original formatting, defaults to true
  • chineseFont (string, optional) - Chinese font, defaults to Microsoft YaHei
convert_markdown_to_pdf

Convert Markdown to PDF with automatic watermark addition (if configured).

Parameters:

  • markdownPath (string, required) - Markdown file path
  • outputPath (string, optional) - Output PDF path (auto-generated if not provided)
  • theme (string, optional) - Theme style, defaults to "github"
  • includeTableOfContents (boolean, optional) - Include table of contents, defaults to false
  • addQrCode (boolean, optional) - Whether to add QR code, defaults to false
convert_markdown_to_html

Convert Markdown to HTML.

Parameters:

  • markdownPath (string, required) - Markdown file path
  • outputPath (string, optional) - Output HTML path (auto-generated if not provided)
  • theme (string, optional) - Theme style, defaults to "github"
  • includeTableOfContents (boolean, optional) - Include table of contents, defaults to false
convert_markdown_to_docx

Convert Markdown to DOCX.

Parameters:

  • markdownPath (string, required) - Markdown file path
  • outputPath (string, optional) - Output DOCX path (auto-generated if not provided)
convert_html_to_markdown

Convert HTML to Markdown.

Parameters:

  • htmlPath (string, required) - HTML file path
  • outputPath (string, optional) - Output Markdown path (auto-generated if not provided)
plan_conversion

🎯 Smart Conversion Planner - Analyze conversion requirements and generate optimal conversion plans.

Parameters:

  • sourceFormat (string, required) - Source file format (pdf, docx, html, markdown, md, txt, doc)
  • targetFormat (string, required) - Target file format (pdf, docx, html, markdown, md, txt, doc)
  • sourceFile (string, optional) - Source file path (for generating specific conversion parameters)
  • preserveStyles (boolean, optional) - Whether to preserve style formatting, defaults to true
  • includeImages (boolean, optional) - Whether to include images, defaults to true
  • theme (string, optional) - Conversion theme, defaults to github
  • quality (string, optional) - Conversion quality requirement (fast, balanced, high), defaults to balanced
process_pdf_post_conversion

Parameters:

  • playwrightPdfPath (string, required) - Generated PDF file path
  • targetPath (string, optional) - Target PDF file path (auto-generated if not provided)
  • addWatermark (boolean, optional) - Whether to add watermark, defaults to false
  • addQrCode (boolean, optional) - Whether to add QR code, defaults to false
  • watermarkImage (string, optional) - Watermark image path
  • qrCodePath (string, optional) - QR code image path

PDF Enhancement Tools

add_watermark

🎨 PDF Watermark Addition Tool - Add image or text watermarks to PDF documents.

Parameters:

  • pdfPath (string, required) - PDF file path
  • watermarkImage (string, optional) - Watermark image path (PNG/JPG)
  • watermarkText (string, optional) - Watermark text content
  • watermarkImageScale (number, optional) - Image scale ratio, defaults to 0.25
  • watermarkImageOpacity (number, optional) - Image opacity, defaults to 0.6
  • watermarkImagePosition (string, optional) - Image position, defaults to fullscreen
add_qrcode

📱 PDF QR Code Addition Tool - Add QR codes to PDF documents.

Parameters:

  • pdfPath (string, required) - PDF file path
  • qrCodePath (string, optional) - QR code image path
  • qrScale (number, optional) - QR code scale ratio, defaults to 0.15
  • qrOpacity (number, optional) - QR code opacity, defaults to 1.0
  • qrPosition (string, optional) - QR code position, defaults to bottom-center
  • addText (boolean, optional) - Whether to add explanatory text, defaults to true

System Requirements

System Requirements

  • Node.js ≥ 18.0.0
  • Zero external system dependencies - All processing via npm packages
  • Optional Integration: playwright-mcp for enhanced PDF conversion

Core Technology Stack

  • pdf-lib - PDF operations and enhancement
  • word-extractor - DOCX document text extraction
  • marked - Markdown parsing and rendering
  • cheerio - HTML parsing and manipulation
  • docx - DOCX document generation
  • jszip - ZIP file processing
  • xml2js - XML parsing and conversion
  • Custom OOXML Parser - Advanced DOCX style preservation

Installation

bash
# Global installation
npm install -g doc-ops-mcp

# Or using pnpm
pnpm add -g doc-ops-mcp

# Or using bun
bun add -g doc-ops-mcp

Architecture Components

  • MCP Server Core: Handles JSON-RPC 2.0 communication and tool registration
  • Smart Router: Routes requests to optimal processing modules
  • Conversion Engine: Contains specialized converters for different document types
  • Style Processor: Ensures style preservation during format conversion
  • Security Module: Provides path validation and content security handling

5. Open Source Licenses

Project License

  • This Project: MIT License
  • Compatibility: Available for commercial and non-commercial use

Third-Party Dependencies

LibraryVersionLicensePurpose
pdf-lib^1.17.1MITPDF document manipulation
word-extractor^1.0.4MITDOCX document text extraction
marked^15.0.12MITMarkdown parsing and rendering
cheerio^1.0.0-rc.12MITHTML parsing and manipulation
docx^9.5.1Apache-2.0DOCX document generation
jszip^3.10.1MITZIP file processing
xml2js^0.6.2MITXML parsing and conversion

License Compatibility

  • ✅ Commercial Use: All dependencies support commercial use
  • ✅ Distribution: Free to distribute and modify
  • ✅ Patent Protection: Apache-2.0 provides patent protection
  • ⚠️ Notice: Original license notices must be retained

6. Future Roadmap

Core Features

  • 🔄 Enhanced Conversion Quality: Improve style preservation for complex documents
  • 📊 Excel Support: Complete Excel read/write and conversion functionality
  • 🎨 Template System: Support for custom document templates
  • 🔍 OCR Integration: Image text recognition capabilities

System Improvements

  • 🌐 Multi-language Support: Internationalization and localization
  • 🔐 Security Enhancements: Document encryption and access control
  • ⚡ Performance Optimization: Large file handling and memory optimization
  • 🔌 Plugin System: Extensible processor architecture

Version Roadmap

  • v2.0: Complete Excel support and template system
  • v3.0: OCR integration and multi-language support
  • v4.0: Advanced security features and plugin system

7. Docker Deployment

Quick Start

Using Pre-built Image

bash
# Pull the latest image
docker pull docops/doc-ops-mcp:latest

# Run with default configuration
docker run -d \
  --name doc-ops-mcp \
  -p 3000:3000 \
  docops/doc-ops-mcp:latest

Building from Source

bash
# Clone the repository
git clone https://github.com/JefferyMunoz/doc-ops-mcp.git
cd doc-ops-mcp

# Build the Docker image
docker build -t doc-ops-mcp .

# Run the container
docker run -d \
  --name doc-ops-mcp \
  -p 3000:3000 \
  -v $(pwd)/documents:/app/documents \
  doc-ops-mcp

Docker Compose Deployment

Create a docker-compose.yml file:

yaml
version: '3.8'

services:
  doc-ops-mcp:
    image: docops/doc-ops-mcp:latest
    container_name: doc-ops-mcp
    ports:
      - "3000:3000"
    volumes:
      - ./documents:/app/documents
      - ./config:/app/config
    environment:
      - NODE_ENV=production
      - PORT=3000
    restart: unless-stopped
    
  # Optional: Add Nginx for reverse proxy
  nginx:
    image: nginx:alpine
    container_name: doc-ops-nginx
    ports:
      - "80:80"
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    depends_on:
      - doc-ops-mcp
    restart: unless-stopped

Environment Variables

VariableDescriptionDefault
PORTServer port3000
NODE_ENVEnvironment modeproduction
LOG_LEVELLogging levelinfo
MAX_FILE_SIZEMaximum file size (MB)50

Volume Mounts

Mount local directories for persistent storage:

bash
# Documents directory for file processing
docker run -d \
  --name doc-ops-mcp \
  -p 3000:3000 \
  -v $(pwd)/documents:/app/documents \
  -v $(pwd)/output:/app/output \
  doc-ops-mcp

Docker Configuration Examples

Production Deployment

bash
# Production setup with Docker Swarm
docker swarm init
docker stack deploy -c docker-compose.yml doc-ops

# Scale the service
docker service scale doc-ops_mcp=3

Health Checks

The container includes built-in health checks:

bash
# Check container health
docker ps

# View health check logs
docker inspect --format='{{.State.Health.Status}}' doc-ops-mcp

# Manual health check
docker exec doc-ops-mcp curl -f http://localhost:3000/health || exit 1

8. Development Guide

Local Development

bash
# Clone the repository
git clone https://github.com/your-org/doc-ops-mcp.git
cd doc-ops-mcp

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build the project
npm run build

# Run tests
npm test

Project Structure

src/
├── index.ts          # MCP server entry point
├── tools/            # Tool implementations
│   ├── documentConverter.ts
│   ├── pdfTools.ts
│   └── ...
├── types/            # Type definitions
└── utils/            # Utility functions

Adding New Tools

  1. Create a new tool file in src/tools/
  2. Implement the tool logic
  3. Register the tool in src/index.ts
  4. Add test cases
  5. Update documentation

9. Troubleshooting

Common Issues

  1. Port conflicts: Change the host port in docker-compose.yml
  2. Permission issues: Ensure volume mounts have correct permissions
  3. Memory issues: Increase Docker memory allocation

Debug Mode

bash
# Run with debug logging
docker run -d \
  --name doc-ops-mcp \
  -p 3000:3000 \
  -e LOG_LEVEL=debug \
  doc-ops-mcp

# View logs
docker logs -f doc-ops-mcp

10. Contributing

How to Contribute

  1. Fork the Project
  2. Create a Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit Your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Intellectual Property License

By submitting a Pull Request, you agree that all contributions submitted through Pull Requests will be licensed under the MIT License. This means:

  • You grant the project maintainers and users the right to use, modify, and distribute your contributions under the MIT License
  • You confirm that you have the right to make these contributions
  • You understand that your contributions will become part of the open source project
  • You waive any claims to exclusive ownership of the contributed code

If you cannot agree to these terms, please do not submit a Pull Request.

Code Standards

  • Use TypeScript
  • Follow ESLint configuration
  • Add appropriate tests
  • Update relevant documentation

Reporting Issues

  • Use GitHub Issues
  • Provide detailed error information and reproduction steps
  • Include system environment information

License

This project is licensed under the MIT License - see the LICENSE file for details.

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "tele-ai-doc-ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "doc-ops-mcp"
      ]
    }
  }
}

可用工具

  • read_document

    Read various document formats (DOCX, DOC, TXT, MD, HTML, etc.)

  • write_document

    Write content to document files in specified formats. Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names based on content type (HTML, Markdown, or plain text). Supports intelligent format detection.

  • convert_document

    Convert documents between formats with enhanced style preservation. Output directory is controlled by OUTPUT_DIR environment variable. All output files will be automatically saved to the directory specified by OUTPUT_DIR with auto-generated names. ⚠️ IMPORTANT: For Markdown to HTML conversion with style preservation, use 'convert_markdown_to_html' tool instead for better results with themes and styling. For creating Word documents from content, use 'create_word_document' tool to avoid conversion loops.

  • add_watermark

    Add watermarks to PDF documents. Supports both text and image watermarks. Priority: user text > user image > environment variable image > default text "doc-ops-mcp"

  • add_qrcode

    Add QR code to PDF documents with friendly text below. QR code must be an image file (PNG/JPG). Priority: user provided path > environment variable QR_CODE_IMAGE

  • convert_docx_to_pdf

    Enhanced DOCX to PDF conversion with perfect Word style replication and Playwright integration. Watermark can be added by setting addWatermark=true (uses WATERMARK_IMAGE environment variable or default text "doc-ops-mcp"). QR code can be added by setting addQrCode=true (requires QR_CODE_IMAGE environment variable). Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names.

  • convert_markdown_to_html

    Enhanced Markdown to HTML conversion with beautiful styling and theme support. Supports GitHub, Academic, Modern, and Default themes with complete style preservation. Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names.

  • convert_markdown_to_docx

    Enhanced Markdown to DOCX conversion with professional styling and theme support. Preserves formatting, supports tables, lists, headings, and inline formatting with beautiful Word document output. Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names.

  • convert_markdown_to_pdf

    Enhanced Markdown to PDF conversion with beautiful styling and theme support. Watermark can be added by setting addWatermark=true (uses WATERMARK_IMAGE environment variable or default text "doc-ops-mcp"). QR code can be added by setting addQrCode=true (requires QR_CODE_IMAGE environment variable). Requires playwright-mcp for final PDF generation. Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names.

  • convert_html_to_markdown

    Enhanced HTML to Markdown conversion with style preservation. Converts HTML files to clean Markdown format while preserving structure, links, images, tables, and formatting. Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names.

  • create_word_document

    Create a Word document directly from content with beautiful formatting. This tool is specifically designed for creating Word documents from scratch, avoiding conversion loops. Supports HTML content with automatic styling and formatting. Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names.

  • plan_conversion

    🎯 MANDATORY FIRST STEP - Smart Document Conversion Planner - ⚠️ CRITICAL: This tool MUST be executed BEFORE any document conversion operation! When users request any format conversion (e.g., 'convert MD to PDF', 'DOCX to HTML'), you MUST call this tool first to get the optimal conversion plan, then follow the plan's steps exactly. This ensures proper conversion workflow and handles complex multi-step conversions. For PDF conversions, note that playwright-mcp integration is required for final PDF generation, followed by process_pdf_post_conversion for watermarks/QR codes. Supports all format conversion path planning.

  • process_pdf_post_conversion

    🔧 PDF Post-Processing Unified Tool - ⚠️ IMPORTANT: This is a necessary follow-up step for playwright-mcp's browser_pdf_save command! After using playwright-mcp to generate PDF, this tool must be called immediately to complete final processing. Features include: 1) Automatically move PDF from playwright temporary path to target location 2) Uniformly add watermarks and QR codes 3) Clean up temporary files. Workflow: playwright-mcp:browser_pdf_save → doc-ops-mcp:process_pdf_post_conversion

将 Document Operations MCP Server MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Document Operations MCP Server 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Document Operations MCP Server 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Document Operations MCP Server MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "tele-ai-doc-ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "doc-ops-mcp"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Document Operations MCP Server MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Document Operations MCP Server MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Document Operations MCP Server 帮我完成这项任务吗?
Document Operations MCP Server
当然,我看过了。
以下是我使用 Document Operations MCP Server 得到的结果。

常见问题

Document Operations MCP Server MCP 服务器有什么用途?

Document Operations MCP Server 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Document Operations MCP Server MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Document Operations MCP Server。

为什么在 TypingMind 中使用 Document Operations MCP Server MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Document Operations MCP Server 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Document Operations MCP Server MCP 连接到 TypingMind?

Document Operations MCP Server 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Document Operations MCP Server MCP 在 TypingMind 中提供哪些工具?

Document Operations MCP Server 提供 13 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Document Operations MCP Server MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Document Operations MCP Server 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇