Edit Office documents and prove no edit went unrecorded
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server that edits Office documents and refuses to write one where an edit went unrecorded.
Before sealing a session it replays every recorded operation against the document's baseline and compares the result to what is actually on disk. A change no operation explains means the commit is refused. Of ~18 competing MCP document-editing projects, none gates the write on that check. The refusal is the product.
Add to .mcp.json (project) or claude_desktop_config.json (desktop β use an absolute path,
${CLAUDE_PROJECT_DIR} isn't expanded there):
Needs uv on PATH; nothing else installed globally. Invoking the ooxml-ledger-mcp script
directly gives ENOENT β it lives in the project venv, not your shell's PATH.
OOXML_LEDGER_ROOTSis the security boundary. Anos.pathsep-separated list; every path any tool receives is resolved inside it and refused outside. Unset, it defaults to the server's working directory β set it deliberately, sinceexport_receiptwrites anywhere inside a root.
| Tool | ||
|---|---|---|
| session | open_document Β· close_document | writes |
| read | describe_structure Β· find_text | read-only |
| edit | preview_edits Β· apply_edits Β· delete_paragraph Β· insert_paragraph | writes |
| seal | commit_document | writes Β· enforces the gate |
| stateless | server_info Β· digest Β· verify Β· list_receipts | read-only |
export_receipt | writes |
Typical loop:
preview_edits runs the same engine function as apply_edits against a throwaway copy, so
the two cannot disagree. Batches are all-or-nothing: a failing edit leaves the document
byte-identical.
mode="tracked" emits Word revision marks a reviewer sees in the document. mode="direct"
rewrites the text with none β still fully recorded, and the receipt discloses that a direct
edit touched a revision-capable part, so it is never silently indistinguishable from an
ordinary save.
| Format | Verify | Edit |
|---|---|---|
Word .docx | Yes | Yes β tracked + direct, paragraph insert/delete |
PowerPoint .pptx | Yes | Direct only β PresentationML has no revision model, so every edit carries a mandatory disclosure |
Excel .xlsx | Yes | No β editing verbs refuse, naming the format |
Verification, digests, the gate and the receipt model are format-agnostic. Only the editing
engines are format-specific: wml.py (Word) and pml.py (PowerPoint).
OOXML_LEDGER_READ_ONLY=1 leaves exactly server_info, digest, verify, list_receipts.
The others aren't merely hidden β calling one answers Unknown tool. No write surface inside
the roots at all.
No server, no session β digests the file, finds its receipt by content address, checks it. Wire it into CI or a pre-commit hook and an unaccounted-for change fails the build.
Every GitHub Release attaches a .mcpb file β a one-click Claude Desktop install: drag it onto
the app and it runs with a vendored Python runtime, no uv or manual server config needed.
mcpb/manifest.json exposes the document root and read-only toggle as install-time settings
instead of environment variables; the tool list matches the stdio server's.
CI builds and smoke-tests the bundle on macos-latest only, and the manifest's
compatibility.platforms declares darwin only β the bundle is built and proven on
macOS/arm64, nothing else. It vendors native extensions (pydantic-core, cryptography, and
more) as platform-specific wheels; installing it on Windows or Linux would fail to import them.
verify never replays. It checks the digest and the receipt's internal consistency; the
replay runs once, at commit, and verify reports that verdict rather than recomputing it.w:p/w:r/w:t). Styles, numbering,
settings and relationships are uneditable and covered by the accountability check alone.CONTRIBUTING.md covers setup, the branch and commit naming CI enforces, and the release flow. SECURITY.md covers private vulnerability reporting, and is explicit about which of this project's documented limits are design rather than defects.
MIT licensed. Design notes and specifications live in docs/superpowers/.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-ooxml-ledger)<a href="https://allmcps.com/mcp/mcp-ooxml-ledger"><img src="https://allmcps.com/api/badge/mcp-ooxml-ledger?style=directory" alt="MCP Ooxml Ledger on AllMCPs" /></a>