# PDF to Text MCP: OCR, DOCX & RAG Chunks

> PDF to Text MCP: OCR, DOCX & RAG Chunks is a paid MCP server for files and documents. Converts PDF and Word links to Markdown with OCR and RAG-ready chunks for AI agents. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web
- **Website:** https://apify.com/publicrecords/pdf-docx-to-markdown
- **Repository:** https://github.com/geminigeorge22/publicrecords-mcp/tree/HEAD/servers/pdf-docx-to-markdown-mcp
- **MCP Registry name:** io.github.GeminiGeorge22/pdf-docx-to-markdown-mcp
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-27

## About

This hosted MCP server gives AI clients a way to pull text out of PDF and DOCX files hosted at public URLs. The tool calls run the publicrecords/pdf-docx-to-markdown Actor on the caller's own Apify account, so usage is billed through Apify rather than through the MCP endpoint itself.

Each document comes back as Markdown with headings, lists, tables and page markers, and the text is split into chunks that carry the heading path above them and character offsets. Scanned pages are read with Tesseract OCR inside the Actor, so no separate OCR or AI API is needed. Users can choose the OCR language and limit conversion to a page range.

The server suits developers building retrieval pipelines over reports, papers or contracts, and agents that need the body of a linked document as clean text. Password-protected files, non-PDF or DOCX links, and handwriting are not handled.

## Features

- **Markdown conversion:** Turns PDF and Word files into Markdown with headings, lists, tables and page markers.
- **OCR for scanned pages:** Reads pages without a text layer using Tesseract OCR in auto or forced mode.
- **RAG-ready chunking:** Splits text by headings and sentences, with configurable chunk size and overlap.
- **Heading path metadata:** Each chunk records the heading path above it for context in retrieval.
- **Page range selection:** Convert only chosen pages, such as 1-5,8 or 10-last.
- **Multi-language OCR:** Choose OCR language for non-English scans from a set of supported languages.

## Good for

- Building a RAG search index over a folder of PDF reports
- Letting an AI agent read the text of a contract or paper from a link
- Converting scanned archive documents to searchable Markdown in bulk
- Preparing document chunks for a vector database or LLM prompt

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http pdf-docx-to-markdown-mcp 'https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown'
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add pdf-docx-to-markdown-mcp --url 'https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown'
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.pdf-docx-to-markdown-mcp]
url = "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "httpUrl": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http pdf-docx-to-markdown-mcp 'https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown'

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "serverUrl": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "type": "streamableHttp",
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pdf-docx-to-markdown-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown
```

Enter a Name (for example "PDF to Text MCP: OCR, DOCX & RAG Chunks"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pdf-docx-to-markdown-mcp": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=publicrecords/pdf-docx-to-markdown"
    }
  }
}
```

## FAQ

### Does PDF to Text MCP: OCR, DOCX & RAG Chunks work on scanned PDFs?

Yes. With OCR set to Auto, pages without a text layer are read with OCR.

### Can I convert only some pages?

Yes, a page range such as 1-5,8 or 10-last can be set.

### Why did a file produce no output?

The run status message and RUN_SUMMARY record name each skipped URL and the reason, such as a non-PDF/DOCX file, HTTP error or password protection.

### Can an AI agent call PDF to Text MCP: OCR, DOCX & RAG Chunks?

Yes, through the Apify API or Apify's MCP server with a list of URLs in documentUrls.

### Is PDF to Text MCP: OCR, DOCX & RAG Chunks free?

No. PDF to Text MCP: OCR, DOCX & RAG Chunks is a paid product.

### How do I add PDF to Text MCP: OCR, DOCX & RAG Chunks to Claude Code?

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

### What are the best alternatives to PDF to Text MCP: OCR, DOCX & RAG Chunks?

The closest alternatives to PDF to Text MCP: OCR, DOCX & RAG Chunks are PDF and Word to Markdown for RAG, PDF to Text & Markdown (OCR), PDF to Markdown & Document Parser, PDF Text Extractor and Doc To Markdown.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [PDF and Word to Markdown for RAG](https://ai-powered.com/mcp/pdf-and-word-to-markdown-for-rag): PDF and Word to Markdown for RAG is a paid MCP server for files and documents.
- [PDF to Text & Markdown (OCR)](https://ai-powered.com/mcp/pdf-to-text-and-markdown-ocr): PDF to Text & Markdown (OCR) is a paid MCP server for files and documents.
- [PDF to Markdown & Document Parser](https://ai-powered.com/mcp/pdf-to-markdown-and-document-parser): PDF to Markdown & Document Parser is a paid MCP server for files and documents.
- [PDF Text Extractor](https://ai-powered.com/mcp/pdf-text-extractor-2): PDF Text Extractor is a paid MCP server for files and documents.
- [Doc To Markdown](https://ai-powered.com/mcp/doc-to-markdown): Doc To Markdown is an MCP server for files and documents.
- [Document to Markdown for LLM & RAG](https://ai-powered.com/mcp/document-to-markdown-for-llm-and-rag): Document to Markdown for LLM & RAG is a paid MCP server for files and documents.
- [lintlab PDF To Markdown](https://ai-powered.com/mcp/lintlab-pdf-to-markdown): lintlab PDF To Markdown is a paid MCP server for files and documents.
- [PDF & Document to Markdown](https://ai-powered.com/mcp/pdf-and-document-to-markdown): PDF & Document to Markdown is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/pdf-to-text-mcp-ocr-docx-and-rag-chunks
