Skip to content

Office documents integration

The Office documents integration provides headless document generation, inspection, conversion, and chart rendering for Word (.docx), Excel (.xlsx), PowerPoint (.pptx), and PDF files directly within your workspace without requiring cloud subscriptions.

The mcp-office worker container encapsulates standard open-source document utilities:

  • Document parsing: markitdown and SheetJS.
  • Markdown & HTML conversion: pandoc and WeasyPrint.
  • Office formatting & ODF conversion: Headless LibreOffice.
  • Python document engines: python-docx, openpyxl, python-pptx, and pypdf.
  • Chart rendering: matplotlib.

The container mounts the project workspace read-write at /workspace. No credential directories are attached.

flowchart LR
  Claude -->|"Tool call"| Hub["Tool Gateway"]
  Hub -->|"HTTP"| Worker["mcp-office Worker<br/>Zero credentials, zero network egress"]
  Worker -->|"Reads / Writes"| WS["Workspace Directory<br/>/workspace:rw"]
  Worker -->|"Outputs to"| Out[".speedwave/office/"]

Document modifications and conversions author distinct target files rather than overwriting sources in place unless overwrite: true is explicitly provided:

Tool nameDescription
readDocumentExtracts text and structure from Word, Excel, PowerPoint, PDF, or HTML to Markdown.
readPdfTextExtracts raw digital text streams from PDF files.
pdfMetadataReads page counts, author, title, and encryption flags.
markdownToPdfCompiles Markdown to PDF using pandoc and WeasyPrint.
htmlToPdfRenders local HTML files to PDF via WeasyPrint.
markdownToDocxCompiles Markdown documents to Word format.
markdownToPptxConverts Markdown headings into PowerPoint presentation slides.
renderChartGenerates standalone PNG or SVG charts (bar, line, pie, scatter, area).
createDocxCompiles Word files from structured specifications.
editDocxModifies paragraphs, tables, or text blocks in an existing Word document.
createXlsxCompiles Excel spreadsheets with embedded native charts and formulas.
editXlsxUpdates worksheet cells, appends sheets, or modifies formulas.
createPptxCompiles slide decks with bullet hierarchies, images, and native charts.
editPptxUpdates slide content, titles, or slide ordering.
officeToPdfExports Office documents to PDF using headless LibreOffice.
convertOfficeExecutes format transformations across supported Office/ODF matrices.
mergePdfConcatenates multiple PDF documents.
splitPdfExtracts page ranges into distinct PDF files.
rotatePdfRotates designated PDF pages by 90, 180, or 270 degrees.
watermarkPdfOverlays a single-page PDF watermark across document pages.
fillPdfFormFills AcroForm input fields from key-value dictionaries.
  • Directoryyour-project/
    • Directory.speedwave/
      • Directoryoffice/
        • report.pdf
        • summary.xlsx
        • slides.pptx

Enable Beta features in the Desktop tray menu, then toggle Office documents in your project’s integrations view. Initial container compilation builds LibreOffice and Python layers locally.

The office worker executes within a network-isolated container with zero outbound egress routes. Document conversion and chart rendering execute completely offline. Macro evaluation and active scripting engines are permanently disabled. Consult Isolation model for additional security parameters.