What is the Mathpix CLI?
mpx is the Mathpix command-line interface. It is organized as mpx <service> <command>: eachMathpix product is a service, and its operations are the commands under it.
mpx scs convert paper.pdf paper.mmd
mpx scs convert ./scans/ ./out/ --map pdf:docx,md:docx
mpx scs convert equation.png equation.mmd
Two services ship today:
scsis the Mathpix OCR and document API onapi.mathpix.com. It converts a single document,
a folder of documents, or one image; runs batch jobs through the Files API; and
manages data sources, webhooks, app tokens, results and usage.pcodrives a Mathpix Private Cloud OCR deployment in your own infrastructure.
mpx is a single static binary with no runtime to install. You do not need Python, Node, Java, orDocker. Every command is an HTTP call you could make yourself, so the tool doubles as a reference
client for the API.
Why a CLI?
- Scripting and automation. Convert documents from a shell script, a Makefile, or a CI pipeline.
- Batch a folder in one command. Point
mpx scs convertat a directory and it converts every
document in parallel, writing the outputs beside the inputs with a report. - The same API, less boilerplate. No hand-written multipart uploads, polling loops, or download
retries; the CLI handles them.
Next steps
- Getting Started: install
mpxand convert your first document. - Configuration: store credentials and settings in named profiles.
- SCS: OCR, document conversion, batch jobs, data sources, webhooks, and more.
- PCO: drive a Private Cloud OCR deployment.