office-worker-mcp
v0.9.8The 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.…
| Parameter | Type | Description |
|---|---|---|
out_path * | string | |
template_html * | string | |
data_json | string | |
design_mode | string | |
footer_left | string | |
footer_right | string | |
logo | string | |
page_numbers | boolean | |
password | string | |
theme | string | |
watermark_text | string |
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,…
| Parameter | Type | Description |
|---|---|---|
out_path * | string | |
blocks_json | string | |
context | object | |
subtitle | string | |
template_docx | string | |
theme | string | |
title | string |
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.
| Parameter | Type | Description |
|---|---|---|
template_path * | string | |
dataset_csv | string | |
dataset_json | string | |
fields | array | |
output_prefix | string |
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…
| Parameter | Type | Description |
|---|---|---|
out_path * | string | |
auto_filter | boolean | |
sheets_json | string | |
table_style | string | |
theme | string | |
title | string |
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.
| Parameter | Type | Description |
|---|---|---|
out_path * | string | |
slides_json | string | |
theme | string |
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.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
extract_images | boolean | |
extract_tables | boolean | |
list_forms | boolean | |
max_images | integer | |
max_pages | integer |
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.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
dpi | integer | |
max_pages | integer | |
output | string |
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.
| Parameter | Type | Description |
|---|---|---|
theme_name_or_path | string |
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.
| Parameter | Type | Description |
|---|---|---|
input_pdf * | string | |
output * | string | |
fields | object |
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.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
lang | string | |
max_pages | integer | |
output | string |
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…
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
output * | string | |
angle | integer | |
files | array | |
input_path | string | |
pages | string | |
password | string |
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.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
output * | string | |
quality | string |
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.
| Parameter | Type | Description |
|---|---|---|
input_pdf * | string | |
output * | string | |
auto_generate_test_cert | boolean | |
cert_pem | string | |
key_pem | string | |
location | string | |
passphrase | string | |
reason | string | |
sello_img_path | string |
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…
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
operations | array | |
output_path | string |
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…
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
operations | array | |
output_path | string |
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…
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
operations | array | |
output_path | string |
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…
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
output_path * | string | |
max_pages | integer | |
sheet_name | string |
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.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
format | string | |
max_rows | integer |
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.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
output * | string | |
direction | string | |
sheet | string |
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.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
output * | string | |
fill_color | string | |
regions | array | |
search_text | string |
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.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | |
format | string | |
output | string |
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.
| Parameter | Type | Description |
|---|---|---|
path_a * | string | |
path_b * | string | |
format | string |
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.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
output * | string | |
fields | array |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
output * | string | |
title * | string | |
author | string | |
chapters | array | |
epub | boolean | |
theme | string |
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…
| Parameter | Type | Description |
|---|---|---|
operations | array |