Open source · MIT or Apache-2.0 · Written in Rust

The document editor built for AI agents, first.

Markdown as the native working format. Real .docx fidelity. Every action a command your agent can call over a CLI, a JSON control protocol or an MCP server, with a familiar word processor for when a human's at the keyboard.

422 commands 8 document formats + PDF ~1.4 ms re-layout while typing in a 188-page document 23 interface languages
MarkdownDocs with the Home tab of the ribbon open over a two-page document; the Navigation pane lists headings and the Styles gallery shows live previews.
For agents

Agents don't screen-scrape. They call commands.

Every action in MarkdownDocs, from the ribbon and keyboard shortcuts to the command search, is a command with a stable id and JSON parameters. The same commands are exposed to your agent, so it edits documents the way it edits code.

  • MCP server: plug it into Claude or any MCP client, headless or connected to the running app.
  • Checks its own work with inspect_document, no screenshots needed.
  • Sandboxable: confine the agent to read and write roots you choose.
  • CLI and JSON scripts for batch jobs: convert, inspect, edit and save in one run.
  • Macros record any sequence of commands and play it back.
# add MarkdownDocs to your agent as an MCP server
claude mcp add wordcraft -- wordcraft-cli mcp

# keep the agent inside chosen folders
wordcraft-cli mcp --automation-read-root DIR \
                  --automation-write-root DIR

# or let it drive the running app
wordcraft --control 7981 &
claude mcp add wordcraft-app -- wordcraft-cli mcp --connect 127.0.0.1:7981

# tools your agent gets
list_commands · execute · batch · type_text · select_text
inspect_document · render_page · save_document
screenshot · click · key   # with a running app

# one-shot edits from the command line
wordcraft-cli run --template sample \
  --cmd 'select.text={"text":"Membership"}' --cmd format.bold \
  --save out.docx
Why MarkdownDocs

One tool for every document an agent, or a person, needs.

Read, edit and produce Markdown and Word documents without losing what matters, on any platform, privately.

M↓

Markdown-native

Markdown isn't a lossy one-way export here. It's a first-class format on par with .docx, for AutoSave, round-trips and ongoing work.

⚙

Built for agents first

Stable command ids and JSON params drive the ribbon, shortcuts, CLI, control channel and MCP server alike.

⇄

Your files, many formats

Opens and saves .docx, .odt, .rtf, .html, .md, .tex and .txt, imports legacy .doc, and exports PDF with selectable text, links and bookmarks.

⌘

Familiar for humans

Ribbon tabs, styles, track changes, comments and the shortcuts you already know: Enter continues a list, F4 repeats, F7 checks spelling.

⚡

Fast

Cached paragraph layout re-lays out a 188-page document in about 1.4 ms as you type. Pages render on demand.

◎

Everywhere

One Rust codebase for macOS, Windows, Linux, BSD and the web. No Electron, no Tauri: native egui on the GPU.

🔒

Private

Spelling, grammar and everything else work offline. Document text is never written to the logs.

◇

Open

MIT OR Apache-2.0. Clean-room: built from public specifications, with every asset original or openly licensed.

A tour

A full word processor under the hood.

The features agents call are the same ones people use, from review and references to layout and design.

Track changes and comment balloons in the margin
Review. Track changes, comment balloons, accept and reject, spelling and grammar as you type.
A table of contents and a styled table
References. Tables of contents, footnotes, citations in APA, MLA, Chicago or IEEE, index and captions.
Design tab with a serif theme and a DRAFT watermark
Design. Themes, style sets, paragraph spacing, watermarks, page colour and borders.
Dark mode with formatting marks shown
Dark mode with formatting marks, plus tables, pictures, shapes, links, headers, footers and fields.
Drop cap, text wrapping around a shape, line numbers and a page border
Layout. Drop caps, text wrapping around pictures and shapes, automatic hyphenation, line numbers and page borders.
Formats and platforms

Bring any document. Take it anywhere.

Open and save the formats your work already uses, then export PDF with real, selectable text, links and bookmarks.

.md.docx.odt.rtf .html.tex.txt.doc (import)PDF (export)
macOSWindowsLinuxBSDWeb (WebAssembly)
Get started

Up and running in a few commands.

Needs a recent stable Rust toolchain.

1. Run the desktop app

git clone https://github.com/MichaelMuClaude/MarkdownDocs
cd MarkdownDocs
cargo run --release -p wordcraft -- --sample
cargo run --release -p wordcraft -- report.md

2. Convert and inspect from the CLI

wordcraft-cli convert report.docx report.pdf
wordcraft-cli text report.docx
wordcraft-cli inspect report.docx   # JSON
wordcraft-cli run --script job.json

3. Connect your agent

claude mcp add wordcraft -- wordcraft-cli mcp

# Linux: install as markdowndocs + launcher
packaging/linux/install-local.sh
Early days, honestly stated. There are no prebuilt downloads yet: build from source. The binaries are still named wordcraft / wordcraft-cli, inherited from the fork. Feature maturity is roughly alpha to beta depending on the area; see the roadmap.

Give your agents a real document editor.

Issues and pull requests are welcome, from people and from AI agents working on someone's behalf alike.