PDF Inspector MCP Server
Click on "Install 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.
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/scrapinfo/pdf-inspector-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server