Image and PDF OCR MCP Server
# Image and PDF OCR MCP Server
[](https://registry.modelcontextprotocol.io/v0/servers?search=com.mambabuilt/mcp-image-pdf-ocr&limit=1) [](https://www.npmjs.com/package/@mambalabsdev/mcp-image-pdf-ocr) [](https://www.npmjs.com/package/@mambalabsdev/mcp-image-pdf-ocr) [](https://github.com/mambalabsdev/mcp-image-pdf-ocr/blob/main/LICENSE)
An MCP server for the Mamba Labs Image and PDF OCR actor on Apify. Images and scanned PDFs to text.
## What's Inside
- [What it does](#what-it-does)
- [Quick start](#quick-start)
- [Prerequisites](#prerequisites)
- [Example prompts](#example-prompts)
- [Tool](#tool)
- [Inputs](#inputs)
- [Pricing](#pricing)
- [Full actor documentation](#full-actor-documentation)
- [License](#license)
## What it does
Takes image or PDF web addresses and returns one row per image or page with the OCR text, word and line counts, and Tesseract's mean confidence. PDF pages with a text layer are read from it.
All of the work runs on Apify. This package is a thin client that starts the actor run, waits for it, and hands back the dataset rows.
## Quick start
You need Node.js 18 or newer and an Apify account with an API token.
Add this to your Claude Desktop config (`claude_desktop_config.json`), Cursor, or any MCP client:
```json
{
"mcpServers": {
"mamba-image-pdf-ocr": {
"command": "npx",
"args": [
"-y",
"@mambalabsdev/mcp-image-pdf-ocr"
],
"env": {
"APIFY_TOKEN": "your-apify-token"
}
}
}
}
```
Restart the client. The `ocr_images_and_pdfs` tool appears.
## Prerequisites
- Node.js 18 or newer.
- An Apify API token from [console.apify.com/account/integrations](https://console.apify.com/account/integrations), set as `APIFY_TOKEN`. The server lists its tool without a token; a call needs one.
## Example prompts
- "Read the text from this scanned letter PDF."
- "OCR these receipt photos and tell me which ones read poorly."
## Tool
`ocr_images_and_pdfs`. One tool. Example arguments:
```json
{
"urls": [
"https://raw.githubusercontent.com/tesseract-ocr/test/main/testing/phototest.tif"
],
"language": "eng",
"max_pages_per_file": 10
}
```
## Inputs
Every buyer facing input of the actor. Omitted inputs take the actor's own defaults.
| Input | Type | Required | Description |
|---|---|---|---|
| `urls` | array | no | Web addresses of PNG, JPEG, GIF, WebP, BMP, or TIFF images, or PDF files, up to 30 MB each. The address must answer without a login. In Clay, put the column in a one item list. |
| `language` | string | no | Language of the text: eng (default), deu, fra, spa, nld, ita, or por. One language per run; run files in another language as a separate run. |
| `page_layout` | string | no | auto (default) finds columns and blocks, which suits letters, articles, and scans. block reads the page as one block of text. sparse finds scattered text, which suits receipts, forms, signs, and screenshots. |
| `max_pages_per_file` | number | no | Pages to read per PDF, from page 1, up to 100. Default 10. This caps the charge per file. |
| `use_pdf_text_layer` | boolean | no | yes (default): a PDF page that already holds text is read from that text, charged as page-text, which is cheaper and exact. no: every page is read by OCR and charged as page-ocr. |
| `max_files` | number | no | Files to read in this run, up to 1,000. Default 100. |
| `max_charge_usd` | number | no | Optional. The run stops before a charge that would pass this amount. Summary rows are always returned. |
## Pricing
Pay per event on Apify, billed to your Apify account. Prices in USD.
| Event | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|
| `page-ocr`, one image or scanned page read by OCR | $0.02 | $0.019 | $0.018 | $0.017 |
| `page-text`, one PDF page read from its text layer | $0.001 | $0.00095 | $0.0009 | $0.00085 |
| `apify-actor-start`, per run start | $0.005 | $0.005 | $0.005 | $0.005 |
Failed downloads, unsupported files, summaries, and refused input are free. Mamba Labs pays the platform costs of the run, Apify proxy traffic included.
## Full actor documentation
[apify.com/mambalabs/image-pdf-ocr](https://apify.com/mambalabs/image-pdf-ocr)
## License
MIT. See [LICENSE](LICENSE).
TDQS
Scored across 1 tool
With only one tool in the set, there is no possibility of misselection or overlapping purpose. The single tool's function (OCR over images and PDF pages) is clearly stated and distinct.
The name ocr_images_and_pdfs is descriptive snake_case with a clear verb-like prefix and explicit resource targets. Consistency cannot really be assessed with a single tool, but the convention chosen is readable and predictable.
A single tool is thin for a server, even a narrowly scoped OCR one; a related variant (e.g. local file input or language/format options) would round out the surface. It is at least well-matched to the narrow stated purpose rather than bloated.
The domain is OCR over images and PDFs, and the only input channel is a web address, so local files, batch directories, language selection, and output format choices are unaddressed. For URL-based OCR the core read path is covered, but there are notable gaps agents may hit.