# Connect Claude Code, Cursor, and Codex to an Open-Source PDF OCR Engine via Remote MCP

> Source: <https://dev.to/alwaysmavs/connect-claude-code-cursor-and-codex-to-an-open-source-pdf-ocr-engine-via-remote-mcp-2ca2>
> Published: 2026-12-05 07:12:22+00:00

**Key takeaway:** PDFCraft's hosted Streamable HTTP MCP server at api.pdfcraft.ai/v1/mcp can be added to Claude Code or Codex with a single command and supports OAuth 2.1 or Bearer API keys, giving agents clean Markdown/EPUB extraction from multi-column and scanned PDFs.

Most AI coding agents struggle the moment you hand them a scanned book, a two-column academic PDF, or a technical manual full of LaTeX formulas and footnotes. Standard text extractors scramble columns, repeat running headers on every page, and lose table structure.

We built **[PDFCraft](https://pdfcraft.ai)** (backed by the MIT-licensed open-source library **[oomol-lab/pdf-craft](https://github.com/oomol-lab/pdf-craft)**, **6,800+ GitHub stars**, archived on CERN Zenodo at [DOI 10.5281/zenodo.24855404](https://doi.org/10.5281/zenodo.24855404)) to reconstruct clean reading order, Markdown, reflowable EPUB, and 22-language translations from complex PDFs.

Today, in addition to running `pip install pdf-craft` locally or using the [online workspace](https://pdfcraft.ai), you can connect AI agents directly to PDFCraft over **Remote MCP (Streamable HTTP)** or the **Public REST API**.

`Streamable HTTP`)
PDFCraft exposes a hosted Streamable HTTP MCP server at:

```
https://api.pdfcraft.ai/v1/mcp
```

It supports **OAuth 2.1** (scope `pdfcraft:use`, browser sign-in with zero key copying) or a standard **Bearer API key** (from [pdfcraft.ai/api-keys](https://pdfcraft.ai/api-keys)), and is listed in the Official MCP Registry under `io.github.oomol-lab/pdf-craft`.

```
claude mcp add --transport http -s user pdfcraft https://api.pdfcraft.ai/v1/mcp
codex mcp add pdfcraft --url https://api.pdfcraft.ai/v1/mcp
```

`mcp.json`)

```
{
  "mcpServers": {
    "pdfcraft": {
      "url": "https://api.pdfcraft.ai/v1/mcp"
    }
  }
}
```

Full setup instructions for every client live at [pdfcraft.ai/connect/](https://pdfcraft.ai/connect/).

```
  pip install pdf-craft
  # Or with local NVIDIA CUDA GPU acceleration:
  pip install "pdf-craft[local]"
```

`oomol/pdf-craft`)
If you run into tricky multi-column papers or historical scans, drop an issue on [github.com/oomol-lab/pdf-craft](https://github.com/oomol-lab/pdf-craft) and let us know what layout edge cases you want improved next.
