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

mdcat

$ mdcat Community Low Risk
mdcat · Design & Docs · MPL-2.0 · macos / linux / windows

mdcat renders CommonMark Markdown to ANSI terminal output with syntax-highlighted code blocks, clickable links, and inline images in supported terminal emulators. Designed primarily for human terminal viewing rather than machine parsing; pass --no-pager to guarantee direct stdout output without spawning a pager.

FCRS-1.0 Score
74 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install mdcat
CLI vs MCP Decision CLI Only

Strictly a local terminal pretty-printer; agents should read raw .md files directly rather than rendering ANSI output through mdcat.

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

Built for human ANSI terminal formatting rather than agent consumption; --no-pager and --no-colour prevent hangs and escape noise, but there is no JSON output and -p opens an interactive pager.

  • Human-facing ANSI/image renderer with no --json mode
  • --no-pager disables interactive pager blocking
Trust & Safety 24 / 25

Strictly read-only terminal viewer with zero filesystem writes or credentials.

  • Read-only file inspection
Setup & Portability 13 / 15

Single Rust binary installable via Homebrew, Cargo, and GitHub releases across macOS, Linux, and Windows.

  • brew install mdcat and cargo install mdcat
Utility & Efficiency 9 / 15

Helpful when presenting formatted Markdown to humans in a terminal, though redundant for coding agents that already parse raw Markdown.

  • Primarily serves human terminal readability
Maintenance & Lineage 7 / 10

Community-maintained Rust tool (swsnr/mdcat) under MPL-2.0.

  • Open-source swsnr/mdcat repository
Docs & Verifiability 7 / 10

Clear README and man page documenting terminal capabilities and --no-pager / -p flags.

  • Documented in GitHub README

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; read-only local Markdown renderer.

Side Effects
Read-Only
Cost & Quotas

100% free, offline, and MPL-2.0 open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# mdcat Agent Rules
- Prefer reading raw `.md` files directly instead of invoking `mdcat` inside an LLM loop.
- If invoking `mdcat` for a user terminal preview, pass `--no-pager` (and avoid `-p`) so it never blocks in `less`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Render Markdown to stdout without paging
mdcat --no-pager --no-colour README.md

Prints rendered Markdown directly to stdout without ANSI colors or an interactive pager.

Strengths for Agents

  • + Strictly read-only with zero risk of modifying Markdown files.
  • + Fast single Rust binary with --no-pager and --no-colour escape hatches.

Caveats & Pitfalls

  • ! Passing -p (--paginate) or invoking as mdless spawns an interactive pager that blocks non-TTY agents.
  • ! Output is ANSI-styled text for human terminals, adding noise if consumed by an LLM.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI