Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

MuPDF Tools

$ mutool Official Low Risk
Artifex Software · AI & Media · AGPL-3.0-or-later (commercial license available) · macos / linux / windows

MuPDF's mutool provides subcommands including mutool info, mutool show, mutool draw, mutool extract, mutool merge, and mutool clean. It renders pages and inspects embedded fonts, images, and PDF objects much faster than heavier Java or PostScript stacks.

FCRS-1.0 Score
80 /100
Good
Medium Confidence
Zero-Friction Install
brew install mupdf-tools
CLI vs MCP Decision CLI Only

Sub-second PDF page rendering (mutool draw) and resource inspection (mutool info) belong directly in local shell commands.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Clean subcommand hierarchy (info, show, draw, merge, clean), strictly non-interactive, and zero ANSI noise, though output is plain text rather than JSON.

  • Subcommands like mutool info and mutool show run non-interactively
  • No --json output flag
Trust & Safety 20 / 25

mutool info and mutool show are strictly read-only; mutool extract dumps all embedded resources into the current working directory if not isolated.

  • Read-only inspection subcommands
  • mutool extract writes into CWD unless run inside a dedicated output directory
Setup & Portability 13 / 15

Compact C binary packaged as mupdf-tools on Homebrew and Linux distros, plus official cross-platform builds.

  • Available via brew install mupdf-tools
Utility & Efficiency 14 / 15

Extremely fast page rendering, text/HTML/SVG extraction, PDF merging, and garbage-collected cleanup in one tool.

  • Handles PDF, XPS, CBZ, and EPUB rendering and PDF manipulation
Maintenance & Lineage 8 / 10

Official Artifex Software toolkit with active releases and strong C library backing.

  • Maintained by Artifex Software alongside MuPDF
Docs & Verifiability 7 / 10

Clear mutool <subcommand> -h help and online ReadTheDocs subcommand reference.

  • Documented at mupdf.readthedocs.io

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; accepts -p <password> inline for encrypted PDFs.

Side Effects
Read-Only Local Write
Cost & Quotas

AGPL-3.0-or-later open source; commercial OEM license required for proprietary redistribution.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# MuPDF Tools (mutool) Agent Rules
- Inspect page count with `mutool info` before running `mutool draw` so large PDFs do not write hundreds of PNGs.
- Always pass explicit `-o <output>` paths on `mutool merge`, `mutool clean`, and `mutool draw`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect PDF fonts, images, and page dimensions
mutool info input.pdf

Reports page count, media boxes, fonts, and embedded images without writing files.

Dump PDF trailer and document catalog
mutool show input.pdf trailer

Prints low-level PDF trailer dictionary entries to stdout for structural debugging.

Controlled Writes & Previews

Render PDF pages to PNG images
mutool draw -r 150 -o page-%d.png input.pdf 1-3

Rasterizes pages 1–3 at 150 DPI into page-1.png..page-3.png.

Strengths for Agents

  • + Significantly faster PDF page rendering and inspection than Java or Ghostscript alternatives.
  • + Clean mutool <subcommand> design avoids cryptic PostScript flags.

Caveats & Pitfalls

  • ! mutool extract writes extracted fonts/images into the current working directory.
  • ! AGPL-3.0 license requires commercial licensing for closed-source distribution.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI