# che-word-mcp [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/PsychQuant/che-word-mcp  
**GitHub Stars:** 7  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/che-word-mcp

## Description
Swift-native MCP server for Word (.docx) manipulation with 148 tools

## Tools
Capabilities this server exposes over MCP:

- **create_document** — Create a new Word document
- **open_document** — Open an existing .docx file (track_changes default `false` since v3.0.0)
- **save_document** — Save document to .docx file
- **close_document** — Close an open document (pass `discard_changes: true` to drop dirty edits)
- **finalize_document** — Save and close in one guarded step
- **list_open_documents** — List all open documents
- **get_document_info** — Paragraph, word and image counts (images counted by their references in body, headers and footers; Direct Mode)
- **get_document_properties** — Read core properties: title, author, dates (Direct Mode)
- **set_document_properties** — Set core properties: title, author, subject, keywords
- **get_word_count_by_section** — Word count per section, with a custom separator (e.g. References) and excluded sections (Direct Mode)
- **get_session_state** — Snapshot `{ source_path, disk_hash_hex, disk_mtime_iso8601, is_dirty, track_changes_enabled }
- **get_document_session_state** — Legacy session snapshot (preserved for backward compat)
- **revert_to_disk** — Re-read source path, discard in-memory edits (destructive-by-design)
- **reload_from_disk** — Cooperative reload; requires `force: true` on dirty doc
- **check_disk_drift** — Informational — returns `{ drifted, disk_mtime, stored_mtime, disk_hash_matches }
- **checkpoint** — Write the in-memory session to `<source>.autosave.docx` (or a given `path`) without clearing the dirty flag
- **recover_from_autosave** — Restore the session from `<source>.autosave.docx`; a dirty session needs `discard_changes: true
- **get_text** — Get plain text content
- **get_paragraphs** — Get all paragraphs with formatting
- **get_document_text** — Full plain text of a .docx (alias of `get_text`; Direct Mode)
- **get_paragraph_runs** — Runs of one paragraph with their formatting (colour, bold, italic, …)
- **get_text_with_formatting** — Document text with formatting written as Markdown marks (`**bold**`, `*italic*`, `{{color:red}}`)
- **estimate_paragraph_for_page** — v3.18.0+** — estimate a Word UI page number to a `get_paragraphs` candidate range (heuristic JSON with confidence + warning). See [docs/estimate-paragraph-for-page.md](docs/estimate-paragraph-for-page.md) for the `chars_per_page` derivation formula, confidence-tier table, and known limitations.
- **insert_paragraph** — Insert a new paragraph
- **insert_text** — Insert text at a position inside a paragraph
- **update_paragraph** — Update paragraph content
- **delete_paragraph** — Delete a paragraph
- **replace_text** — Cross-run-safe find & replace with `scope` (body\
- **replace_text_batch** — v2.2.0** — sequential N-replacement batch, single save at end, `dry_run` / `stop_on_first_failure
- **search_text** — Find text and return every match position, nested tables included (Direct Mode)
- **search_text_batch** — v2.2.0** — aggregated multi-query search, works in Direct + Session Mode
- **search_text_with_formatting** — Find text and return each match with its formatting marks
- **search_by_formatting** — Find text that carries a given format (e.g. red, bold)
- **list_all_formatted_text** — List all text with one format (`format_type`: italic, bold, underline, color, highlight, strikethrough)
- **format_text** — Apply text formatting (bold, italic, color, font)
- **set_paragraph_format** — Set paragraph formatting (alignment, spacing)
- **apply_style** — Apply built-in or custom styles
- **set_language** — Set the proofing language of text (spell check) — not implemented: reports success but writes nothing
- **set_keep_with_next** — Keep the paragraph on the same page as the next one
- **set_keep_lines** — Keep all lines of the paragraph on one page
- **set_page_break_before** — Start the paragraph on a new page
- **set_widow_orphan** — Widow and orphan control
- **insert_tab_stop** — Add a tab stop to a paragraph
- **clear_tab_stops** — Remove all tab stops from a paragraph
- **insert_table** — Insert a table with optional data
- **get_tables** — Get all tables information
- **update_cell** — Update cell content
- **delete_table** — Delete a table
- **merge_cells** — Merge cells horizontally or vertically
- **set_table_style** — Set table borders and shading
- **add_row_to_table** — Add a row
- **delete_row_from_table** — Delete a row
- **add_column_to_table** — Add a column
- **delete_column_from_table** — Delete a column
- **set_cell_width** — Set cell width
- **set_cell_vertical_alignment** — Set cell vertical alignment — not implemented: reports success but writes nothing
- **set_row_height** — Set row height
- **set_table_alignment** — Set table alignment — not implemented: reports success but writes nothing
- **get_cell_paragraphs** — Paragraphs inside a table cell with their `paragraph_index` (Direct Mode), for addressing `update_cell_paragraph
- **update_cell_paragraph** — Rewrite the text of one paragraph inside a cell; the cell's other paragraphs stay as they are
- **set_table_conditional_style** — Apply firstRow / lastRow / bandedRows etc. (10 region types) via `<w:tblStylePr>
- **insert_nested_table** — Insert table-in-cell, depth-limited to 5 (throws `nested_too_deep`)
- **set_table_layout** — Switch fixed / autofit
- **set_header_row** — Mark row as `<w:tblHeader/>` for repeat-on-page-break
- **set_table_indent** — Table-level left indent (`<w:tblInd>`)
- **list_styles** — List all available styles (Direct Mode supported)
- **create_style** — Create custom style — extended with 6 v3.10 args: `based_on`, `linked_style_id`, `next_style_id`, `q_format`, `hidden`, `semi_hidden
- **update_style** — Update style definition — same 6 extended args
- **delete_style** — Delete custom style
- **get_style_inheritance_chain** — Traverse `basedOn` chain upward to root with cycle detection
- **link_styles** — Bidirectional `<w:link>` between paragraph and character style pair
- **set_latent_styles** — Control Quick Style Gallery defaults via `<w:latentStyles>` block
- **add_style_name_alias** — Localized `<w:name>` alias per BCP 47 lang code
- **insert_bullet_list** — Insert bullet list
- **insert_numbered_list** — Insert numbered list
- **set_list_level** — Set list indentation level
- **set_outline_level** — Set paragraph outline level (TOC inclusion)
- **list_numbering_definitions** — Enumerate every abstractNum + num pair
- **get_numbering_definition** — Fetch single num by id
- **create_numbering_definition** — New abstractNum + paired num (max 9 levels)

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What che-word-mcp does

che-word-mcp exposes MCP operations for working with Microsoft Word `.docx` documents through direct Office Open XML manipulation. It can create documents, open existing files, read plain text and paragraph structure, apply formatting, edit tables, and save results back to disk. Microsoft Word is not required, and the implementation does not depend on Node.js, Python, or another external runtime.

The server covers both document content and document lifecycle. Agents can insert, update, delete, and replace text; inspect paragraph formatting; set paragraph properties; apply styles; create tables; update cells; merge cells; and remove tables. Table operations also include borders, shading, and conditional regions such as first-row, last-row, and banded-row styling.

## How it works

Document access can follow a direct or session-oriented workflow. Direct access is intended for read-only operations using a source path. Session Mode opens a document under a document ID and supports mutations, saving, closing, and state inspection. `create_document`, `open_document`, `save_document`, and `close_document` provide the main lifecycle operations, while `finalize_document` combines saving and closing behind a guarded step.

Session state includes the source path, a disk hash, the recorded modification time, a dirty flag, and whether track changes are enabled. `check_disk_drift` compares the stored state with the file on disk. `reload_from_disk` can refresh a session, but a dirty document requires an explicit force option; `revert_to_disk` discards in-memory edits and rereads the source file.

The save path uses atomic rename behavior and actor-based concurrency protection. Optional backup and autosave mechanisms support rollback and recovery workflows. Autosave snapshots occur before mutations by default and can be disabled with an autosave interval of zero.

## Tools and capabilities

- Create, open, save, close, finalize, and list document sessions.
- Read plain text, paragraphs, paragraph formatting, tables, and table details.
- Insert, update, delete, and replace paragraph or text content.
- Run batch replacement and aggregated text searches to reduce MCP round trips.
- Format text and paragraphs, including font properties, alignment, and spacing.
- Apply built-in or custom styles.
- Insert tables, update cells, merge cells, delete tables, and configure table styles.
- Apply table conditional styles across supported regions.
- Estimate a Word UI page number from a candidate paragraph range using a heuristic result that includes confidence and warnings.
- Create Word-native tracked revisions for supported text, formatting, and paragraph changes when track changes is enabled.

## Limitations and notes

Page estimation is heuristic rather than a layout engine, so its result includes a confidence value and warning. Revision-producing operations require track changes to be enabled and do not silently enable it. Reloading a dirty session requires an explicit force request, while reverting to disk is intentionally destructive to unsaved in-memory edits.

The server works with `.docx` files and manipulates their OOXML package directly. Its document behavior therefore depends on the structures present in the package and on the operations selected by the agent.

_Full upstream README: https://allmcps.com/mcp/che-word-mcp/readme_

