PDF Inspector MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PDF Inspector MCP Server
A lightweight, zero-configuration TypeScript MCP server that inspects local PDF files using standard, widely-adopted libraries.
Features
extract_text— Extracts raw embedded text from PDFs usingpdf-parse.count_pages— Returns the total number of pages in a PDF.ocr_pdf— Renders PDF pages to images and performs OCR withtesseract.jsfor image-based (scanned) PDFs.
Related MCP server: benspdf
Dependencies
Package | Purpose |
| Official MCP TypeScript SDK |
| Zero-config text extraction and page counting |
| PDF rendering engine (standard Mozilla library) |
| Canvas implementation for Node.js rendering |
| Pure-JavaScript OCR (lightweight, no binary installs) |
| Schema validation for tool parameters |
All dependencies install with a standard npm install and require no external binary setup beyond what npm provides.
Quick Start
npm install
npm run build
npm startOr run directly with tsx during development:
npm run devRunning with an MCP Client
The server communicates over stdio, the standard MCP transport. Use it with Claude Code, VS Code, Cursor, or any host that launches node dist/index.js.
Example claude_desktop_config.json snippet:
{
"mcpServers": {
"pdf-inspector": {
"command": "node",
"args": ["/absolute/path/to/pdf-inspector-mcp/dist/index.js"]
}
}
}Tools
extract_text
Parameter | Type | Default | Description |
|
| — | Path to PDF |
|
|
| Max characters to return |
count_pages
Parameter | Type | Default | Description |
|
| — | Path to PDF |
ocr_pdf
Parameter | Type | Default | Description |
|
| — | Path to PDF |
|
|
| 1-based page numbers (empty = all) |
|
|
| Tesseract language code |
|
|
| Render scale (higher = sharper, slower) |
Note:
ocr_pdfusespdfjs-distto render each page to an image, then passes the PNG totesseract.js. For multi-page PDFs this can take several seconds per page.
Zero-Config Design
No
.envfiles or external services required.pdf-parsehandles text extraction with no setup.tesseract.jsbundles WASM and language data automatically.pdfjs-distuses the bundledpdf.worker.mjsfile.canvasrelies on standardnpmprebuilds.
This server cannot be deployed
Maintenance
Related MCP Connectors
Extract text, pages and metadata from PDFs in bulk, with OCR for scanned files.
Extract text and metadata from PDFs; convert Markdown or text to PDF
Read the text of any public PDF, page by page, plus page count and metadata. Free, no key.
PDF tools for AI agents: validate, extract, merge, split, compress, OCR, sign and redact.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to securely read and extract information from PDF files including text content, metadata, and page counts from both local files and URLs within the project context.1529 npmMIT
- AlicenseAqualityAmaintenanceEnables AI agents to inspect and work with PDF files entirely on the local machine, covering page counts, metadata, layout, encryption permissions, scan-vs-text detection, and page rendering. Generated results land in a temporary workspace as short artifact ids that can be chained between tools and exported to real folders on request.1230 PyPI1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables inspecting local PDFs and extracting tables into CSV, XLSX, or JSON with options for pages, merging, OCR, engine selection, headers, merged cells, regions, and columns.MIT
- AlicenseAqualityCmaintenanceEnables clients to inspect local PDFs by searching text, rendering pages, and cropping selected regions at high resolution directly from the source document. It runs locally over stdio without requiring models, embeddings, GPUs, or API keys, and does not modify source PDFs or send network requests.6MIT