PDF Reader MCP Server - PDF to Markdown, Search & Metadata
Pricing
from $10.00 / 1,000 tool calls
PDF Reader MCP Server - PDF to Markdown, Search & Metadata
MCP server for AI agents (Claude, Cursor, n8n): read any public PDF URL as clean Markdown a page range at a time, with page markers and nextPages for long files; find the pages that mention a phrase; get title, dates, page count. No login, no API key. $0.01 per call.
Pricing
from $10.00 / 1,000 tool calls
Rating
0.0
(0)
Developer
rj
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
a day ago
Last modified
Categories
Features
Share
Let your AI agent read the PDFs it finds on the web. This MCP server gives Claude, Cursor, n8n agents or any MCP client three read-only tools: turn a public PDF URL into clean Markdown, a page range at a time (so a 300-page report fits in context step by step), find the pages that mention a phrase, and get a PDF's title, dates, page count and whether it has a text layer. Running headers, footers and page numbers are removed; headings, lists and tables come through as Markdown, with <!-- page N --> markers so the agent can cite pages. There is no login, no API key and no proxy, and it downloads only the URL the agent gives it. Most PDF MCP servers return the whole file or nothing; this one returns nextPages so the agent knows exactly what to read next. It costs a flat $0.01 per answered call. Failed calls are free.
Scope: public http(s) PDF URLs up to 25 MB, no uploads over MCP. Scanned PDFs (images without a text layer) return a clear "no text layer" error, because there is no OCR of PDF pages. Word, Excel and PowerPoint files are not supported.
What your agent can ask
- "Read the Attention Is All You Need paper (arxiv.org/abs/1706.03762) and summarise the method section."
- "Which pages of this annual report mention 'net revenue'? Quote them."
- "How long is this PDF, who wrote it, when was it published, and is it a scan?"
- "Read pages 40-55 of this standard and list every requirement that uses the word 'shall'."
- "Find where this contract talks about termination, then read those pages in full."
- "Turn this GitHub-hosted whitepaper into Markdown so I can quote it."
Tools
| Tool | What it returns | Arguments |
|---|---|---|
pdf_to_markdown | Markdown (or plain text) of a page range, with <!-- page N --> markers, running headers/footers removed. At most 30 pages per call, and it stops once maxChars is reached. Returns title, author, pageCount, pagesConverted ("1-6"), content, truncated, nextPages ("7-15") and warnings | url (required), pages ("1-5, 9", "20-"; default from page 1), format (markdown default, or text), maxChars (2000-60000, default 25000) |
pdf_info | title, author, subject, keywords, creator, producer, createdAt, modifiedAt, pageCount, fileSizeBytes, hasTextLayer (checked on the first 3 pages), language and a 500-character preview of the first page | url (required) |
search_pdf | The pages that mention a word or phrase (case-insensitive plain text, not regex), with a ~240-character snippet centred on each match: pageCount, scannedPages, totalMatches, pagesWithMatches ("1, 8-9") and up to 20 matches {page, snippet}. Scans up to the first 200 pages; if time runs out first, scannedPages and warnings say where it stopped | url (required), query (1-200 characters, required), limit (1-20, default 10) |
URLs: arXiv abstract pages, GitHub file pages, Dropbox and Google Drive share links are rewritten to the file itself. Only public internet addresses are fetched. Private, loopback and cloud-metadata addresses are refused, including on every redirect.
Example calls
{ "name": "pdf_info", "arguments": { "url": "https://arxiv.org/pdf/1706.03762" } }{ "name": "pdf_to_markdown", "arguments": { "url": "https://arxiv.org/abs/1706.03762", "pages": "1-5" } }{ "name": "pdf_to_markdown", "arguments": { "url": "https://arxiv.org/pdf/1706.03762", "pages": "8-", "format": "text", "maxChars": 10000 } }{ "name": "search_pdf", "arguments": { "url": "https://arxiv.org/pdf/1706.03762", "query": "BLEU", "limit": 5 } }
Real answer from search_pdf (limit: 2):
{"query":{"url":"https://arxiv.org/pdf/1706.03762","query":"BLEU","limit":2},"pageCount":15,"scannedPages":15,"totalMatches":11,"pagesWithMatches":"1, 8-9","matches":[{"page":1,"snippet":"…or in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English- to-German translation task, improving over the existing best results, including ensembles, b…"},{"page":1,"snippet":"…MT 2014 English- to-German translation task, improving over the existing best results, including ensembles, by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU s…"}]}
Real answer from pdf_info (preview trimmed):
{"query":{"url":"https://arxiv.org/pdf/1706.03762"},"title":"Attention Is All You Need","creator":"LaTeX with hyperref","producer":"pdfTeX-1.40.25","createdAt":"2024-04-10T21:11:43.000Z","modifiedAt":"2024-04-10T21:11:43.000Z","pageCount":15,"fileSizeBytes":2215244,"hasTextLayer":true,"language":"en","preview":"Provided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works.\n\nAttention Is All You Need\n\n..."}
pdf_to_markdown with "pages": "1-15" returns pages 1-7 (about 22,000 characters, under the default maxChars) and "nextPages": "8-15". The agent asks for "pages": "8-15" next. A search with no matches is a normal, charged answer with totalMatches: 0. Invalid arguments, unreachable or private URLs, files that aren't PDFs, files over 25 MB, password-protected or scanned PDFs, upstream HTTP errors and calls over the 50-second limit return an error message and are not charged.
How to connect
Endpoint: https://rjmacarthy--document-tools-mcp-server.apify.actor/mcp (Streamable HTTP)
Header: Authorization: Bearer <YOUR_APIFY_TOKEN> (find your token in Apify Console → Settings → API & Integrations)
Claude Desktop / Claude Code (claude_desktop_config.json or .mcp.json):
{"mcpServers": {"pdf-reader": {"command": "npx","args": ["-y", "mcp-remote", "https://rjmacarthy--document-tools-mcp-server.apify.actor/mcp","--header", "Authorization: Bearer YOUR_APIFY_TOKEN"]}}}
Or in Claude Code: claude mcp add --transport http pdf-reader https://rjmacarthy--document-tools-mcp-server.apify.actor/mcp --header "Authorization: Bearer YOUR_APIFY_TOKEN"
Cursor (~/.cursor/mcp.json):
{"mcpServers": {"pdf-reader": {"url": "https://rjmacarthy--document-tools-mcp-server.apify.actor/mcp","headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }}}}
Any MCP client that supports Streamable HTTP works with the same URL and header, including n8n's MCP Client node, ChatGPT connectors and the OpenAI Agents SDK.
Pricing
| Event | Price | When |
|---|---|---|
tool-call | $0.01 | Once per answered tool call |
There is no per-page fee and no proxy surcharge, and failed calls are free. Example: an agent reads a 60-page report in 3 calls of 20 pages, after 1 pdf_info and 1 search_pdf, which makes 5 calls for $0.05. 1,000 tool calls cost $10.
What data can you get
| Field | Description |
|---|---|
content | Markdown or plain text of the converted pages, with page markers |
pagesConverted, nextPages, truncated | What was read, what to read next, and whether a single page was cut at maxChars |
title, author, subject, keywords | Document metadata (the title falls back to the first heading) |
creator, producer, createdAt, modifiedAt | Authoring tool and ISO dates |
pageCount, fileSizeBytes, language | Size and declared or detected language |
hasTextLayer, preview | Whether the PDF has extractable text (false = a scan) and a first-page preview |
matches[].page, matches[].snippet, totalMatches, pagesWithMatches | Search hits with context |
warnings | URL rewrites, pages without text, skipped rotated text |
Use cases
- Research assistants: read arXiv papers, standards and reports page by page and answer with page citations.
- Due diligence and finance: search annual reports and filings for a figure or term, then read the pages around it.
- Legal and compliance: find clauses in public contracts, policies and regulations.
- RAG on demand: pull clean Markdown from a PDF link into an agent's context without a separate ingestion pipeline.
- Triage: check page count, date and text layer before deciding whether a document is worth reading.
Normal (non-MCP) runs
You can also run the Actor like any other Actor. A normal run executes one tool with your input and saves dataset rows, for a single tool-call charge per run:
{ "tool": "pdf_to_markdown", "url": "https://arxiv.org/pdf/1706.03762", "pages": "1-3" }{ "tool": "search_pdf", "url": "https://arxiv.org/pdf/1706.03762", "query": "BLEU", "limit": 10 }{ "tool": "pdf_info", "url": "https://arxiv.org/pdf/1706.03762" }
pdf_to_markdown saves one row per page (type: "page", page, content, charCount), search_pdf one row per match (type: "match", page, snippet) and pdf_info one row (type: "info"). Every row has every field (null where it doesn't apply) plus id, url, tool and scrapedAt. The Pages, Search matches and PDF info dataset views show the main columns, and the RUN_SUMMARY record holds nextPages and the request counts.
Tips and limits
- Long PDFs: call
pdf_infofirst, thensearch_pdfto find the right pages, thenpdf_to_markdownon just those pages. FollownextPagesto read on. - 30 pages and
maxCharsper call. A dense page is 3,000-5,000 characters, so the default 25,000 is roughly 5-8 pages. RaisemaxCharsup to 60,000 if your model's context allows. - Each call is capped at 50 seconds. On a very slow host or a huge file the server may convert fewer pages and say so in
warnings;nextPagescontinues from there. - Scanned PDFs have no text layer and return an error (not charged). The server does not OCR PDF pages.
- Tables are rebuilt from text positions. Simple tables come out as Markdown tables, while complex ones may come out as text lines.
- Search matches the text as it appears in the PDF. Words hyphenated across a line break are not joined.
- Some hosts block automated downloads or need a login, and those calls return the HTTP error (not charged).
FAQ
Is it legal? The server reads only public files at URLs you or your agent provide, the same files anyone can download in a browser. It never logs in and does not collect personal data. You are responsible for having the right to process the documents you read, and for complying with their terms and with data-protection laws such as the GDPR.
Do I need an API key or a proxy? No. You only need your Apify token to call the server. It downloads directly and never uses a residential proxy.
Can I upload a PDF? Not over MCP. Put the file at a public URL (a GitHub raw link, a Dropbox or Google Drive share link, or an Apify key-value store record) and pass that URL.
Can it read scanned PDFs or images? No. It needs a text layer. pdf_info tells you whether a PDF has one (hasTextLayer).
Why is my call an error? The message says why: an invalid argument, a URL that isn't a PDF or isn't public, a file over 25 MB, a password, no text layer, the host's HTTP error, or the time limit. Errors are never charged.
Integrations
- MCP: Claude, Cursor, ChatGPT connectors, the n8n AI Agent (MCP Client tool), the OpenAI Agents SDK, LangChain MCP adapters
- Apify API: run one tool as a normal run and read the dataset (
/v2/acts/rjmacarthy~document-tools-mcp-server/run-sync-get-dataset-items) - Make, Zapier, n8n: the Apify integrations, for scheduled document checks
- Need bulk conversion? For many PDFs at once (uploads, chunking for RAG), use the batch Actor PDF to Markdown.
Changelog
- 0.1 (November 2026): first release with three tools:
pdf_to_markdown,pdf_infoandsearch_pdf.
More scrapers by the same developer
- AI Visibility Tracker: ChatGPT, Perplexity, Gemini, Claude
- AliExpress Scraper - Product Search, Prices, Ratings & Details
- Apple App Store Scraper: Apps, Search & Reviews
- AutoScout24 Scraper - Used Car Listings & Prices (Europe)
- Bilibili Scraper - Videos, Search, Popular & Uploader Stats
- Bing Search Scraper: Organic Results, Ads & Related Searches
Browse all my Actors on my Apify Store profile.
Support
Found a PDF that converts badly or a host that fails? Open an issue on the Actor's Issues tab with the URL and the tool call, and I'll look at it.