mcdx-toolbox

Let your AI agent write, edit and check Mathcad Prime calculations for you.
Ask an agent for a Mathcad calc today and you get a Python script or a wall of
Markdown. It can't produce a real worksheet: .mcdx is a zipped XML package
with its own maths markup and absolute page coordinates. Even if the agent
gets that far, it can't see whether the result opens, lays out cleanly or
reads well.
mcdx-toolbox gives the agent that ability. Install it as a Claude Code plugin
(or connect its MCP server to any agent). Your agent can then:
- write new Prime worksheets from a plain-English request;
- transcribe code clauses, PDFs, scans and hand calcs into live Mathcad
templates;
- read existing worksheets and explain the method inside them;
- edit a sheet and check its own work before handing it back.

What you can ask for
Write new calcs
Write a Mathcad calc checking a 6 m simply supported beam under 12 kN/m for
bending. Put project "Riverside Warehouse", calc C-014 in the header and a
utilisation summary at the end.
Transcribe documents into Mathcad. The agent reads a PDF, a scanned hand
calc or a photo of a whiteboard and rebuilds it as a live worksheet. It's a
quick way to turn a design guide, a code clause or an old paper calc into a
reusable template.
Turn clause 6.2.5 of this PDF into a Mathcad template: inputs at the top, the
formulae as written in the code, and a utilisation check at the end. Crop
Figure 6.2 in next to the formula that uses it.
Here's a photo of my hand calc for the pad footing. Transcribe it into
Mathcad so Prime does the arithmetic, and flag anything you couldn't read.
Extract workflows from existing sheets. Years of company knowledge sit in
Mathcad files that only their authors fully understand. The agent can read a
sheet's whole calculation chain and explain it back: inputs, assumptions,
intermediate steps, checks and what feeds what.
Walk through connection-design.mcdx and write up the method as a step-by-step
procedure: inputs, each step with its reference, and the checks it performs.
Compare these five old column calcs and tell me whether they follow the same
method. Where do they differ?
Edit and review
Here's retaining-wall.mcdx. Change the retained height to 3.5 m, add a
sliding check, and tell me what changed.
Render every page and tell me if anything is clipped, overlapping or
wrapping badly.
How the agent does it
-
Reads what's there. For an existing worksheet, the agent gets a
readable outline of every heading, equation and result, plus its
formatting. It converts the sheet into editable text and is told exactly
which regions it can't read or safely edit. For a PDF or image source, the
agent reads it directly and crops any figures it needs to reuse.
-
Writes intent, not coordinates. The agent describes the calc as a short
YAML file: headings, prose with inline maths, definitions, functions,
figures and utilisation checks. It doesn't hand-place anything; the toolbox
handles styles, numbering, the page header and layout.
- kind: math
expression: "M_Ed = w_d * L**2 / 8"
- kind: check
label: Bending
utilisation: M_Ed / M_Rd
-
Builds a real worksheet. The equations become live Mathcad maths, so
Prime does the arithmetic when you open the file, not the agent.
-
Checks its own work. The agent validates the package, lints the layout
for overlaps and overflow, and previews the page geometry. On a Windows
machine with Mathcad Prime, it renders every page to an image, looks at
them, and compares them with the previous version. Then it fixes the
source and goes round again.
-
Tells you what it proved. The bundled skill makes the agent say what it
checked structurally, what it inspected visually, and what it did not
verify numerically.
Built-in rules keep the agent honest. Unsupported blocks and expressions fail
loudly instead of being faked. The agent never invents sign-off names or dates, and
never closes a Prime session you already have open.
Set it up
You need uv on the
machine your agent runs on. Put that machine on Windows (or WSL on the same
machine) if you want the agent to render real pages through Prime.