🚰 KitchenSink4Word
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
**Edit Word documents with your AI assistant: tracked changes, citations, templates, and live edits in an open document.**
KitchenSink4Word is an MCP server that lets Claude Code, the Codex CLI, Copilot CLI, Claude Desktop and other local MCP clients read and edit .docx files. It can also work on a document while it is open in Microsoft Word, so you watch the changes arrive. This is the free Community edition, licensed under the AGPL-3.0.
Product page · llms.txt · Changelog
**Platform:** Windows. Editing files works without Word installed. Live editing and the Word-powered features (PDF import and export, document compare, proofing, field refresh) need Microsoft Word.
Install
The package needs Python 3.12 or newer. Run the commands below in PowerShell or a terminal, not in an AI chat.
**Claude Code or Codex CLI.** Install uv, run the line for your app, and start a new session:
**Claude Desktop.** Install uv and restart Claude Desktop. Download the .mcpb file from the latest release, then open Settings > Extensions > Advanced settings > Install extension and choose the file. The first launch downloads the Python package, so it needs a network connection.
**Any other local MCP client.** Use uvx as the command and kitchensink4word as its argument, or install the package and run kitchensink4word as the server command:
Installing the package by itself does not connect it to an AI app; add it as a local MCP server in your client's settings.
What it can do
- Revise a report while it stays open in Word, with each edit visible as it lands.
- Read, accept and reject tracked changes, write edits as tracked changes, and work through reviewer comments.
- Fill templates, assemble chapter files into one document, and run mail merges.
- Build and format tables, lists, headings, sections and page layouts.
- Insert citations, bibliographies, footnotes, endnotes, captions and cross-references, including Zotero library citations.
- Check formatting, accessibility and document structure before you hand a file over.
- Compare two versions of a document, redact selected text, and import or export PDF through Word.
In total the server offers 110 document tools covering 222 operations, plus two tools that switch capability packs on and off.
Highlights
- **Table columns through merged cells.** Inserting or deleting a column works correctly when the table has horizontally or vertically merged cells.
- **Bulk edits in one call.** Twenty cell edits are one set_cells call, not twenty round trips.
- **Real tracked changes.** Edit tools accept track=True and an author name and produce Word revisions the recipient can accept or reject.
- **Word-native compare.** com_multi_document(action="compare") produces a redline between two versions.
- **Built not to corrupt.** Saves are atomic and validated, the previous version is backed up before every change, and anything the call does not touch (equations, text boxes, content controls) passes through byte for byte. A file that is open in Word is refused with a clear message instead of a hang.
- **Find and replace across split runs.** Matches work even when Word has broken the text into many runs, and per-character formatting is preserved. User regular expressions run with a timeout.
Tool packs and context cost
A session starts with a small core of everyday tools and loads larger capability packs only when a task needs them, which keeps the tool list your AI carries short. All figures count the full tools/list entry the client receives and come from scripts/measure_surface.py.
| Pack | Tools | Approx. tokens | What it covers |
|---|---:|---:|---|
| **lite** (loaded at start) | 29 | ~10.2k | Text, paragraphs, tables, cells, lists, find and replace, outline, document view, backups, workflow guides, server info, pack controls |
| references | 8 | ~2.9k | Word-native citations and bibliography, Zotero search and cite, citation checks, style conversion |
| review | 9 | ~2.4k | Tracked changes, threaded comments, structured diff, anonymize and restore |