Skip to main content
Glama

doc-ops-mcp

by Tele-AI

process_pdf_post_conversion

Finalize PDFs by moving them to target locations, adding watermarks and QR codes, and cleaning temporary files. Use after generating PDFs with playwright-mcp to complete post-processing.

Instructions

🔧 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

Input Schema

NameRequiredDescriptionDefault
addQrCodeNoWhether to add QR code (will be automatically added if QR_CODE_IMAGE environment variable is set)
addWatermarkNoWhether to add watermark (will be automatically added if WATERMARK_IMAGE environment variable is set)
customTextNoCustom text below QR codeScan QR code for more information
playwrightPdfPathYesPDF file path generated by playwright-mcp (usually in temporary directory)
qrCodePathNoQR code image path (overrides environment variable)
qrOpacityNoQR code opacity
qrPositionNoQR code positionbottom-center
qrScaleNoQR code scale ratio
targetPathNoTarget PDF file path (optional, will be auto-generated if not provided). If not absolute path, will be resolved relative to OUTPUT_DIR environment variable
watermarkImageNoWatermark image path (overrides environment variable)
watermarkImageOpacityNoWatermark image opacity
watermarkImagePositionNoWatermark image positionfullscreen
watermarkImageScaleNoWatermark image scale ratio
watermarkTextNoWatermark text content

Input Schema (JSON Schema)

{ "properties": { "addQrCode": { "default": false, "description": "Whether to add QR code (will be automatically added if QR_CODE_IMAGE environment variable is set)", "type": "boolean" }, "addWatermark": { "default": false, "description": "Whether to add watermark (will be automatically added if WATERMARK_IMAGE environment variable is set)", "type": "boolean" }, "customText": { "default": "Scan QR code for more information", "description": "Custom text below QR code", "type": "string" }, "playwrightPdfPath": { "description": "PDF file path generated by playwright-mcp (usually in temporary directory)", "type": "string" }, "qrCodePath": { "description": "QR code image path (overrides environment variable)", "type": "string" }, "qrOpacity": { "default": 1, "description": "QR code opacity", "type": "number" }, "qrPosition": { "default": "bottom-center", "description": "QR code position", "enum": [ "top-left", "top-right", "top-center", "bottom-left", "bottom-right", "bottom-center", "center" ], "type": "string" }, "qrScale": { "default": 0.15, "description": "QR code scale ratio", "type": "number" }, "targetPath": { "description": "Target PDF file path (optional, will be auto-generated if not provided). If not absolute path, will be resolved relative to OUTPUT_DIR environment variable", "type": "string" }, "watermarkImage": { "description": "Watermark image path (overrides environment variable)", "type": "string" }, "watermarkImageOpacity": { "default": 0.3, "description": "Watermark image opacity", "type": "number" }, "watermarkImagePosition": { "default": "fullscreen", "description": "Watermark image position", "enum": [ "top-left", "top-right", "bottom-left", "bottom-right", "center", "fullscreen" ], "type": "string" }, "watermarkImageScale": { "default": 0.25, "description": "Watermark image scale ratio", "type": "number" }, "watermarkText": { "description": "Watermark text content", "type": "string" } }, "required": [ "playwrightPdfPath" ], "type": "object" }

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/Tele-AI/doc-ops-mcp'

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