mcp-image-pdf-ocr
v1.0.3Text from images and scanned PDF pages by URL, one row per page with confidence.
An MCP server for the Mamba Labs Image and PDF OCR actor on Apify. Images and scanned PDFs to text. 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.
Summary extracted from the README.
Image and PDF OCR MCP Server
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
- Quick start
- Prerequisites
- Example prompts
- Tool
- Inputs
- Pricing
- Full actor documentation
- 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:
{
"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, 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:
{
"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
License
MIT. See LICENSE.