anymd is a free, open source publishing project written in Rust and released under MIT. It has 939 GitHub stars, 83 forks and 0 open issues, and was last pushed 6 hours ago. On this registry it ranks #35 of 51 tracked projects in Publishing, with 5 head-to-head comparisons available.

What is anymd?

anymd is an open-source Rust MCP server and command-line tool that converts PDFs, Word documents, PowerPoint decks, Excel workbooks, EPUB files, HTML and web pages, images, audio and video into clean Markdown for AI agents, running on the user's own machine with no API key.

What it is

anymd is a document conversion server built for the Model Context Protocol, the interface AI agents use to call external tools. It is written in Rust, distributed through npm as @sylphx/anymd, and runs locally, exposing its converters to any MCP client that speaks the protocol over standard input and output. The project was previously published as pdf-reader-mcp, and a migration guide covers the rename.

The problem it solves is the gap between the documents people already have and the plain text a language model can read. Instead of uploading files to a conversion service or wiring up a separate tool for each format, one MCP tool handles PDF, DOCX, PPTX, XLSX, EPUB, HTML, images, audio and video, and also accepts web URLs and whole directories. Its topic list positions it explicitly as a markitdown alternative.

Key capabilities

  • A single tool covers every supported format; it also accepts web URLs and whole directories, and a search operation looks across all of them.
  • Native Rust conversion runs in parallel, page by page, taking 12.1 seconds in total across the 19 benchmark documents that every compared tool converted.
  • A layout engine rebuilds words from glyph gaps, restores reading order in two-column papers, and recovers tables, including borderless ones.
  • Output is Markdown with citation anchors, a small front-matter header and compact tables, plus a token budget and a cursor that keep large documents inside an agent's context.
  • OCR and transcription use local tools already on the machine — tesseract, ffmpeg and whisper.cpp — and run only when those are installed.
  • The setup command, npx -y @sylphx/anymd setup, registers the server with every MCP client on a machine, with --dry-run to preview and --remove to undo.
  • The same package serves as both an MCP server and a CLI; Node 18+ is the only requirement, and npm installs the native binary for the host platform.

Who uses it and how

  • Users of Claude Code, Codex, Cursor, VS Code, Claude Desktop, Windsurf and Gemini CLI add it with one command, or by hand with npx -y @sylphx/anymd.
  • Claude Code users can take it as a plugin with the anymd skill, through /plugin marketplace add SylphxAI/anymd and /plugin install anymd@anymd.
  • Other clients that speak MCP over stdio, such as Windsurf, Zed and Cline, point at the same command and arguments.
  • Retrieval and RAG pipelines aim it at directories of documents or at web URLs and use search across the corpus.
  • Privacy-sensitive teams keep conversion on the machine, since nothing is uploaded.

Getting started

Run npx -y @sylphx/anymd setup to configure every MCP client installed on the machine, or add the command npx -y @sylphx/anymd to a single client's configuration by hand. Node 18+ is the only requirement.

How it compares

The facts name markitdown, docling and marker as the nearest comparable tools, and anymd is tagged as a markitdown alternative. On the project's own 19-document benchmark, anymd finishes in 12.1 seconds against 45.4 seconds for markitdown, 1,723.3 seconds for docling and 5,256.3 seconds for marker. Those figures are the project's published measurements rather than an independent evaluation.

When to use it — and when not to

Self-hosting means accepting Node 18+ and an npm-installed native binary, and getting OCR or transcripts only where tesseract, ffmpeg or whisper.cpp are already installed and maintained. Anyone who wants a managed conversion service, or who cannot install local tooling, should look elsewhere, and the speed claim covers only the 19 documents that every compared tool could convert. The project is MIT-licensed, has no open issues, and was last pushed in September 2026.

project readme (upstream, from github) — read inline

PDF, Word, PowerPoint, Excel, EPUB, HTML and web pages, images (OCR), audio and video (metadata, subtitles, transcripts). A fast Rust MCP server and CLI that runs on your machine. No API key.

npm downloads stars MCP registry license agent-ready 93/100

Install · Benchmarks · Tools · CLI · Formats · Docs

Formerly pdf-reader-mcp. Migrating from pdf-reader-mcp

A real, unedited terminal recording (asciinema + agg, script). The last command is Claude Code answering from the PDF through the anymd MCP server.

Why anymd

  • Fast. Native Rust converts in parallel, page by page. On the 19 benchmark documents every tool converted, anymd takes 12.1 s in total; docling 1,723.3 s (143×), markitdown 45.4 s (4×), marker 5,256.3 s (435×).

  • Accurate. A layout engine rebuilds words from glyph gaps, puts two-column papers in reading order, and recovers tables, including borderless ones. The text stays exactly as printed, with no glued words and no scrambled columns.

  • Lean on tokens. Pages come back as Markdown with `` citation anchors, a small front-matter header, and compact tables. A token budget and a cursor keep large documents within your agent's context.

  • Every format, one call. One tool reads every format listed below. It also accepts web URLs and whole directories, and search looks across all of them.

  • Local and private. Nothing is uploaded. OCR and transcripts use local tools you already have (tesseract, ffmpeg, whisper.cpp), and only when they are installed.

Install

Add anymd to every MCP client on your machine (Claude Code, Codex, Cursor, VS Code, Claude Desktop, Windsurf, Gemini CLI) with one command:

npx -y @sylphx/anymd setup     # --dry-run to preview, --remove to undo

Or add it by hand: every MCP client runs the same command, npx -y @sylphx/anymd. Node 18+ is the only requirement; npm installs the native binary for your platform.

Claude Code
claude mcp add anymd -- npx -y @sylphx/anymd

Or as a plugin, with the anymd skill: /plugin marketplace add SylphxAI/anymd, then /plugin install anymd@anymd.

Codex
codex mcp add anymd -- npx -y @sylphx/anymd

or in ~/.codex/config.toml:

[mcp_servers.anymd]
command = "npx"
args = ["-y", "@sylphx/anymd"]
Cursor

Add to Cursor

or in .cursor/mcp.json:

{ "mcpServers": { "anymd": { "command": "npx", "args": ["-y", "@sylphx/anymd"] } } }
VS Code
code --add-mcp '{"name":"anymd","command":"npx","args":["-y","@sylphx/anymd"]}'

or in .vscode/mcp.json:

{ "servers": { "anymd": { "type": "stdio", "command": "npx", "args": ["-y", "@sylphx/anymd"] } } }
Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

{ "mcpServers": { "anymd": { "command": "npx", "args": ["-y", "@sylphx/anymd"] } } }
Windsurf, Zed, Cline, and other clients

Any client that speaks MCP over stdio: command npx, args ["-y", "@sylphx/anymd"]. To keep the server inside one folder, add --allow-dir=/path/to/docs.

CLI only
npm install -g @sylphx/anymd     # or run it once with: npx -y @sylphx/anymd <file>

Benchmarks

AgentDocBench is an open benchmark for document → Markdown conversion for agents: license-clean documents in 12 categories (math papers, two-column papers, financial tables, forms, scans, CJK, slides, spreadsheets, Word, EPUB, HTML), scored on verbatim sentences, text F1, reading order, and table cells, with time and output tokens. Every tool runs on the same kind of GitHub-hosted runner (4 CPUs):

anymd docling kreuzberg unstructured markitdown marker pdftotext
Overall score 96.3 93.0 81.7 81.2 76.8 71.0 42.2
Table cells F1 92.2 89.9 38.4 38.4 57.2 60.9 0.0
Reading order 98.8 94.4 96.8 93.9 85.5 76.8 52.0
Docs converted 38/38 38/38 38/38 38/38 38/38 30/38 23/38
Time, all docs 22.9 s 2,432.4 s 16.0 s 346.5 s 75.6 s 7,104.5 s 0.90 s

The generated leaderboard, per-category scores (including where anymd loses), and method are in the benchmark guide. The corpus, ground truth, adapters, and raw results are in bench/, and the Benchmark workflow reruns everything; new tools can join with a single adapter file.

MCP tools

anymd exposes three tools.

Tool Use it to Key arguments
read Turn a file, URL, or folder into Markdown source, pages ("1-5,8"), max_tokens (default 20000), cursor, ocr, transcript, download_whisper_model
search Find text across files, folders, and URLs query, sources, mode (auto · literal · ranked), glob, max_results
inspect Go deeper on a PDF operation: render_page, extract_regions, ocr_pages, structure (JSON with geometry), compare, inspect

A read answer looks like this:

---
source: papers/attention.pdf
title: Attention Is All You Need
pages: 15
showing: pages 1-9
---

<!-- page 1 -->

# Attention Is All You Need
…

<!-- page 8 -->

|Model|BLEU EN-DE|BLEU EN-FR|
|-|-|-|
|Transformer (big)|28.4|41.8|
…

<!-- Stopped at the 20000-token budget. Continue with cursor: "10", or pick pages, or raise max_tokens. -->

search answers with one line per hit:

5 matches for "masked language model" (2 files, 31 sections searched)

### papers/bert.pdf (5)
- p.1: …by using a “**masked language model**” (MLM) pre-training objective, inspired by the Cloze task…
- p.2: …In addition to the **masked language model**, we also use a “next sentence prediction” task…

If nothing matches exactly, search falls back to BM25-ranked passages, so a question like "how does bidirectional pretraining work" still finds the right page.

CLI

The same binary is a command-line converter, like MarkItDown but much faster:

anymd report.pdf > report.md                 # a file
anymd deck.pptx notes.docx budget.xlsx        # several files, each with a header
anymd https://example.com/article            # a web page (main content only)
cat scan.png | anymd - --ocr                 # stdin, with OCR
anymd paper.pdf --pages 1-3 --max-tokens 4000
anymd search "indemnification" contracts/ --glob '*.pdf'
anymd doctor                                 # lists the optional tools anymd found

Run with no arguments from an MCP client (piped stdin), or as anymd mcp, and it serves MCP over stdio.

Formats

Input What you get
PDF Reading-order Markdown: headings, paragraphs, lists, tables, sub/superscripts, `` markers, bookmarks as an outline. Running headers and page numbers are removed. Image-only pages are OCR'd when tesseract is installed.
Word .docx Headings, bold/italic, links, nested lists, tables with merged cells, footnotes, equations as LaTeX
PowerPoint .pptx One section per slide in deck order, titles, bullets, tables, chart data, speaker notes
Excel .xlsx .xls .ods · CSV/TSV One table per sheet, dates as ISO strings, capped at 2,000 rows per sheet
EPUB One section per chapter in spine order, plus title and author
HTML and URLs The main article only: navigation, cookie banners, and sidebars are dropped. Relative links are resolved, and code keeps its language.
Markdown, text, JSON Returned unchanged, with pagination
Images Dimensions and EXIF (camera, date, GPS), plus OCR text when tesseract is installed
Audio / video Duration, streams, chapters, embedded and sidecar subtitles (via ffprobe/ffmpeg). Local whisper.cpp transcript with transcript: true; download_whisper_model: true fetches a verified model on first use.

How it works

For PDFs, anymd reads glyph positions rather than text runs. Glyphs are grouped into lines by baseline, which tolerates super- and subscripts. Word spaces come from the gaps between glyphs, measured against the font size and adjusted for letter tracking. A column-aware XY cut finds gutters between running text. Tables come from drawn lines where a table has them (a missing line between two cells makes a merged cell) and from aligned columns of whitespace where it does not. Wrapped cell text stays in its cell, stacked header lines become one header, and a header over several columns is kept with each of them. Text a reader cannot see (invisible text, or text in the colour of the box behind it) is left out. Pages are processed in parallel and isolated from each other, so one malformed page never fails the whole document. The other formats are parsed natively in Rust (zip/XML, calamine, html5ever); no Python, LibreOffice, or cloud service is involved.

Security

  • Local-first: documents never leave your machine unless you pass a URL, and even then only that URL is fetched.
  • URL fetches block private and loopback addresses, and every redirect hop is checked again, pinned to its resolved address.
  • --allow-dir= (repeatable) or MCP_PDF_ALLOWED_DIRS confines the server to the directories you list.
  • External tools (tesseract, ffprobe, whisper.cpp) are optional. anymd runs them without a shell, with a timeout and an output cap.

See SECURITY.md to report a vulnerability.

Also from Sylphx

  • repomap: A map of your codebase for AI agents: code graph, search, call paths and change impact — with an interactive graph UI. Rust MCP server + CLI. Local, no API key, MIT.
  • lockdocs: Exact-version library docs from your lockfile — local, offline, no rate limits.
  • readme-mark: Beautiful README images from one URL — animated banners, shields-compatible badges, typing text, 3000+ tech icons, GitHub stats cards. Free, no token, drop-in for shields / capsule-render / skill-icons / readme-typing-svg / github-readme-stats.

Star history

Star History Chart

License

MIT © Sylphx

Frequently asked questions

Is anymd free to use?

anymd is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does anymd do?

Any file → clean Markdown for AI agents: PDF, Word, PowerPoint, Excel, EPUB, HTML and web pages, images (OCR), audio and video (metadata, subtitles, transcripts

What is anymd written in?

anymd is primarily written in Rust. Its source is publicly available at https://github.com/SylphxAI/anymd, and it has 939 GitHub stars.