# anymd [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/SylphxAI/anymd  
**GitHub Stars:** 1077  
**npm Downloads (last month):** 25249  
**Views:** 13  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/anymd

## Description
Any file → clean Markdown for AI agents: PDF, Office, EPUB, HTML, images. Local Rust MCP server.

## Tools
Capabilities this server exposes over MCP:

- **inspect** — Document and media evidence when Markdown is not enough. video_timeline (bounded scene/cue timeline) and render_frame (actual decoded frames), and cite_check (quote/location support, not semantic truth), are anymd Pro; PDF operations: inspect (page facts, metadata), render_page (PNG images), extract_regions (crop bounding boxes), ocr_pages / analyze_regions (configured OCR or vision provider), structure (JSON with document map, elements, geometry; profile quality|research adds trust and accessibility reports), compare (page-level diff of sources[0] vs sources[1]).
- **outline** — Return a document heading tree with stable node ids, title paths, page/slide/chapter ranges and Markdown byte ranges. PDF bookmarks or detected headings, Word headings, PowerPoint slides, EPUB chapters and headings, HTML and Markdown. format json (default) or tree. Pass a node id to read to fetch that section.
- **read** — Read any document as clean Markdown: PDF, Word (DOCX), PowerPoint (PPTX), Excel (XLSX/XLS/ODS), CSV, EPUB, HTML or a web URL, Markdown/text, images (metadata + OCR), audio/video (metadata, chapters, subtitles). Pages/slides/sheets carry <!-- page N --> style markers for citation. Long documents stop at max_tokens (default 20000) and end with a cursor to continue; choose pages with pages: "1-5,8". A directory returns its readable files.
- **search** — Search documents for text: one file, many files, whole directories (recursive, .gitignore aware), or URLs, across every format read supports. Returns each hit as file + page/slide/sheet + a snippet with the match in bold. mode auto (default) finds the exact phrase and falls back to BM25-ranked passages when there is none; literal or ranked force one. Narrow directories with glob, e.g. "*.pdf".

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "anymd": {
    "command": "npx",
    "args": ["-y","@sylphx/anymd"]
  }
}
```

## Documentation

## What anymd does

anymd turns a broad set of local and web-readable sources into Markdown that agents can process. Supported inputs include PDF, DOCX, PPTX, XLSX, XLS, ODS, CSV, EPUB, HTML, Markdown, text files, images, audio, video, web URLs, and directories. Depending on the format, output can include OCR text, metadata, chapters, subtitles, transcripts, tables, and page or slide markers such as `<!-- page 3 -->` for citations.

The server exposes four core document workflows: read content, search across files or URLs, inspect document evidence, and retrieve an outline. It is suited to local knowledge work, document question answering, and agents that need to locate source passages rather than rely on one large conversion result.

## How it works

The MCP process communicates over standard input and output. The npm package installs or invokes a native binary for the host platform, and the server performs conversion on the local machine. Directories can be searched recursively with `.gitignore` awareness, and a glob can narrow the search, such as `*.pdf`.

`read` returns clean Markdown and accepts page ranges such as `1-5,8`. Long results stop at a configurable token limit, defaulting to 20,000 tokens, and provide a cursor for continuation. `outline` returns stable node IDs, title paths, page, slide, or chapter ranges, and Markdown byte ranges; passing a node ID to `read` retrieves that section.

## Setup and configuration

Node.js 18 or newer is required for the npm route:

```bash
npx -y @sylphx/anymd setup
```

This setup command adds anymd to supported MCP clients on the machine. A manual stdio configuration runs `npx -y @sylphx/anymd`. The server can be restricted to a directory with `--allow-dir=/path/to/docs`.

The package also supports global npm installation, Homebrew on macOS and Linux, Docker images for amd64 and arm64, and a Rust installation with `cargo install anymd`. Prebuilt binaries are supplied through npm, pip, and Docker; building from source requires Rust 1.95+, CMake, and a C++ compiler.

OCR and local speech-to-text require explicit opt-in to download or use their supporting models. OCR can use installed local document-vision models or Tesseract, while transcripts use ffmpeg and the bundled Qwen3-ASR model.

## Tools and capabilities

- `read` converts supported documents, media, images, URLs, and directories into Markdown.
- `search` finds exact or ranked passages in one file, multiple files, directories, or URLs. Results identify the source and page, slide, or sheet and bold the matching text.
- `outline` builds heading trees for PDFs, Word, PowerPoint, EPUB, HTML, and Markdown.
- `inspect` provides PDF facts and metadata, rendered pages, cropped regions, OCR or vision analysis, structure JSON, and page-level comparison. Pro capabilities include video timelines, decoded video frames, and quote-location checks.
- PDF structure profiles can add document-map, trust, and accessibility reports; `quality` and `research` profiles control the additional reporting.

## Limitations and notes

The server is designed for local execution and does not upload files in its local mode. OCR and audio transcription depend on optional local components and models. Large documents may require multiple `read` calls using the returned cursor. The `cite_check` capability checks quote and location support, not whether a claim is semantically true.

_Full upstream README: https://allmcps.com/mcp/anymd/readme_

