# che-word-mcp [Health: Active]

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

## Description
Swift-native MCP server for Word (.docx) manipulation with 105 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 provides MCP tools for working with Microsoft Word `.docx` files. It can create, open, save, close, and finalize documents, then expose their text, paragraphs, formatting, and tables for agent-driven editing. The implementation works directly with Office Open XML rather than controlling a desktop Word application, so Microsoft Word is not required.

The server supports both simple document operations and stateful editing workflows. Text can be inserted, updated, deleted, searched, or replaced across runs. Paragraph formatting, text styling, built-in or custom styles, table contents, borders, shading, cell merges, and conditional table regions are also covered by the available tool surface.

## How it works

Documents can be accessed in Direct Mode or Session Mode. Direct Mode is intended for read-only operations using a source path. Session Mode uses a document identifier and supports the full lifecycle of opening, mutating, saving, reloading, reverting, and closing a document.

Session state includes the source path, a disk hash, the recorded modification time, whether unsaved changes exist, and whether Track Changes is enabled. Disk drift checks compare the current file with the stored metadata. A cooperative reload requires explicit confirmation when the in-memory document is dirty, while reverting deliberately discards in-memory edits.

Saving is designed around document durability. The server uses atomic rename behavior, actor-based concurrency protection, and optional backup or autosave-related safeguards. Its OOXML overlay approach preserves untouched typed and unknown package parts during round trips, including document components such as headers, footers, themes, and other package data.

## Tools and capabilities

Core tools include:

- Creating, opening, saving, finalizing, and closing `.docx` documents.
- Reading plain text, paragraphs, formatting, tables, and open-document state.
- Replacing text safely across runs, including sequential batch replacements and aggregated searches.
- Inserting, editing, deleting, and formatting paragraphs and text.
- Creating tables, changing cells, removing tables, merging cells, and applying table styles.
- Estimating a Word UI page number from a paragraph range using a heuristic that returns confidence and warnings.

Track Changes operations can create Word-native insertions, deletions, moves, and formatting revisions. Revision-enabled formatting requires Track Changes to already be enabled; the server does not silently enable it. The broader implementation also includes capabilities for headers, footers, hyperlinks, styles, numbering, sections, content controls, comments, notes, equations, fields, watermarks, and related OOXML structures.

## Limitations and notes

Page estimation is heuristic rather than a layout engine, so its result includes a confidence value and warning information. Direct Mode is read-only, while edits require a session. Reloading a dirty document needs an explicit force option, and reverting to disk is destructive because it discards in-memory changes.

The server is distributed as a single native Swift executable and does not require Node.js, Python, or an external runtime. Its document model operates on `.docx` OOXML packages rather than requiring Microsoft Word itself.

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

