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

Marker

$ marker_single Official Low Risk
Datalab · AI & Media · GPL-3.0 · macos / linux / windows

Marker (marker_single, from marker-pdf by Datalab) uses vision and layout deep-learning models to convert PDFs, images, and Office documents into clean Markdown, HTML, structured JSON (--output_format json), or flattened chunks. It optionally boosts table and formula accuracy with --use_llm.

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
pip install marker-pdf
CLI vs MCP Decision CLI Preferred vs MCP

marker_single runs local GPU/MPS/CPU inference directly over large PDF files and outputs structured JSON/Markdown directories.

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 19 / 25

Non-interactive CLI with --output_format json (plus markdown, html, chunks) and --output_dir, though it writes files rather than stdout.

  • Supports --output_format json and --output_dir
  • No interactive prompts
Trust & Safety 19 / 25

Runs locally unless --use_llm is explicitly enabled; GPL-3.0 + model weight restrictions require compliance review for commercial redistribution.

  • Local-only by default; --use_llm is strictly opt-in
  • GPL-3.0 code license and model weight usage thresholds
Setup & Portability 9 / 15

Requires PyTorch and downloads multi-gigabyte Surya/Marker model weights on first execution.

  • Heavy GPU/PyTorch and model weight download footprint
Utility & Efficiency 13 / 15

High-accuracy extraction for scientific PDFs, equations, tables, and RAG-ready chunks JSON.

  • Supports markdown, json, html, and chunks output formats
Maintenance & Lineage 8 / 10

Official Datalab repository (datalab-to/marker) under GPL-3.0 with active development.

  • Official datalab-to/marker repository
Docs & Verifiability 8 / 10

Clear README usage documentation and --help flag coverage.

  • Documented flags and examples in upstream README

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Offline by default; enabling --use_llm reads external LLM API keys (e.g. GOOGLE_API_KEY or OPENAI_API_KEY) from env vars.

Side Effects
Read-Only Local Write Remote Write Billing Impact
Cost & Quotas

GPL-3.0 open-source code with restricted commercial weight terms; --use_llm incurs external LLM API token fees.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Marker CLI (marker_single) Agent Rules
- Always specify `--output_dir <dir>` and `--output_format json` (or `markdown`/`chunks`).
- Do not pass `--use_llm` unless the user explicitly approves sending document pages to an external LLM API.
- Check GPU/RAM availability before running large multi-hundred-page PDFs.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect Marker single-file CLI options
marker_single --help

Lists supported --output_format options, page ranges, and LLM enhancement flags.

Controlled Writes & Previews

Convert a PDF into structured JSON blocks
marker_single input.pdf --output_format json --output_dir ./marker_out

Extracts layout blocks and text into JSON files inside ./marker_out without external API calls.

Strengths for Agents

  • + Supports --output_format json and chunks tailored for downstream RAG ingestion.
  • + High accuracy on complex scientific layouts, equations, and multi-column PDFs.

Caveats & Pitfalls

  • ! GPL-3.0 license and model weight commercial restrictions apply.
  • ! Heavy PyTorch and model-weight footprint causes slow cold starts on CPU-only machines.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI