doc-processor-mcp

v1.0.3
doc-processor-mcp Checked 1 day ago Published 2 months ago

Model Context Protocol (MCP) server for document conversion (md_conver) and processing across Word, Excel, PowerPoint, PDF, HTML, and Images.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

md_conver

Convert Markdown (.md) to other formats (docx, pdf, html, xlsx, pptx), or convert any supported document into Markdown. Defaults output to current working directory (process.cwd()).

ParameterTypeDescription
inputPath *stringSource file path.
optionsobject
outputPathstringOptional destination path. Defaults to current directory if omitted.
targetFormatstringTarget format.

doc_inspect

Inspect structure, metadata, sheets, pages, and statistics of Word, Excel, PowerPoint, PDF, or Image files.

ParameterTypeDescription
filePath *stringPath to the document or image to inspect.

doc_img_process

Process image: resize, crop, rotate, flip, pad, adjust quality/filters, or convert format (jpeg/png/webp/avif). Outputs to current working directory by default.

ParameterTypeDescription
filePath *stringSource image path.
operationsobjectImage operations to apply.
outputPathstringOptional destination image path.

doc_img_overlay

Composite a watermark/logo image onto a base image.

ParameterTypeDescription
baseImagePath *stringBase image path.
watermarkPath *stringWatermark/logo image path.
optionsobject
outputPathstringOptional destination image path.

doc_img_to_pdf

Combine multiple images in sequence into a single PDF document in current working directory.

ParameterTypeDescription
imagePaths *arrayArray of image file paths.
outputPathstringOptional destination PDF path (defaults to current directory/images.pdf).

doc_word_patch_text

Smart text replacement in Word (.docx) documents preserving original fonts, styles, and XML formatting.

ParameterTypeDescription
filePath *stringPath to .docx file.
replacements *array
outputPathstring

doc_word_fill_template

Fill a Word (.docx) template using mustache variables with provided data object.

ParameterTypeDescription
data *object
outputPath *string
templatePath *string

doc_word_append

Append text paragraphs to the end of an existing Word (.docx) document.

ParameterTypeDescription
filePath *stringPath to .docx file.
paragraphs *arrayList of paragraph text strings.
outputPathstring

doc_excel_read

Read an Excel (.xlsx) worksheet as JSON array of objects or 2D matrix.

ParameterTypeDescription
filePath *string
rawboolean
sheetNamestring

doc_excel_write

Write JSON array or 2D array into a new Excel (.xlsx) file in current directory.

ParameterTypeDescription
data *array
outputPathstring
sheetNamestring

doc_excel_append_rows

Append multiple data rows into an existing Excel worksheet without rewriting the file.

ParameterTypeDescription
filePath *string
rows *array2D array of row values.
outputPathstring
sheetNamestring

doc_excel_manage_sheet

Delete or rename a worksheet inside an Excel (.xlsx) workbook.

ParameterTypeDescription
action *string
filePath *string
sheetName *string
newNamestring
outputPathstring

doc_excel_merge

Merge all sheets from multiple Excel workbooks into a single workbook in current working directory.

ParameterTypeDescription
inputPaths *array
outputPathstring

doc_pdf_watermark

Add text watermark diagonally across all pages of a PDF document.

ParameterTypeDescription
filePath *string
watermarkText *string
optionsobject
outputPathstring

doc_pdf_merge

Merge multiple PDF files in order into a single PDF in current working directory.

ParameterTypeDescription
inputPaths *array
outputPathstring

doc_pdf_split

Split a PDF into separate individual single-page PDF files.

ParameterTypeDescription
filePath *string
outputDirstring

doc_pdf_extract_pages

Extract specific page numbers (1-indexed) from a PDF into a new PDF document.

ParameterTypeDescription
filePath *string
pages *arrayArray of page numbers to extract (e.g. [1, 3, 5]).
outputPathstring

doc_pdf_rotate_pages

Rotate all or specified pages in a PDF document by 90, 180, or 270 degrees.

ParameterTypeDescription
filePath *string
anglenumber
outputPathstring
pagesarrayOptional list of pages to rotate. Rotates all if omitted.

doc_pdf_set_metadata

Update metadata (title, author, subject, keywords, creator) in a PDF file.

ParameterTypeDescription
filePath *string
metadata *object
outputPathstring

doc_pdf_to_images

Convert PDF pages into high-resolution images (PNG / JPG / JPEG). Supports scale/DPI setting and selective page ranges. Defaults output to `<filename>_images` directory.

ParameterTypeDescription
filePath *stringPath to the source PDF file.
formatstringOutput image format. Default is "png".
outputDirstringOptional directory path to store extracted images. Defaults to `<filename>_images` in current working directory.
pagesarrayOptional array of page numbers to export (1-indexed, e.g. [1, 2, 5]). If omitted, exports all pages.
passwordstringPassword for encrypted PDFs.
scalenumberImage resolution scale factor (e.g. 1.0 = ~72 DPI, 2.0 = ~144 DPI, 3.0 = ~216 DPI). Default is 2.0.

doc_pptx_create

Create a custom presentation (.pptx) with structured slides containing titles and bullet points.

ParameterTypeDescription
slides *array
optionsobject
outputPathstring

doc_pptx_replace_text

Search and replace text across all slides in a PowerPoint (.pptx) file.

ParameterTypeDescription
filePath *string
replaceText *string
searchText *string
outputPathstring

doc_pptx_extract_images

Extract all embedded image assets from a PowerPoint (.pptx) presentation into a directory.

ParameterTypeDescription
filePath *string
outputDirstring

doc_images_to_pptx

Convert multiple image files into a PowerPoint (.pptx) presentation in current working directory. Each image is placed on an individual slide.

ParameterTypeDescription
imagePaths *arrayArray of image file paths (PNG, JPG, WebP, etc.) in presentation order.
optionsobject
outputPathstringOptional destination .pptx path. Defaults to `images_presentation.pptx` in current working directory.