by SylphxAI
Any file → clean Markdown for AI agents: PDF, Word, PowerPoint, Excel, EPUB, HTML, images. Fast Rust MCP server + CLI. Local, no API key.
# Add to your Claude Code skills
git clone https://github.com/SylphxAI/anymdLast scanned: 9/25/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-09-25T09:24:50.493Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how anymd compares with popular alternatives.
anymd is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by SylphxAI. Any file → clean Markdown for AI agents: PDF, Word, PowerPoint, Excel, EPUB, HTML, images. Fast Rust MCP server + CLI. Local, no API key. It has 934 GitHub stars.
Yes. anymd passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/SylphxAI/anymd" and add it to your Claude Code skills directory (see the Installation section above).
anymd is primarily written in TypeScript. It is open-source under SylphxAI on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh anymd against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Any file → clean Markdown for AI agents.
PDF, Word, PowerPoint, Excel, EPUB, HTML, images, audio/video. A fast Rust engine running on your machine, available as an MCP server and a CLI. No API key.
Install · Benchmarks · Tools · CLI · Formats · Docs
Formerly pdf-reader-mcp / Citra. @sylphx/pdf-reader-mcp and @sylphx/citra still install and run anymd.
<!-- page 3 --> citation anchors, a small front-matter header, and compact tables. A token budget and a cursor keep large documents within your agent's context.search looks across all of them.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 mcp add anymd -- npx -y @sylphx/anymd
codex mcp add anymd -- npx -y @sylphx/anymd
or in ~/.codex/config.toml:
[mcp_servers.anymd]
command = "npx"
args = ["-y", "@sylphx/anymd"]
or in .cursor/mcp.json:
{ "mcpServers": { "anymd": { "command": "npx", "args": ["-y", "@sylphx/anymd"] } } }
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"] } } }
Add to claude_desktop_config.json (Settings → Developer → Edit Config):
{ "mcpServers": { "anymd": { "command": "npx", "args": ["-y", "@sylphx/anymd"] } } }
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.
npm install -g @sylphx/anymd # or run it once with: npx -y @sylphx/anymd <file>
Twelve real documents (papers, a two-column paper, statistical tables, CJK, a form, a borderless-table invoice, plus DOCX, PPTX, XLSX, EPUB, and a Wikipedia page), run on a GitHub-hosted runner with 4 CPUs:
| anymd | docling | MarkItDown | kreuzberg | pdftotext | |
|---|---|---|---|---|---|
| Total time, 12 documents | 0.40 s | 964 s | 22.5 s | 2.8 s | 0.36 s ¹ |
| Sentences intact (12) | 12 | 11 | 5 | 12 | 12 |
| Table rows recovered (26) | 26 | 25 | 15 | 0 | 0 |
| Reading order correct (5) | 5 | 3 | 3 | 5 | 5 |
| Output tokens (o200k) | 98.6k | 126.4k | 144.7k | 125.0k | 74.1k ¹ |
¹ pdftotext reads PDFs only and outputs plain text without tables.
On the 15-page Attention Is All You Need paper, anymd takes 0.13 s, docling 76 s, and MarkItDown 3.0 s, and MarkItDown glues the words together ("dominantsequencetransductionmodels"). On the Wikipedia article, anymd's main-content extraction uses 21.7k tokens; docling uses 37.6k, kreuzberg 51.7k, and MarkItDown 54.6k.
Each tool runs as a fresh process, and every number is the median of 3 runs (docling runs once, after its models are warmed up). Tokens are counted with o200k_base. Sentences intact counts reference sentences that come out verbatim; glued words or split columns fail the check. Table rows counts ground-truth rows that come out as one Markdown table row with the cells in order. The method, corpus, ground truth, raw results, and scripts are in bench/, and the Benchmark workflow re-runs everything on GitHub-hosted runners.
The official @modelcontextprotocol/server-pdf is left out of the table because it has no headless text path. It renders PDFs in an interactive viewer, and its read_pdf_bytes tool returns base64-encoded bytes.
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 |
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.
The pdf-reader-mcp tool names (read_pdf, search_pdf, pdf_evidence, pdf_compare) still work for this major version. They no longer appear in tools/list.
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.
| Input | What you get |
|---|---|
Reading-order Markdown: headings, paragraphs, lists, tables, sub/superscripts, <!-- page N --> 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. |
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. Rows whose cells line up become pipe