Skip to content

Reference

Server options

Command-line options and environment variables for the Artiwright MCP server and packages.

Server options.md
npx -y artiwright@latest mcp [options]
Option Default Description
--root <folder> see below Keeps sessions and finished files in this folder (finished files under <session>/outputs/). Created if needed.
--session <id> see below Session used when a tool call doesn’t name one.
--theme <value> none Theme for new documents: a preset name (classic, spruce, ledger, studio, coast), a template path (.potx, .pptx, .xltx, .xlsx, resolved against the working folder), or JSON: '{"brand":"#0B5FFF"}'.
--http off Serve Streamable HTTP instead of stdio.
--port <n> 8765 HTTP: port to listen on.
--host <address> 127.0.0.1 HTTP: address to listen on. Anything other than 127.0.0.1, ::1 or localhost needs ARTIWRIGHT_MCP_TOKEN.

Over HTTP the endpoint is /mcp.

Started by an app (stdio) without --root: each conversation’s work in progress goes to the system’s folder for app data (~/Library/Application Support/Artiwright on macOS, %LOCALAPPDATA%\Artiwright on Windows, ~/.local/share/artiwright on Linux). Finished files are saved in the folder the app starts the server in (its project), or in Documents/Artiwright in the home folder when the app starts it at the top of the disk or in the home folder. The agent can also save a file elsewhere by giving artiwright_finalize a path.

Sessions over stdio: each conversation has its own server, and gets its own session: the conversation’s id when the app passes one (Claude Code and Cowork do; the session is then claude- and the id’s first eight characters, so a resumed conversation finds its work again), else one per start, named by date and time. Over HTTP the default is default; clients pass a session per conversation.

Over HTTP, --root defaults to ./artiwright-sessions.

Variable Used by Description
ARTIWRIGHT_ROOT artiwright mcp Same as --root, when it isn’t given.
ARTIWRIGHT_MCP_TOKEN artiwright mcp --http When set, requests need Authorization: Bearer <token>.
ARTIWRIGHT_SANDBOX artiwright mcp off runs agent code, and the reading and drawing of documents, in the server process instead of the sandbox. For trusted local use only.
ARTIWRIGHT_HOME Python package Where the JavaScript side is installed. Default ~/.cache/artiwright.
ARTIWRIGHT_FONT_DIRS Previews More folders to find fonts in (separated like PATH), for fonts your decks use that the system doesn’t have.
ARTIWRIGHT_OFFICE_FONTS Previews Unset, previews also use the fonts inside the Office apps. all adds Office’s cloud-font cache on macOS (Aptos and other downloaded fonts); macOS may ask once to allow reading it. 0 turns both off. Text measures the same either way.

The theme and sandbox options of the Python helpers map onto the server’s:

Python Server
theme="ledger", theme="/srv/brand.potx", theme={"brand": "#0B5FFF"} --theme
sandbox=False ARTIWRIGHT_SANDBOX=off
session="…" (LangGraph) --session

artiwright.server_command(root, session=None, sandbox=True, theme=None) returns the command, arguments and a minimal environment for the stdio server, for any other MCP client. The agent’s own keys are not passed to it.