Nutrient PDF to Markdown — CLI for Claude Code and Codex

A local PDF-to-Markdown converter with search over the output, so agents read contracts and reports without uploading the file.

Install in Claude Code, Codex and Cursor

Other ways to install

Access and checks

How we review

Minimal access. The tool runs nothing and makes no network calls.

  • Reads PDFs from disk and runs a binary that updates itself every six hours.

This is third-party code. Review the repository files before installing.

What it does

Nutrient PDF to Markdown installs three commands on one binary. `pdf-to-markdown` turns a PDF into Markdown with headings, lists, tables and reading order. `pdf-to-text` keeps columns and indentation in plain text. `query` searches the finished file with BM25 and returns line ranges, so an agent does not load the whole document into context. Conversion runs on your machine and documents are not sent to Nutrient. The `--vision` mode reads scans, photographs and handwritten pages and downloads models of several hundred megabytes on first use. `--enable-image-export` saves images next to the output in `output_resources/`. The commands also install as Nutrient Skills for Claude Code, Codex, Cursor, Pi and Gemini CLI.

Who it is for. Developers of RAG pipelines and analysts whose agents read long PDFs such as contracts, reports and technical specs.

Good fit when

  • An agent has to pull the pricing table out of `proposal.pdf`.
  • A folder of PDFs must be batch-converted to Markdown for indexing.
  • A large contract does not fit into context and only the total-amount clause is needed.
  • A scan or photographed page must be recognised without uploading it to the cloud.

Not a fit when

  • The reverse direction is wanted: creating or editing PDFs.
  • The platform is not on the list: macOS on Apple Silicon, Linux x64 and arm64, or Windows.
  • The project license is proprietary and open-source code is required.

Example request

Extract the pricing table from proposal.pdf and show the contract total without loading the whole file into context.

Limitations

The license is proprietary: standard conversion and `query` are free for permitted use, while Vision draws on a Nutrient account allowance, an API key or a CLI license key. Standard mode works with PDFs that have a text layer. Linux needs glibc 2.38 or newer, libcurl 4, ICU and OpenSSL 3. The binary updates itself at most once every six hours. The first Vision run downloads models.

How to disable. Remove the skills through the agent plugin manager, the package with `npm uninstall -g @pspdfkit/pdf-to-markdown` and the binary from `~/.local/share/nutrient/cli/`.

FAQ

How do I connect the converter to Claude Code?

Install the skill with `npx skills add pspdfkit-labs/nutrient-skills --skill pdf-to-markdown` or through `/plugin marketplace add pspdfkit-labs/nutrient-skills`. After that you only name the PDF in a prompt.

Do documents go to the cloud?

No, conversion is local and documents are not uploaded to Nutrient. Vision contacts the account only for allowance and models.

How do I convert a whole folder?

Pass two directories: `pdf-to-markdown ./input-pdfs ./output-markdown`. The command converts every PDF in the input folder.

What does `query` do?

It searches the finished Markdown with BM25 and returns `Lines A–B` ranges the agent can read selectively.

When is `--vision` needed?

For scans, photographs, handwriting and complex tables. It needs a Nutrient account, an API key or a CLI license key.

How do I install Nutrient PDF to Markdown?

Run npx skillfoxx add cli/nutrient-pdf-to-markdown in a terminal.

Discussion

No questions or reviews yet.

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
Nutrient PDF to Markdown (this card)no361
MarkItDownyesnot required198,806converts many formats to Markdown through Python; Nutrient handles PDFs only with a local binary and adds `query` search
docling.rs: a document converter with an MCP servernonot required155offers a Rust MCP server for document parsing; Nutrient ships a CLI and skills with no server

README in short

The repository publishes a wrapper around the local Nutrient binary. Install with `npm install -g @pspdfkit/pdf-to-markdown`, `npx` or the `install.sh` script. The docs compare speed and accuracy with docling, pymupdf4llm and pypdf.

README badge

Report a problem