GridCraft comes with a command-line tool, gridcraft-cli. It evaluates formulas, converts workbooks, prints ranges as text, runs any of GridCraft’s commands on a file without opening a window, and runs an MCP (Model Context Protocol) server, so AI agents such as Claude can read, change and save workbooks. Every ribbon button, menu item and dialog in GridCraft is a command, and the README says agents can reach all of them.
This page summarises the official documentation at version 0.19.1, released on 12 November 2026. We haven’t tried these setups ourselves yet, so check the CLI docs and the MCP docs if something doesn’t match.
Where to find gridcraft-cli
| You installed | gridcraft-cli is |
|---|---|
| Windows installer (.msi) | In the folder GridCraft is installed in, next to gridcraft.exe: %LOCALAPPDATA%\Programs\ArtCraft\GridCraft\gridcraft-cli.exe when installed for your account (the default since 0.13.0), or C:\Program Files\ArtCraft\GridCraft\ for everyone. The installer doesn’t add it to your PATH, so use the full path. |
| Windows portable (.zip) | In the unzipped folder, next to gridcraft.exe |
| macOS | A separate download, the gridcraft-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/gridcraft-cli, already on your PATH |
| Linux or FreeBSD tarball (.tar.gz) | bin/gridcraft-cli in the unpacked folder |
| Linux Flatpak | Run it with flatpak run --command=gridcraft-cli ai.storyteller.gridcraft. The sandbox lets it reach only your Documents and Downloads folders. |
| Linux AppImage | Not available. The AppImage starts only the app. |
The examples below write gridcraft-cli. Replace it with the full path if it isn’t on your PATH.
Everyday commands
These come from the README and the CLI documentation:
gridcraft-cli eval '=XLOOKUP("b",{"a","b"},{1,2})' # → 2
gridcraft-cli eval '=SUM(B2:B9)' --in book.xlsx # a formula against a workbook
gridcraft-cli info book.xlsx # sheets, used ranges, tables, charts, names
gridcraft-cli cat book.xlsx --range A1:F20 # the displayed values as an aligned table
gridcraft-cli convert book.xlsx data.csv --sheet Sales # .xlsx, .csv, .tsv, .json or .html, by extension
gridcraft-cli commands --search chart # every command and its parameters
gridcraft-cli functions --search lookup # worksheet functions and their signatures
Formulas are written in English with commas between arguments, as in English Excel. An unknown function gives #NAME?, and a formula that wouldn’t be accepted in a cell is an error that says why.
convert also reads .xls, .xlsb and .ods files, which is a way to turn them into .xlsx. As in the app, .xlsb and .ods bring in their data only, with saved values instead of formulas.
Run commands on a workbook
run opens a workbook (or a sample, or a blank one), runs commands in order, saves the result and prints ranges:
gridcraft-cli run --in book.xlsx \
--cmd 'home.bold={"range":"A1:C1"}' \
--cmd 'cell.set={"cell":"D2","input":"=B2*C2"}' \
--cmd 'edit.fillDown={"range":"D2:D20"}' \
--out book.xlsx --print A1:D5
--script steps.jsonl reads the same commands from a file, one per line. The first step that fails stops the run with a non-zero exit code, so --out is written only after every step succeeded. Command ids follow Excel’s ribbon (home.bold, insert.chart, data.sortAscending), and gridcraft-cli commands lists each one with its parameters.
Check a folder of workbooks
gridcraft-cli check is the developers’ own fidelity tool, and anyone can run it on their files. It reads each .xlsx or .xlsm, recalculates every formula with GridCraft and compares the results with the values Excel saved in the file, then saves the workbook with GridCraft, reads it back and reports what changed:
gridcraft-cli check ~/Documents/workbooks --max-report 20
Nothing is written next to your files. Mismatches are listed by cell, formula and function, which makes it a quick way to see how GridCraft does on your own workbooks before you switch, and a good start for a bug report.
Connect an AI agent over MCP
The MCP server runs only while an agent runs gridcraft-cli mcp. It talks through that command’s input and output, and installing GridCraft doesn’t register it anywhere. It has two modes:
| Mode | Command | What the agent works on |
|---|---|---|
| Headless (default) | gridcraft-cli mcp, optionally with --in book.xlsx or --sample budget |
A GridCraft engine inside the command, with no window |
| Remote | gridcraft-cli mcp --connect 7979 |
The desktop app you are looking at, started with --control 7979 (below) |
For Claude Code, the docs give these commands:
claude mcp add gridcraft -- gridcraft-cli mcp
claude mcp add gridcraft-app -- gridcraft-cli mcp --connect 7979
Other MCP clients take the same command in their configuration:
{ "mcpServers": { "gridcraft": { "command": "gridcraft-cli", "args": ["mcp"] } } }
If the client says it can’t find gridcraft-cli, put the full path to the program in "command". Since 0.19.0 the server answers a message longer than 16 MB with an error instead of reading it.
The agent gets tools such as read_range, write_range, set_cell, evaluate_formula, format_range, insert_chart, create_table, sort_range, filter, open_workbook, save_workbook, undo and redo, and execute_command, which runs any of GridCraft’s commands. It can also list the commands and functions, and, in remote mode, take a screenshot of the window.
There are no folder limits
Unlike some other Crafting Apps, GridCraft’s MCP server has no option, as of 0.19.1, to keep the agent inside a folder. open_workbook and save_workbook take any path, and execute_command reaches every command, so an agent can open, overwrite or export any file your account can reach. Workbook scripts and macros are sandboxed, but the agent’s own commands are not.
One thing the agent can’t do since 0.16.1 is open a web or email address: link.open sent through the MCP server, gridcraft-cli or the control channel is refused, and the control channel can’t press OK in GridCraft’s Open Hyperlink prompt. Up to 0.16.0, those commands opened the address in your browser without asking.
If you want limits, put them around the agent: run it in a container or under a separate user account that can see only a working folder, or use the Flatpak build, whose sandbox lets gridcraft-cli reach only your Documents and Downloads folders. Since 0.19.1 that sandbox also lets GridCraft start programs outside it, a permission its updater uses; the Linux guide shows how to take it away.
Let an agent drive the app
The desktop app can be operated by a script or an agent over a control channel: it runs commands, sends real pointer and keyboard input, opens dialogs and takes screenshots (control protocol). It is off unless you start the app with a port:
gridcraft --control 7979 book.xlsx
gridcraft-cli send 7979 engine.execute '{"command":"home.bold","params":{"range":"A1:C1"}}'
The app listens only on your own computer (127.0.0.1). Because any program on the machine, and even a web page, could reach that port, every connection must first send a token: a random 256-bit key the app writes to a file only you can read, such as $XDG_RUNTIME_DIR/gridcraft/control-7979.token on Linux or %USERPROFILE%\.gridcraft\ on Windows. gridcraft-cli send and mcp --connect read that file for you. The token itself is never printed or logged, there is no way to turn the check off, and the command journal leaves passwords out.
Before you use it
- Work on copies. GridCraft is alpha software, and an agent can make many changes quickly. Changes can be undone until they are saved, but a saved file is changed.
- Limit what the agent can reach. The MCP server won’t do it for you, so give the agent a container, a separate account or a folder of copies rather than your whole home folder.
- Check the numbers. An agent that writes formulas can get them wrong as easily as a person.
evaluate_formulaandgridcraft-cli evallet you test a formula before it goes into a sheet.
Is GridCraft safe? covers what the app itself does with your files and the network.