Skip to content
MCP server

Document to Markdown for LLM & RAG

Converts PDFs, Office files and scans to Markdown or RAG chunks, priced per page

Install
Pricing
Paid
Platforms
API, Web
Runs
Remotely
Version
1.0.0
Listing updated
2 days ago

About Document to Markdown for LLM & RAG

Document to Markdown for LLM & RAG is a paid MCP server for files and documents. It runs as a hosted remote server, so there is nothing to install locally.

Headings are rebuilt from font sizes and weights, lists stay lists, tables become Markdown tables and running headers, footers and page numbers are dropped. Pages with a text layer are read directly; Tesseract OCR runs only on scanned pages and images, in 25 languages.

Output is either one Markdown file per document or JSON chunks split by heading or by token count (default 512 with 64 overlap), each carrying page_start, page_end, heading_path and a token count. Input can be file URLs, uploaded files, key-value store entries or a dataset of links from another crawler, and Google Drive, Dropbox and GitHub share links are converted to direct downloads. Slides become one page each with speaker notes; spreadsheets become one table per sheet.

It runs as an Apify Actor behind a hosted MCP endpoint. Only pages that produced text are billed; failed, encrypted and empty files are free.

Install

Run in a terminal

claude mcp add --transport http doc-to-markdown 'https://mcp.apify.com/?tools=tidewell/doc-to-markdown'

Add to Settings → Connectors → Add custom connector

https://mcp.apify.com/?tools=tidewell/doc-to-markdown
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "doc-to-markdown": {
      "url": "https://mcp.apify.com/?tools=tidewell/doc-to-markdown"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "doc-to-markdown": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=tidewell/doc-to-markdown"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "doc-to-markdown": {
      "serverUrl": "https://mcp.apify.com/?tools=tidewell/doc-to-markdown"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "doc-to-markdown": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=tidewell/doc-to-markdown"
    }
  }
}

What it does

Heading-aware Markdown
Reconstructs headings, lists and tables from PDF layout and Office structure.
Built-in OCR
Reads scanned pages and images with Tesseract in 25 languages.
RAG chunks
Splits by heading or token count with page range and heading path metadata.
Many formats
PDF, DOCX, PPTX, XLSX, HTML, EPUB, CSV and common image formats.
Image extraction
Can save embedded images to a key-value store and link them from the Markdown.
Page markers
Optionally inserts page comments so answers can cite page numbers.

Good for

  • Build a RAG knowledge base from manuals and contracts
  • Turn scanned invoices or letters into searchable text
  • Load slide decks and spreadsheets into a vector store
  • Convert pages found by a crawler into Markdown for an agent

Pricing

Paid

About $0.30 per 1,000 pages; requires an Apify account

Prices change. Check tidewellsoftware.com before you buy.

Document to Markdown for LLM & RAG FAQ

Is OCR always on?

OCR is on by default but runs only on pages without a text layer; forceOcr overrides that.

Can it open password-protected PDFs?

Yes, through the pdfPassword option; encrypted files without a password fail and are not charged.

What size limits apply?

Defaults are 100 MB per file, 300 seconds per document and three concurrent conversions.

Is Document to Markdown for LLM & RAG free?

No. Document to Markdown for LLM & RAG is a paid product.

How do I add Document to Markdown for LLM & RAG to Claude Code?

Run this command in your terminal: claude mcp add --transport http doc-to-markdown 'https://mcp.apify.com/?tools=tidewell/doc-to-markdown'

What are the best alternatives to Document to Markdown for LLM & RAG?

The closest alternatives to Document to Markdown for LLM & RAG are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and note1.

Alternatives to Document to Markdown for LLM & RAG

  1. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  2. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  3. MCP server for searching the Claude Code Ultimate Guide from any MCP client

    Runs locally
    • Open source
    • 6.5K GitHub stars
    • AI models and LLM tooling
  4. Local-first long-term memory layer for AI agents, served over MCP

    Not checked yet
    • 5 tools
    • Remote
    • Open source
    • 1.3K GitHub stars
    • Knowledge and memory
  5. note1

    MCP server

    MCP server giving AI assistants search and summaries across your note1 meetings

    • 4 tools
    • Remote
    • Free trial
    • 1 GitHub star
    • Productivity
  6. ASTra

    MCP server

    Let agents read, edit, validate and undo Word .docx files with exact operations

    Runs locally
    • 5 tools
    • Freemium
    • Files and documents