office-worker-mcp

v0.9.8
office-worker-mcp Checked 18 hours ago Published 2 months ago

The Office Worker — your agent's document clerk: Word, Excel, PowerPoint & PDF with real design (templates + themes + PDF input).

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

render_document

Generates professional PDF document (invoice, report, executive summary, letter, balance statement) from Jinja HTML template, corporate theme, data, and design options (watermark, header logo, footers, page numbers, encryption, design_mode='standard'|'premium'). Returns JSON with status, absolute file path, and byte size. When to use: Use when creating polished, high-fidelity PDFs from structured data and HTML/CSS templates. When NOT to use: Do NOT use for editing existing PDF/Office files (use edit_word/edit_excel/pdf_manipulate) or when pure Office formats (.docx, .xlsx, .pptx) are required.…

ParameterTypeDescription
out_path *string
template_html *string
data_jsonstring
design_modestring
footer_leftstring
footer_rightstring
logostring
page_numbersboolean
passwordstring
themestring
watermark_textstring

create_word

Creates professional Word .docx document (minutes, letter, contract, report, audit checklist) from declarative blocks or packaged templates (acta_meeting, informe_ejecutivo, factura_simple, carta_formal, checklist_auditoria). Returns JSON with status, absolute file path, and byte size. When to use: Use to generate new .docx documents with consistent corporate theme or standard templates with {{ variables }}. When NOT to use: Do NOT use to modify existing .docx files in place (use edit_word instead) or to produce PDFs directly (use render_document or convert_to_pdf). Keywords: minutes, letter,…

ParameterTypeDescription
out_path *string
blocks_jsonstring
contextobject
subtitlestring
template_docxstring
themestring
titlestring

mail_merge

Generates N .docx documents from docxtpl template with {{placeholders}} fed by CSV or JSON dataset. Returns JSON with status, n_docs, and paths. When to use: Use for personalized contracts, letters, or reports in bulk. When NOT to use: Do NOT use for single documents (use create_word). Keywords: mail merge, template, dataset, bulk, csv, json, local, safe.

ParameterTypeDescription
template_path *string
dataset_csvstring
dataset_jsonstring
fieldsarray
output_prefixstring

create_excel

Creates professional multi-sheet Excel .xlsx workbook (balance statement, financial report, audit checklist) with corporate styling, optional structured tables, auto-filters, formulas, and native charts (bar, line, pie). Returns JSON with status, absolute file path, and byte size. When to use: Use to generate new spreadsheets with tables, headers, zebra-striping, and charts. When NOT to use: Do NOT use to modify existing workbooks in place (use edit_excel instead) or for VBA macros (openpyxl does not run macros). Keywords: balance statement, report, audit, checklist, chart, formulas, local, pr…

ParameterTypeDescription
out_path *string
auto_filterboolean
sheets_jsonstring
table_stylestring
themestring
titlestring

create_pptx

Creates editable PowerPoint .pptx presentation (deck, executive summary, status report) with corporate theme and optional native charts (bar, line, pie). Returns JSON with status, absolute file path, and byte size. When to use: Use to generate editable PowerPoint slides with typography, kickers, bullets, tables, and native charts. When NOT to use: Do NOT use for PDFs (use render_document). Keywords: executive summary, report, deck, presentation, chart, local, private, safe.

ParameterTypeDescription
out_path *string
slides_jsonstring
themestring

read_pdf

Reads PDF text, metadata, tables (extract_tables=True), interactive AcroForm fields (list_forms=True), and embedded images as base64 data URLs (extract_images=True, max_images=10) for agent vision. All-in-one PDF inspection tool. Returns JSON with text, metadata, tables, form fields, and base64 images. When to use: Use as primary tool to inspect and analyze any PDF document. When NOT to use: Do NOT use for scanned image PDFs without digital text (use pdf_ocr). Keywords: read, text, table, form, images, vision, local, safe.

ParameterTypeDescription
path *string
extract_imagesboolean
extract_tablesboolean
list_formsboolean
max_imagesinteger
max_pagesinteger

pdf_preview

Renders PDF pages to PNG images via PyMuPDF (fitz) returning base64 data URLs for agent vision inspection before final delivery, with optional file saving. Returns JSON with status, data_url, rendered pages, dimensions, and optional output path. When to use: Use when the agent needs to visually inspect or verify a generated PDF layout, signature, or stamp before delivering it to the user. When NOT to use: Do NOT use for text extraction (use read_pdf) or scanned OCR (use pdf_ocr). Keywords: preview, png, image, vision, inspect, review, render, base64, local, safe.

ParameterTypeDescription
input_path *string
dpiinteger
max_pagesinteger
outputstring

list_themes

Returns corporate color palette and typography configuration for consistent document styling (aden, claro, oscuro, minimal, corporate-blue). Returns JSON with theme details. When to use: Use to inspect active color codes and font settings before creating documents. When NOT to use: Do NOT use to create documents directly. Keywords: theme, style, colors, report, local, private, offline.

ParameterTypeDescription
theme_name_or_pathstring

pdf_fill_form

Fills interactive AcroForm form fields in a PDF (contract, tax form, registration) with key-value data. Returns JSON with status, filled file path, and byte size. When to use: Use to fill standardized PDF forms deterministically. When NOT to use: Do NOT use for flat or scanned PDFs without AcroForm fields (use render_document or pdf_ocr). Keywords: fill form, contract, report, audit, local, private, no api key, offline, cross-platform, deterministic, safe.

ParameterTypeDescription
input_pdf *string
output *string
fieldsobject

pdf_ocr

Performs optical character recognition (OCR) on scanned documents (invoice, receipt, minutes, audit checklist) or images using Tesseract, returning extracted text and optionally generating a searchable PDF. Returns JSON with text and output path. When to use: Use on scanned documents lacking digital text layers. When NOT to use: Do NOT use on digital PDFs with existing selectable text (use read_pdf instead). Keywords: ocr, scan, invoice, minutes, receipt, audit, convert, local, private, no api key, offline, cross-platform, deterministic, safe.

ParameterTypeDescription
input_path *string
langstring
max_pagesinteger
outputstring

convert_to_pdf

Converts Office documents (.docx, .xlsx, .pptx: contract, report, letter, balance statement) to PDF locally using headless LibreOffice, reporting honest fidelity (clean/lossy) and conversion warnings. Returns JSON with status, output path, byte size, fidelity rating, and warnings list. When to use: Use to export Office files to PDF without external cloud APIs. When NOT to use: Do NOT use when creating documents from scratch (use render_document). Keywords: convert, contract, letter, report, balance statement, local, private, no api key, offline, cross-platform, linux, mac, windows, determinist…

ParameterTypeDescription
input_file *string
output *string

pdf_manipulate

Manipulates PDF documents: merge files, extract pages (split_by), split_smart by doc boundaries, flatten forms/annots, or rotate pages. Returns JSON with status, output path, and details. When to use: Use for PDF page reorganization, flattening, and splitting. When NOT to use: Do NOT use for text editing. Keywords: merge, split, flatten, rotate, local, safe.

ParameterTypeDescription
operation *string
output *string
angleinteger
filesarray
input_pathstring
pagesstring
passwordstring

list_templates

Lists packaged Word templates (acta_meeting, informe_ejecutivo, factura_simple, carta_formal, checklist_auditoria) with descriptions, keywords, and expected variable schemas. Returns JSON with template catalog. When to use: Call before create_word to inspect available official templates and required context keys. When NOT to use: Do NOT use to generate files (use create_word with template_docx). Keywords: template, minutes, report, invoice, letter, audit, checklist, local, private, offline.

pdf_compress

Compresses and optimizes PDF documents (report, scan, balance statement) by downsampling embedded images and cleaning unused objects via PyMuPDF. Returns JSON with status, output path, before/after byte size, and savings percentage. When to use: Use to shrink large PDFs before emailing or archiving. When NOT to use: Do NOT use on text-only PDFs where image optimization yields no benefit. Keywords: compress, optimize, report, scan, balance statement, local, private, no api key, offline, cross-platform, deterministic, safe.

ParameterTypeDescription
input_path *string
output *string
qualitystring

sign_pdf

Signs PDF (contract, invoice, letter): stamps visual seal and applies cryptographic PAdES signature if cert_pem or auto_generate_test_cert=True. Returns JSON with status, path, bytes, next_steps. When to use: Use to sign or approve documents. When NOT to use: Do NOT use to edit content. Keywords: sign, pades, seal, contract, local, safe.

ParameterTypeDescription
input_pdf *string
output *string
auto_generate_test_certboolean
cert_pemstring
key_pemstring
locationstring
passphrasestring
reasonstring
sello_img_pathstring

edit_excel

Modifies an existing Excel workbook (.xlsx / .xlsm: balance statement, financial report, audit) in place or to a new file via openpyxl, preserving styles, formatting, and VBA macros (keep_vba). Supports set_cell, append_row, add_column, add_chart (bar, line, pie), add_table, auto_filter, add_pivot (pandas pivot tables on new sheet), and formulas (SUM, SUMIF, AVERAGEIF, VLOOKUP, XLOOKUP, COUNTIFS). Returns JSON with status, path, fidelity, warnings, and operations count. When to use: Use to update existing spreadsheets without recreating them from scratch. When NOT to use: Do NOT use to build n…

ParameterTypeDescription
input_path *string
operationsarray
output_pathstring

edit_word

Modifies an existing Word document (.docx: contract, letter, minutes, report, audit checklist) in place or to a new file via python-docx, preserving styles. Supports append_paragraph, replace_text, insert_after_heading, and append_table. Returns JSON with status, path, fidelity, warnings, and operations count. When to use: Use to revise, update, or patch existing .docx files. When NOT to use: Do NOT use to create new documents from scratch (use create_word) or to edit PDFs directly. Keywords: edit in place, contract, letter, minutes, report, audit, checklist, local, private, no api key, offlin…

ParameterTypeDescription
input_path *string
operationsarray
output_pathstring

edit_pptx

Modifies an existing PowerPoint presentation (.pptx: presentation, deck, slide, executive summary, status report) in place or to a new file via python-pptx, preserving styles, theme, and charts. Supports replace_text, set_slide_title, add_slide, delete_slide, append_bullets, and set_notes. Returns JSON with status, path, fidelity, warnings, and operations count. When to use: Use to modify, update, or patch existing PowerPoint .pptx decks in place or save to a new file. When NOT to use: Do NOT use to create new presentations from scratch (use create_pptx) or for PDFs (use render_document). Keyw…

ParameterTypeDescription
input_path *string
operationsarray
output_pathstring

pdf_to_excel

Extracts structured tabular data from PDF files (balance statement, invoice, audit report) into a clean Excel .xlsx workbook via pdfplumber and openpyxl with honest fidelity reporting. Returns JSON with status, path, tables count, pages processed, fidelity, and warnings. When to use: Use when tabular data locked in PDF reports needs to be exported to Excel for analysis. When NOT to use: Do NOT use for scanned image PDFs without selectable tables (use pdf_ocr) or unstructured text PDFs. Keywords: convert, balance statement, invoice, report, audit, table, local, private, no api key, offline, cro…

ParameterTypeDescription
input_path *string
output_path *string
max_pagesinteger
sheet_namestring

read_office

Extracts text, slides, and tables from Word (.docx), PowerPoint (.pptx), and Excel (.xlsx) files in Markdown (format='markdown') or JSON (format='json', default). Returns JSON with format, structured elements, and content. When to use: Use to read or ingest Office files into RAG/LLM context. When NOT to use: Do NOT use for PDF (use read_pdf). Keywords: read, markdown, json, rag, table, local, safe.

ParameterTypeDescription
path *string
formatstring
max_rowsinteger

csv_excel_convert

Converts bidirectionally between CSV and structured Excel .xlsx workbooks. Supports single sheet or all sheets. Returns JSON with status, path, rows, and warnings. When to use: Use to convert CSV to styled Excel or export spreadsheets to CSV. When NOT to use: Do NOT use for editing existing spreadsheets (use edit_excel). Keywords: csv, excel, convert, xlsx, table, sheet, local, safe.

ParameterTypeDescription
input *string
output *string
directionstring
sheetstring

pdf_redact

Permanently removes sensitive info from PDF by text search or coordinate regions via PyMuPDF apply_redactions. Returns JSON with status, path, bytes, and redactions_count. When to use: Use to erase PII or confidential data. When NOT to use: Do NOT use to edit text. Keywords: redact, censor, privacy, security, pii, sanitize, local, safe.

ParameterTypeDescription
input_path *string
output *string
fill_colorstring
regionsarray
search_textstring

pdf_extract_structured

Extracts structured text, tables (pipe format or arrays), and metadata from PDF pages to Markdown or JSON for RAG workflows. Returns JSON with format, content, and page structures. When to use: Use to ingest PDF documents and tables into RAG or LLM knowledge bases. When NOT to use: Do NOT use for scanned image PDFs (use pdf_ocr). Keywords: rag, extract, markdown, json, table, structure, knowledge, local, safe.

ParameterTypeDescription
input_path *string
formatstring
outputstring

document_diff

Compares two Word (.docx) or PDF documents returning honest textual differences (added, deleted, modified paragraphs) via difflib. Returns JSON with status, changes summary, diffs list, and textual warnings. When to use: Use to compare revisions or contract versions. When NOT to use: Do NOT use for legal-grade redlines or pixel diffs. Keywords: diff, compare, changes, revision, contract, local, safe.

ParameterTypeDescription
path_a *string
path_b *string
formatstring

scrub_metadata

Removes sensitive metadata (author, title, revision history, editors, custom properties) from PDF, Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) documents. Returns JSON with status, path, scrubbed fields, and byte size. When to use: Call before sharing documents externally. When NOT to use: Do NOT use to redact visual document content (use pdf_redact). Keywords: scrub, sanitize, metadata, privacy, author, clean, local, safe.

ParameterTypeDescription
input *string
output *string
fieldsarray

protect_office

Protects Office documents (.docx, .xlsx, .pptx) with standard agile AES encryption password via msoffcrypto. Returns JSON with status, output path, and byte size. When to use: Use to password-protect sensitive workbooks, presentations, or documents. When NOT to use: Do NOT use for PDFs (use render_document or pdf_manipulate). Keywords: protect, password, encrypt, confidential, office, lock, local, safe.

ParameterTypeDescription
input *string
output *string
password *string

verify_pdf_signature

Verifies cryptographic digital signatures in a PDF file via pyhanko and pypdf, returning honest validation status. Returns JSON with has_signature, valid, signer, date, reason, and warnings. When to use: Use to audit or verify signed contracts and invoices. When NOT to use: Do NOT use to sign documents (use sign_pdf). Keywords: verify signature, pades, audit, contract, integrity, local, safe.

ParameterTypeDescription
input *string

create_book

Generates multi-chapter PDF books with cover, automatic numbered TOC with page numbers, and professional margins via WeasyPrint, with optional EPUB export via ebooklib. Returns JSON with status, path, and chapter count. When to use: Use for long multi-chapter manuals, books, or reports. When NOT to use: Do NOT use for single-page documents (use render_document). Keywords: book, epub, manual, toc, chapters, pdf, local, safe.

ParameterTypeDescription
output *string
title *string
authorstring
chaptersarray
epubboolean
themestring

environment_status

Audits system environment and reports active capabilities (LibreOffice, Tesseract OCR, WeasyPrint, PyMuPDF, Pandas) and exact installation commands for missing tools. Returns JSON with status, OS, capabilities, and install hints. When to use: Call to check installed document processing engines on host. When NOT to use: Do NOT use to process documents. Keywords: doctor, status, environment, system, check, install, diagnose, local, safe.

office_batch

Executes multiple document operations sequentially in a single turn without round-trips; continues on error and reports individual results. Returns JSON with total, succeeded, failed count, and step results list. When to use: Use to execute multi-step document pipelines (e.g. generate report + convert to PDF + sign). When NOT to use: Do NOT use for single operations or when later steps require conversational branching. Keywords: batch, pipeline, workflow, invoice, report, minutes, letter, contract, audit, checklist, executive summary, balance statement, convert, sign, local, private, no api ke…

ParameterTypeDescription
operationsarray