WordCraft comes with a command-line tool, wordcraft-cli. It converts and inspects documents without opening a window, and it runs an MCP (Model Context Protocol) server, so AI agents such as Claude can create, edit and save documents. Every action in WordCraft is a command with an id. According to the README, the same 422 commands drive the ribbon, the keyboard shortcuts, the command line and the MCP server.

This page summarises the official documentation at version 0.18.1, released on 12 November 2026. We haven’t tried these setups ourselves yet, so check the MCP docs if something doesn’t match.

Where to find wordcraft-cli

You installed wordcraft-cli is
Windows installer (.msi) In the folder WordCraft is installed in: %LOCALAPPDATA%\Programs\ArtCraft\WordCraft\wordcraft-cli.exe when installed for your account (the default since 0.12.0), C:\Program Files\ArtCraft\WordCraft\ when installed for everyone, or C:\Program Files\WordCraft\ for a copy first installed with 0.11.0 or earlier. The installer doesn’t add it to your PATH, so use the full path.
Windows portable (.zip) In the unzipped folder, next to wordcraft.exe
macOS A separate download, the wordcraft-cli-…-macos-universal.zip on the Mac download page. It is signed and notarized like the app.
Linux .deb, .rpm or Arch package /usr/bin/wordcraft-cli, already on your PATH
Linux tarball (.tar.gz) bin/wordcraft-cli in the unpacked folder
Linux Flatpak Run it with flatpak run --command=wordcraft-cli ai.storyteller.wordcraft. The sandbox gives it your Documents and Pictures folders. Since 0.13.2 it has network access, and since 0.18.1 it may run Flatpak commands outside the sandbox (what that means).
Linux AppImage Not available. The AppImage starts only the app.

The examples below write wordcraft-cli. Replace it with the full path if it isn’t on your PATH.

Convert and inspect documents

These commands come from the README:

# Convert to PDF, or to odt, rtf, html, md, tex, txt or png
wordcraft-cli convert report.docx report.pdf
# Print the text only
wordcraft-cli text report.docx
# Print the document's structure as JSON
wordcraft-cli inspect report.docx

run applies commands to a document and saves the result. This example starts from the built-in sample, selects the word “Membership”, makes it bold and saves a new file:

wordcraft-cli run --template sample \
  --cmd 'select.text={"text":"Membership"}' --cmd format.bold --save out.docx

A few more options from the tool’s own help (wordcraft-cli --help, or --help after a command):

  • convert --update-fields refreshes tables of contents, page numbers and other unlocked fields before converting. Without it, the result shows the field values saved in the file.
  • A password-protected file opens with --password-file PATH or the WORDCRAFT_PASSWORD environment variable. --password works too, but the help warns that other programs can read a password given on the command line. A file opened with a password is saved with it again; PDF, HTML and text exports aren’t protected.
  • info prints the page, word and paragraph counts as JSON, and render saves one page as a PNG.
  • Since 0.18.0, --strict on convert (PDF or PNG output only) and render refuses to write a file that would leave something out: a character no installed font can draw, or a picture that is missing or can’t be read. It writes nothing, exits with status 3 and lists what is missing, so a script can tell an incomplete PDF from a good one. The result depends on the fonts installed on the computer that runs it.
  • Since 0.18.0, convert --update-fields on a protected document converts it with a warning instead of failing.

In Windows PowerShell, put & and the quoted path in front:

& "$env:LOCALAPPDATA\Programs\ArtCraft\WordCraft\wordcraft-cli.exe" convert report.docx report.pdf

Run a script of commands

Since 0.9.0, run --script reads the commands from a JSON file (or from standard input with --script -) and can save several formats at once. This is the docs’ example, which makes a .docx and its PDF without opening a window:

{"template": "sample",
 "commands": [{"command": "select.text", "params": {"text": "Membership"}},
              {"command": "format.bold"},
              "caret.docEnd"],
 "save": ["out.docx", "out.pdf"]}
wordcraft-cli run --script job.json

According to the docs, a command that fails stops the run with exit status 1 and nothing is saved, and every output path is checked before the first file is written. Relative paths in file and save count from the script’s folder, but paths inside a command’s parameters, such as a picture to insert, count from the folder you run it in.

Connect an AI agent over MCP

The server talks to the agent over standard input and output, and works in one of two ways:

  • Without a window (wordcraft-cli mcp). The agent creates, opens, edits and saves documents in the background. This is the mode you can confine to certain folders.
  • Driving the running app (wordcraft-cli mcp --connect). You watch the agent work in WordCraft’s window, and it can also take screenshots, click and press keys. Since 0.11.0 the server keeps running when it starts before WordCraft does: tool calls say the app can’t be reached yet and work once it is.

For Claude Code, the README gives this command:

claude mcp add wordcraft -- wordcraft-cli mcp

Other MCP clients take a JSON entry like the one below. The docs use this shape. Use the full path to wordcraft-cli, and look up where your client keeps its MCP settings in its own documentation.

{
  "mcpServers": {
    "wordcraft": {
      "command": "/full/path/to/wordcraft-cli",
      "args": ["mcp"]
    }
  }
}

To drive the app instead, start WordCraft with a control port, then connect the server to it:

wordcraft --control 7981 &
claude mcp add wordcraft-app -- wordcraft-cli mcp --connect 127.0.0.1:7981

On a Mac, start the app with open -a WordCraft --args --control 7981. On Windows, open PowerShell in its folder and run & .\wordcraft.exe --control 7981.

What the agent can do

Tool What it does
list_commands Lists WordCraft’s commands, optionally filtered
execute Runs one command, such as inserting an empty 3 × 4 table
insert_table Inserts a table filled with values in one call, with an optional header row and table style (since 0.17.0)
batch Runs several commands in order
new_document Starts a blank document, the sample, or a letter, résumé or report template, beside the documents already open
list_documents Lists the open documents with their ids (since 0.12.0)
open_document, save_document Open .docx, .doc (open only), .odt, .rtf, .html, .md, .tex, .txt and .json, with a password if the file has one (since 0.9.0). Saving also writes PDF and PNG.
type_text, select_text Type at the caret, or select a piece of text
get_text, inspect_document Read the document back, so the agent can check its work without screenshots
render_page Renders a page as a PNG image
screenshot, click, key, ui_inspect Only when driving the running app

Since 0.12.0 several documents can be open at once. new_document and open_document open another one and make it the active document. Tools work on the active document, and execute, batch, insert_table, type_text, select_text, get_text, inspect_document, render_page and save_document also take doc, the id of another open document. In a run --script, file.new and file.open open another document in the same way, and view.switchWindows switches between them.

Keep the agent to certain folders

Start the server with a read folder and a write folder:

wordcraft-cli mcp --automation-read-root /work/project --automation-write-root /work/project/out
{
  "mcpServers": {
    "wordcraft": {
      "command": "/full/path/to/wordcraft-cli",
      "args": ["mcp", "--automation-read-root", "/work/project", "--automation-write-root", "/work/project/out"]
    }
  }
}

According to the docs:

  • Every file the agent opens or reads must be inside the read folder: documents, templates, pictures, mail-merge lists and documents to compare. Every file it saves, exports or renames must be inside the write folder.
  • Read and write access are separate. If you give only a read folder, nothing can be written to disk. To allow both in one place, give the same folder twice.
  • Links that lead out of a folder count as outside it, and /work2 doesn’t count as inside /work. A refused path comes back to the agent as an ordinary error it can read and correct.
  • Both folders must already exist, or the server stops with an error.
  • The limits apply only to the server without a window. They can’t be combined with --connect, and the desktop app has no such limits yet, so an app started with --control isn’t confined.
  • Since 0.12.0 they also cover the dictionary and template folders the agent sets in the options (reading) and adding or removing fonts (writing), and a save through a link that leads into the write folder from outside is refused.
  • They don’t limit what the agent does to the document already open. It can still read all of it and change it.

The docs also say what the folders don’t protect against: a path is checked and then opened, so another program that swaps a link in between could still win. The folders keep an agent to the files you gave it. They don’t guard against other software on your computer.

Language packs

Since 0.15.0, spelling for languages other than English comes from Language packs, and agents can manage them with three commands, sent through execute or --cmd:

Command What it does
proof.packs Lists the packs that are available and installed, and any install that is running
proof.installPack {"locale": "nl"} Installs one pack, here Dutch
proof.removePack {"locale": "nl"} Removes one

According to the docs, an agent can install a pack only while downloading is turned on, and only a person can turn it on, with their own click in WordCraft (File › Options › Language). A click the agent sends with click doesn’t count. Otherwise proof.installPack fails with downloading is turned off. A server started with folder limits refuses to install or remove packs when the folder that holds them is outside the write folder. When the agent drives the running app, an install runs in the background, and proof.packs shows its progress and then the result.

Mark the agent’s edits

Tracked changes and comments are recorded under the session’s user name, “WordCraft User” by default. To tell the agent’s edits from people’s, give it a name when you start the server:

wordcraft-cli mcp --author "Claude (copyedit)"

Have the agent turn tracking on with review.trackChanges {"value": true}. Without value, the command switches tracking the other way, which turns it off in a document that was saved with tracking on.

How driving the app is protected

The control port is off unless you start WordCraft with --control. It listens only on your own computer (127.0.0.1). Because any local program, and possibly a web page, can reach such a port, every request also needs the window’s key: 256 random bits that the app writes to a file in its settings folder and removes when the window closes. A wrong or missing key gets the connection closed. A missing or invalid port number after --control makes the app print an error and quit.

wordcraft-cli mcp --connect reads that key itself, and since 0.12.0 sends it only to 127.0.0.1, the address the app listens on (before, to any address on your own computer). In the Flatpak build, which shares your computer’s network since 0.13.2, programs outside the sandbox can reach the port too; the key still applies. To drive WordCraft on another machine, the docs suggest forwarding its port over SSH (ssh -L 7981:127.0.0.1:7981 host) and setting WORDCRAFT_CONTROL_KEY to that app’s key.

Before you rely on it

  • Your AI service sees the text. WordCraft itself works offline, apart from its check for updates and the Language packs you choose to download, but whatever the agent reads, it sends to the AI service behind it. Don’t hand it documents you wouldn’t share with that service.
  • Unsaved work is guarded. Since 0.8.0, a script or agent that closes a document with unsaved changes gets an error instead of losing them, unless the call says {"force": true}. Since 0.16.0 the same goes for closing another open document by its id and for quitting the app.
  • A lost connection doesn’t repeat an edit. Since 0.17.0, when the connection to the app breaks after a request was sent, the MCP bridge doesn’t send an edit again, because the app may already have made it. It reports that the outcome is unknown, so have the agent read the document before it tries again.
  • Check the result. The docs warn that a property name WordCraft doesn’t recognise is ignored rather than refused, so a typo fails without an error. Have the agent read the document back with inspect_document.
  • Alpha limits apply. Documents an agent writes have the same limits as any WordCraft document: page breaks can differ from Word, and real-world .docx files haven’t been tested systematically. The Word comparison lists the main gaps.
  • Keep copies. Let the agent work on copies, or in a separate write folder, until you trust the setup.

Sources

docs/mcp.md, docs/control-protocol.md, the README and the help text of wordcraft-cli at version 0.15.2. The file locations come from the 0.13.2 packaging files (the Windows installer definition, the Linux packaging script and the Flatpak manifest) and from the 0.13.2 Arch package.