PDF Inspector MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PDF Inspector MCP Serverextract text from report.pdf"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: PDF Reader MCP Server
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
PDF URLs to per-page text, tables as rows, Markdown, metadata and OCR for scanned pages.
Merge, split, extract, rotate, reorder and stamp PDF pages from your AI chat, all offline.
Merge, split, extract, rotate, reorder and stamp PDF pages from your AI chat, all offline.
Merge, split, extract, rotate, reorder and stamp PDF pages from your AI chat, all offline.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceProvides tools for reading and extracting text from PDF files, supporting both local files and URLs.47-
- 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.11,638 npmMIT
- AlicenseAqualityDmaintenanceEnables PDF processing and analysis including text extraction, metadata retrieval, search, page manipulation, splitting/merging, conversion to images, and form handling.10MIT
- FlicenseNot gradedqualityAmaintenanceProvides tools to analyze local PDFs and CSVs (page count, text search, scoring, column stats) with strict refusal to guess ambiguous data. Requires a paid license.-