pdf-inspector
Classifies PDFs (text-based vs scanned vs image vs mixed), extracts text, and converts to clean Markdown over Streamable HTTP MCP. Supports remote PDFs via URL or base64, with optional page restriction and OCR fallback detection.
README
PDF Inspector MCP Server (HTTP)
Classify PDFs (text-based vs scanned vs image vs mixed), extract text, and
convert to clean Markdown — over a Streamable HTTP MCP transport. Powered by
the native @firecrawl/pdf-inspector
library (Rust via napi-rs).
No API key. No external API. Pure local compute. Because the server is
remote, every tool takes a PDF as either a url (downloaded server-side) or a
base64 base64 string — not a local file path.
Tools (6)
| Tool | What it does |
|---|---|
classify_pdf |
Fast classify: TextBased / Scanned / ImageBased / Mixed + confidence + OCR pages |
detect_pdf |
Fast metadata (type, page count, OCR pages) — no markdown |
process_pdf |
Full parse: type, text, and Markdown with layout metadata |
pdf_to_markdown |
Per-page clean Markdown + table/column/OCR layout flags |
extract_text |
Plain text extraction |
extract_text_with_positions |
Positioned text items with font / bbox metadata |
Each tool accepts { url } or { base64 }. process_pdf,
pdf_to_markdown, and extract_text_with_positions also accept an optional
pages array (0-indexed) to restrict output.
The classify-before-OCR gate
classify_pdf is the cheap front door for any document pipeline: it decides
whether a PDF is real text or a scan in ~tens of milliseconds, so an agent can
skip OCR entirely on native PDFs and only fall back to OCR / a vision model on
the pages that actually need it (pagesNeedingOcr).
Auth
Dual-mode, matching the AgenticLedger fleet convention for credential-less MCPs. The server stores nothing:
- Bearer passthrough —
Authorization: Bearer <any-token>. Any non-empty token is accepted (access control only). - OAuth 2.0 Client Credentials —
POST /oauth/tokenwithclient_id=pdf-inspector&client_secret=<any>&grant_type=client_credentials, then use the returnedmcp_-prefixed token as the Bearer.
Client config
{
"mcpServers": {
"pdf-inspector": {
"type": "streamable-http",
"url": "https://pdfinspectormcp.agenticledger.ai/mcp",
"headers": { "Authorization": "Bearer pdf" }
}
}
}
Hosting note
@firecrawl/pdf-inspector ships prebuilt native binaries as optional
dependencies (linux-x64-gnu, darwin-arm64, win32-x64-msvc). Railway's
linux-x64 build pulls the linux-x64-gnu prebuilt automatically via
npm install — no Rust toolchain / Docker image needed.
Local dev
npm install
npm run build
npm start # serves on :3100
Deployed to Railway (project FinanceMCPs) from
agenticledger/pdf-inspector-mcp-http.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.