Best Tools to Turn PDFs and Office Files into Markdown for AI Agents

Language models read text, not PDFs. To let an agent use a contract, a paper or a spreadsheet you first need a converter that preserves reading order, tables and headings, and that produces output small enough to fit in the context window.

The tools below range from MCP servers you add to Claude or Cursor to document-extraction engines for pipelines, and a desktop app that indexes local folders. Look at the formats you need, whether OCR is included, and whether anything is uploaded.

AgentIndex · Updated 2026-10-14

From a file to something an agent can use

List your formats first, and check whether processing stays on your machine.

  1. 1Read

    Pull text, images and metadata from a PDF.

  2. 2Convert

    Turn many formats into Markdown or text.

  3. 3Index and share

    Index folders and serve them to assistants over MCP.

Quick picks

  • anymd — Rust MCP server and CLI that converts PDF, Office, EPUB, HTML, images, audio and video to Markdown locally, with no API key.
  • Xberg (Kreuzberg successor) — Rust document extraction engine for 57+ formats with bindings for nine languages; pick it for pipelines rather than chat.
  • markdownify-mcp — simple MCP server that converts files and web content to Markdown.
  • kordoc — converts Korean HWP/HWPX, PDF and Office files to Markdown, with CLI and MCP.
  • stashbase — desktop app that indexes local folders of documents and shares them with Claude and Codex over MCP; semantic search is optional and uses OpenAI or OpenRouter.

Side-by-side comparison

ToolWhat it isStarsLicenseLast pushMaintenanceReleases, 90 daysCommits, 12 weeksInstall
anymdMIT Rust MCP server and CLI that turns PDF, Office, EPUB, HTML, images, audio and video into Markdown locally, with no API key1.1kMIT2026-11-07Active18Commits, 12 weeks: 4, 7, 2, 3, 5, 87, 63, 10, 42, 5, 19, 3npm install -g @sylphx/anymd
pdf-reader-mcpMIT MCP server with a single read_pdf tool for text, images and metadata, with parallel page processing; renamed to anymd1.1kMIT2026-11-07Active18Commits, 12 weeks: 4, 7, 2, 3, 5, 87, 63, 10, 42, 5, 19, 3npx @sylphx/pdf-reader-mcp
Xberg (Kreuzberg successor)Kreuzberg’s successor for local document extraction with explicit OCR and batch checks9.6kMIT2026-11-07Active29Commits, 12 weeks: 284, 284, 178, 145, 164, 369, 352, 117, 112, 274, 359, 211python -m pip install "xberg==1.3.9"
markdownify-mcpMCP server that converts files and web content to Markdown3.0kMIT2026-11-05Slowing0Commits, 12 weeks: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0pnpm install
kordocConvert Korean HWP/HWPX, PDF and Office files to Markdown, with CLI and MCP2.9kMIT2026-11-07Active30Commits, 12 weeks: 8, 4, 5, 14, 2, 51, 177, 135, 410, 111, 212, 69npm install kordoc
Skill_SeekersTurn documentation sites, GitHub repos and PDFs into AI skills15.3kMIT2026-09-30Active1Commits, 12 weeks: 0, 18, 1, 1, 33, 10, 3, 0, 0, 0, 0, 0pip install skill-seekers
stashbaseApache-2.0 desktop app that indexes local folders of PDFs, Office files, images, audio and video and shares them with Claude and Codex over MCP1.3kApache-2.02026-11-06Active30Commits, 12 weeks: 116, 99, 84, 145, 99, 29, 12, 31, 113, 90, 57, 69brew install --cask liliu-z/stashbase/stashbase

Tools in this list with an in-depth AgentIndex review: 7/7

How to choose

  • List your formats first: PDF only, Office files, EPUB, web pages, scanned images, or regional formats such as HWP.
  • Check whether processing is local. Several tools here run on your machine with no upload; others call hosted services.
  • For scans you need OCR. Check whether it is built in or needs extra models or tools.
  • Look for page ranges, token budgets and citations. They matter when documents are longer than the context window.
  • Quoted speed and accuracy numbers are the authors' own benchmarks; test on your own documents.

FAQ

How do I let Claude read a PDF through MCP?

Add a document MCP server such as anymd, pdf-reader-mcp or markdownify-mcp to your client, then ask the assistant to read a file path. Restrict the server to the folders it needs, because by default some can read any local file.

Is pdf-reader-mcp the same as anymd?

anymd lists itself as formerly pdf-reader-mcp, from the same authors, and adds more formats such as Office files, images, audio and video. New users should start with anymd.

Do these tools send my documents to a server?

It depends on the tool. anymd runs locally and says nothing is uploaded, while StashBase sends content to OpenAI or OpenRouter only if you turn on its optional semantic search. Check each project's README for what leaves your machine.

How we compiled this list

Tools are chosen by hand from the projects in our index, favouring those we have reviewed in depth. Stars, licence, last-push date and install command come from each repository and are refreshed with the site data. The maintenance column comes from the GitHub API (archived flag, last commit, releases in the last 90 days) and is refreshed daily. We read each project's README and docs; we have not run every tool ourselves, so test before you depend on one.

More lists