Skip to main content
Glama
Image and PDF OCR MCP Server

Image and PDF OCR MCP Server

Image and PDF OCR MCP Server

MCP Registry npm version npm downloads license

An MCP server for the Mamba Labs Image and PDF OCR actor on Apify. Images and scanned PDFs to text.

What's Inside

Related MCP server: ReadPDFx - OCR PDF MCP Server

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

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.

Available Tools

1 tool
ocr_images_and_pdfsOCR images and PDFsA
Read-onlyIdempotent

Read text from images and scanned PDF pages by web address with open source OCR. Returns one row per image or page with the text, word and line counts, and a confidence score. PDF pages that already hold text are read from that text.

Inputs: urls, language, max_files, page_layout, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 1 tool

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness3/5

    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.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers