<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Peter Ndumia</title>
    <description>The latest articles on DEV Community by Peter Ndumia (@peter_ndumia_pdfhaul).</description>
    <link>https://dev.to/peter_ndumia_pdfhaul</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4061225%2F402526a1-2e7f-42b7-bbb7-80cba6360517.png</url>
      <title>DEV Community: Peter Ndumia</title>
      <link>https://dev.to/peter_ndumia_pdfhaul</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/peter_ndumia_pdfhaul"/>
    <language>en</language>
    <item>
      <title>If AI Can Create Documents, Why Do We Need Document MCPs?</title>
      <dc:creator>Peter Ndumia</dc:creator>
      <pubDate>Thu, 05 Nov 2026 04:26:23 +0000</pubDate>
      <link>https://dev.to/peter_ndumia_pdfhaul/if-ai-can-create-documents-why-do-we-need-document-mcps-39l5</link>
      <guid>https://dev.to/peter_ndumia_pdfhaul/if-ai-can-create-documents-why-do-we-need-document-mcps-39l5</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; AI assistants can already write reports and generate files, so a document MCP server is not for creating a one-off document. It is for repeated work on existing files, such as extracting tables, combining attachments and reviewing duplicate pages, where a defined set of operations and an explicit review step make the result easier to check.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI already has document capabilities
&lt;/h2&gt;

&lt;p&gt;It would be misleading to argue that AI assistants cannot create or manipulate files.&lt;/p&gt;

&lt;p&gt;An assistant with code execution can write a script, use an installed library and return a generated document. Anthropic's documentation, for example, describes file processing and the retrieval of files produced through Claude's &lt;a href="https://docs.claude.com/en/docs/agents-and-tools/tool-use/code-execution-tool" rel="noopener noreferrer"&gt;code-execution environment&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Modern multimodal models can also interpret PDF text, charts, images and tables. A scanned page is not necessarily unreadable simply because it lacks selectable text. Claude explicitly supports &lt;a href="https://docs.claude.com/en/docs/build-with-claude/pdf-support" rel="noopener noreferrer"&gt;visual PDF processing&lt;/a&gt;, although recognition and interpretation still have limitations.&lt;/p&gt;

&lt;p&gt;The question is therefore practical: when should an assistant use its existing execution environment, and when should it call a dedicated document service?&lt;/p&gt;

&lt;h2&gt;
  
  
  What MCP adds
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://modelcontextprotocol.io/docs/learn/architecture" rel="noopener noreferrer"&gt;Model Context Protocol&lt;/a&gt; provides a standardized interface through which compatible applications can discover and call tools. Those tools can run locally or on a remote server.&lt;/p&gt;

&lt;p&gt;The model proposes an operation, the application coordinates the call, and the server executes its implementation. The result returns to the application for the assistant to use.&lt;/p&gt;

&lt;p&gt;This can make an existing document service accessible across compatible clients without building a separate custom integration for each one. MCP standardizes that connection. It does not guarantee accurate extraction, correct tool selection or successful completion.&lt;/p&gt;

&lt;p&gt;An assistant might generate a one-off PDF using code. A team handling the same operation repeatedly might instead expose a maintained implementation with documented inputs, outputs and error behavior. Both approaches can be useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four document MCP examples
&lt;/h2&gt;

&lt;p&gt;These projects illustrate different uses of the protocol. Their capabilities come from their published documentation, not from a comparative performance test.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Document MCP&lt;/th&gt;
&lt;th&gt;Documented focus&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a href="https://www.pdfhaul.com/mcp-server" rel="noopener noreferrer"&gt;PDFHaul MCP Server&lt;/a&gt; (23 tools)&lt;/td&gt;
&lt;td&gt;PDF processing, including merging, splitting, compression, conversion and table extraction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/cyanheads/docgen-mcp-server" rel="noopener noreferrer"&gt;cyanheads/docgen-mcp-server&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Generating PDFs from HTML or Markdown, exporting spreadsheet rows and filling AcroForm PDFs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/gstiebler/pdf-mcp-server" rel="noopener noreferrer"&gt;gstiebler/pdf-mcp-server&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Extracting PDF text, tables and document information using pdfplumber&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/Open-Document-Alliance/PDF-Tools" rel="noopener noreferrer"&gt;Open Document Alliance PDF Tools&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Local PDF workflows, including form filling, signatures and page management&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"Document MCP" is a broad category. A server built to generate reports may be a poor substitute for one designed to inspect existing PDFs or fill established forms.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example 1: Cleaning up a combined PDF
&lt;/h2&gt;

&lt;p&gt;Consider this request:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Merge these PDFs, identify repeated pages, show me what you found, and remove only the copies I approve.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This needs several operations and an explicit review boundary. The PDFHaul sequence is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Obtain the input files and their identifiers.&lt;/li&gt;
&lt;li&gt;Merge them in the requested order.&lt;/li&gt;
&lt;li&gt;Run duplicate-page detection.&lt;/li&gt;
&lt;li&gt;Present the flagged pages for review.&lt;/li&gt;
&lt;li&gt;Delete only the confirmed copies.&lt;/li&gt;
&lt;li&gt;Return the cleaned document.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;PDFHaul's &lt;a href="https://www.pdfhaul.com/mcp-server/tools" rel="noopener noreferrer"&gt;tool reference&lt;/a&gt; separates detection from deletion. The detection operation returns candidate pages and does not change the file. &lt;code&gt;delete_pages&lt;/code&gt; performs the removal only after the page numbers are confirmed, and it returns a new file.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happened when I ran it
&lt;/h3&gt;

&lt;p&gt;I ran this through Claude using the PDFHaul MCP server. The input was PDFHaul's public challenge set, a 19-page PDF with an answer key.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Make two overlapping sources.&lt;/strong&gt; I split the challenge set into pages 1 to 10 and pages 8 to 19, so pages 8, 9 and 10 exist in both files, as they would when two exports of the same report are combined.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Merge.&lt;/strong&gt; The two files merged into one 22-page PDF.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Detect.&lt;/strong&gt; The detection call flagged 10 of the 22 pages and changed nothing:&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flagged page&lt;/th&gt;
&lt;th&gt;Duplicate of&lt;/th&gt;
&lt;th&gt;Match type&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2, 3&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9, 10&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11, 12, 13&lt;/td&gt;
&lt;td&gt;8, 9, 10&lt;/td&gt;
&lt;td&gt;exact (the overlap I created)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16, 17&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;exact (blank pages)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Review.&lt;/strong&gt; I treated the two match types differently. Exact matches are byte-for-byte copies, so I confirmed them. Content matches are pages that look the same but were produced differently (different generators, recompressed images, shifted or rotated text), so I held them for a human decision.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delete.&lt;/strong&gt; I called &lt;code&gt;delete_pages&lt;/code&gt; for pages 11, 12, 13, 16 and 17. It returned a new 17-page file and left the 22-page original untouched.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check.&lt;/strong&gt; I ran detection on the cleaned file. It flagged only the five content-match pages (2, 3, 6, 9, 10), which I had held back on purpose.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Two things did not happen, and both match what PDFHaul publishes. The two simulated rescan pages (pages 20 and 21 of the merged file) were not flagged, because noisy rescans are a known gap. And the near-identical invoice pages, which differ only in an invoice number and a small amount, were correctly left alone. Every flagged page agreed with the answer key.&lt;/p&gt;

&lt;p&gt;That does not make every detection correct on your files. The results above come from a test set PDFHaul built itself, and PDFHaul reports them. The &lt;a href="https://www.pdfhaul.com/blog/duplicate-detection-challenge" rel="noopener noreferrer"&gt;PDFHaul Duplicate Detection Challenge&lt;/a&gt; page has the full methodology so you can run the same file through any tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example 2: Extracting a table for further work
&lt;/h2&gt;

&lt;p&gt;A user might ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Extract the figures from this PDF table so I can analyze them.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There are several possible outputs: text in the conversation, structured rows, or a downloadable spreadsheet. The choice matters. A table returned as text may be enough for a short calculation. A workbook is more useful when someone needs to filter, reconcile or share the data.&lt;/p&gt;

&lt;p&gt;The gstiebler PDF server documents text extraction, table extraction and document-information tools. PDFHaul separately documents table-only spreadsheet extraction and full-document PDF-to-Excel conversion. These are different interfaces with different outputs, so the assistant should choose according to the result you asked for.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happened when I ran it
&lt;/h3&gt;

&lt;p&gt;I ran PDFHaul's table-only extraction on a public sample PDF with two tables (samplelib's &lt;code&gt;sample-table.pdf&lt;/code&gt;) and compared the workbook with the source cell by cell.&lt;/p&gt;

&lt;p&gt;It went well. The workbook had one sheet per table, with the right headers. All 16 data rows matched the source. The ID, value and money columns were stored as numbers, and the dollar formatting was kept, so the figures can be summed straight away.&lt;/p&gt;

&lt;p&gt;This is an easy file: two ruled tables with a single header row. It shows the workflow works end to end, not that every table will extract cleanly. Layouts with grouped headers, merged cells or tables that run across pages are harder for any extractor, and the only way to know is to check the output against the source.&lt;/p&gt;

&lt;p&gt;Try it on your own tables. Take the most awkward table PDF you have, run it through any extraction tool you are evaluating, and compare the spreadsheet with the page before you trust it. To try PDFHaul on it, see the &lt;a href="https://www.pdfhaul.com/mcp-server" rel="noopener noreferrer"&gt;MCP server page&lt;/a&gt;. I would like to hear what it gets right and wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  When a document MCP is worth adding
&lt;/h2&gt;

&lt;p&gt;A dedicated server is worth evaluating when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The same operation is needed repeatedly.&lt;/li&gt;
&lt;li&gt;Several compatible assistants need access to the same implementation.&lt;/li&gt;
&lt;li&gt;The workflow depends on an existing service or account.&lt;/li&gt;
&lt;li&gt;Explicit inputs, outputs and review steps make the work easier to inspect.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a one-off document that an assistant can already create correctly, another server may offer little benefit. A well-maintained script, CLI or direct API integration can also be the right choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MCP does not solve automatically
&lt;/h2&gt;

&lt;p&gt;Connecting a server does not make the resulting document correct.&lt;/p&gt;

&lt;p&gt;Compression may fail to reach a requested size. OCR may misread a digit. Table extraction may shift a value into the wrong column. An assistant may select the wrong file or propose an unwanted deletion.&lt;/p&gt;

&lt;p&gt;Those problems call for output checks, suitable permissions and human review where the consequences justify it.&lt;/p&gt;

&lt;p&gt;AI's ability to create documents does not remove the need for document tools. It makes the choice of tools more important. MCP gives a common way to connect those tools, and the quality of the implementation and the surrounding workflow decide how useful they are.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://modelcontextprotocol.io/docs/learn/architecture" rel="noopener noreferrer"&gt;Model Context Protocol: Architecture overview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.claude.com/en/docs/agents-and-tools/tool-use/code-execution-tool" rel="noopener noreferrer"&gt;Anthropic: Code execution tool&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.claude.com/en/docs/build-with-claude/pdf-support" rel="noopener noreferrer"&gt;Anthropic: PDF support&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.pdfhaul.com/mcp-server" rel="noopener noreferrer"&gt;PDFHaul MCP Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.pdfhaul.com/mcp-server/tools" rel="noopener noreferrer"&gt;PDFHaul MCP tool reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.pdfhaul.com/blog/duplicate-detection-challenge" rel="noopener noreferrer"&gt;PDFHaul Duplicate Detection Challenge&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/cyanheads/docgen-mcp-server" rel="noopener noreferrer"&gt;cyanheads/docgen-mcp-server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/gstiebler/pdf-mcp-server" rel="noopener noreferrer"&gt;gstiebler/pdf-mcp-server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Open-Document-Alliance/PDF-Tools" rel="noopener noreferrer"&gt;Open Document Alliance PDF Tools&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.pdfhaul.com" rel="noopener noreferrer"&gt;pdfhaul.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>productivity</category>
      <category>pdf</category>
    </item>
    <item>
      <title>The Complete Guide to Using PDF MCP Servers (With PDFHaul as the Worked Example)</title>
      <dc:creator>Peter Ndumia</dc:creator>
      <pubDate>Thu, 05 Nov 2026 01:42:56 +0000</pubDate>
      <link>https://dev.to/peter_ndumia_pdfhaul/the-complete-guide-to-using-pdf-mcp-servers-with-pdfhaul-as-the-worked-example-53la</link>
      <guid>https://dev.to/peter_ndumia_pdfhaul/the-complete-guide-to-using-pdf-mcp-servers-with-pdfhaul-as-the-worked-example-53la</guid>
      <description>&lt;p&gt;A PDF MCP server lets an AI assistant like Claude or Cursor work on your PDF files directly. You ask in plain English: shrink this file for email, merge these three reports, make this scan searchable. The assistant does the job and hands you the finished file. You never open a browser tab, upload a file or copy a result back by hand.&lt;/p&gt;

&lt;p&gt;This guide explains what a PDF MCP server is, what to look for in one, and how to use one from start to finish. For the hands-on parts I use &lt;a href="https://www.pdfhaul.com/mcp-server" rel="noopener noreferrer"&gt;PDFHaul's MCP server&lt;/a&gt; as the example, because I built it and ran every workflow below through the live server on real files. You will see actual numbers, including the places where I have not checked the output or where a tool has limits. The same ideas carry over to any PDF MCP server. Here is what you will learn:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What a PDF MCP server is and what to look for in one&lt;/li&gt;
&lt;li&gt;How to connect one with a sign-in or an API key&lt;/li&gt;
&lt;li&gt;How to shrink an oversized PDF&lt;/li&gt;
&lt;li&gt;How to merge, split, reorder and rotate pages&lt;/li&gt;
&lt;li&gt;How to clean up a combined PDF by finding duplicate and blank pages&lt;/li&gt;
&lt;li&gt;How to convert PDFs to Word, Excel and images, and pull tables out&lt;/li&gt;
&lt;li&gt;How to make a scanned PDF searchable&lt;/li&gt;
&lt;li&gt;How to chain several jobs into one request&lt;/li&gt;
&lt;li&gt;The limits, the privacy rules and what to do when something fails&lt;/li&gt;
&lt;li&gt;Twelve prompts you can copy&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Chapter 1: What a PDF MCP server is, and what to look for
&lt;/h2&gt;

&lt;p&gt;MCP, the Model Context Protocol, is an open standard that lets an AI assistant call outside tools. Without it, an assistant can talk about your PDF but it cannot touch the file. With it, the assistant can see a menu of tools, pick the ones your request needs, run them in order and report back.&lt;/p&gt;

&lt;h3&gt;
  
  
  What to look for in any PDF MCP server
&lt;/h3&gt;

&lt;p&gt;Not every server is built the same way. Before you rely on one, check these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Which jobs it covers.&lt;/strong&gt; Compression, merging and splitting are common. Conversion, OCR and table extraction are less so.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How you sign in.&lt;/strong&gt; Some servers use OAuth, where you approve a connection and never handle a key. Others need an API key. Support for both is the easiest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Whether it can run safely.&lt;/strong&gt; Look for tools that report before they delete, and results that come back as new files instead of overwriting your originals.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Limits and retention.&lt;/strong&gt; Know the rate limits, the file size limits and how long your files are kept.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where your files go.&lt;/strong&gt; A hosted server processes files on its servers. Read the privacy terms before you send anything sensitive.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How it behaves on bad days.&lt;/strong&gt; Timeouts and retries should not create duplicate files.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have not tested other PDF MCP servers, so I cannot compare them. The rest of this guide shows these points in practice with PDFHaul's server.&lt;/p&gt;

&lt;h3&gt;
  
  
  PDFHaul's server as the example
&lt;/h3&gt;

&lt;p&gt;PDFHaul's server offers 23 tools. They fall into three groups:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Files (4 tools).&lt;/strong&gt; &lt;code&gt;list_files&lt;/code&gt;, &lt;code&gt;get_file_info&lt;/code&gt;, &lt;code&gt;get_file_url&lt;/code&gt; and &lt;code&gt;upload_from_url&lt;/code&gt;. These find your files, tell the assistant how many pages a file has, bring in a file from a public web address and produce a download link for results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Page editing (10 tools).&lt;/strong&gt; &lt;code&gt;merge_pdfs&lt;/code&gt;, &lt;code&gt;split_pdf&lt;/code&gt;, &lt;code&gt;compress_pdf&lt;/code&gt;, &lt;code&gt;rotate_pages&lt;/code&gt;, &lt;code&gt;reorder_pages&lt;/code&gt;, &lt;code&gt;delete_pages&lt;/code&gt;, &lt;code&gt;duplicate_pages&lt;/code&gt;, &lt;code&gt;remove_duplicate_pages&lt;/code&gt;, &lt;code&gt;remove_empty_pages&lt;/code&gt; and &lt;code&gt;edit_metadata&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conversion (9 tools).&lt;/strong&gt; &lt;code&gt;pdf_to_word&lt;/code&gt;, &lt;code&gt;word_to_pdf&lt;/code&gt;, &lt;code&gt;pdf_to_excel&lt;/code&gt;, &lt;code&gt;extract_tables&lt;/code&gt;, &lt;code&gt;pdf_to_powerpoint&lt;/code&gt;, &lt;code&gt;powerpoint_to_pdf&lt;/code&gt;, &lt;code&gt;excel_to_pdf&lt;/code&gt;, &lt;code&gt;pdf_to_images&lt;/code&gt; and &lt;code&gt;ocr_pdf&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You do not need to memorize any of those names. You describe the result you want and the assistant chooses the tools. The names matter only when you want to understand what happened, or when you want to be exact. For example, &lt;code&gt;duplicate_pages&lt;/code&gt; makes a copy of a page, while &lt;code&gt;remove_duplicate_pages&lt;/code&gt; finds pages that are repeated in a file. They sound alike and do opposite jobs.&lt;/p&gt;

&lt;p&gt;One design choice is worth knowing about now, because it shapes everything that follows. The tools that can destroy something work in two steps. &lt;code&gt;remove_duplicate_pages&lt;/code&gt; and &lt;code&gt;remove_empty_pages&lt;/code&gt; only report what they found. They change nothing. A separate call to &lt;code&gt;delete_pages&lt;/code&gt; removes pages, and it returns a new file while leaving your original untouched. That gap between finding and deleting is where you get to look at the list and say yes or no.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 2: How to connect it in a few minutes
&lt;/h2&gt;

&lt;p&gt;The server address is the same for every client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://mcp.pdfhaul.com/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can connect in one of two ways.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 1: Sign in with OAuth (no key)
&lt;/h3&gt;

&lt;p&gt;If your assistant supports OAuth, which includes Claude Desktop, this is the easiest route. Add the server address as a connector. Your client registers itself with PDFHaul automatically through dynamic client registration, then shows a sign-in prompt. Sign in to your PDFHaul account, approve the connection and you are done. There is no key to create, copy or rotate.&lt;/p&gt;

&lt;p&gt;You can also add it straight from the Claude connector directory: &lt;a href="https://claude.ai/directory/pdfhaul" rel="noopener noreferrer"&gt;PDFHaul in the Claude directory&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 2: Use an API key
&lt;/h3&gt;

&lt;p&gt;Some clients do not support OAuth. For those, use a key:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a free account at &lt;a href="https://www.pdfhaul.com" rel="noopener noreferrer"&gt;pdfhaul.com&lt;/a&gt; if you do not have one.&lt;/li&gt;
&lt;li&gt;Open the Developer page and create an API key. You can hold up to 10 keys per account, so give each assistant its own. If one leaks or you stop using a tool, revoke that single key and the others keep working.&lt;/li&gt;
&lt;li&gt;Add the server to your client's configuration with the address above and your key. In Claude Desktop's &lt;code&gt;claude_desktop_config.json&lt;/code&gt;, this is a server named &lt;code&gt;pdfhaul&lt;/code&gt; that runs &lt;code&gt;npx&lt;/code&gt; with &lt;code&gt;mcp-remote&lt;/code&gt;, points at the address and sends your key as a bearer token in the Authorization header. Cursor, Windsurf and other clients take the same address and key in their own MCP settings. Copy the exact configuration block, with macOS, Linux and Windows versions, from &lt;a href="https://www.pdfhaul.com/mcp-server" rel="noopener noreferrer"&gt;pdfhaul.com/mcp-server&lt;/a&gt; so you do not mistype it.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Check that it works
&lt;/h3&gt;

&lt;p&gt;Restart your assistant and ask it: "List my PDFHaul files." You may get an empty list on a fresh account. That is fine. An answer of any kind, including "you have no files", means the connection works. An error means the address or the key needs another look.&lt;/p&gt;

&lt;p&gt;The server is free to use, like every other PDFHaul tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 3: How to shrink a huge PDF with one sentence
&lt;/h2&gt;

&lt;p&gt;Compression is the most common reason people reach for a PDF tool, and it is the simplest job to hand to an assistant.&lt;/p&gt;

&lt;p&gt;The prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Compress this PDF so I can email it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Behind the scenes, the assistant calls &lt;code&gt;compress_pdf&lt;/code&gt;. It takes one setting, &lt;code&gt;quality&lt;/code&gt;, with four levels. &lt;code&gt;low&lt;/code&gt; keeps the best quality and the largest file. &lt;code&gt;medium&lt;/code&gt; is the default. &lt;code&gt;high&lt;/code&gt; squeezes harder. &lt;code&gt;extreme&lt;/code&gt; gives the smallest file with the most visible loss. The original is never modified, so you can try a stronger level if the first result is still too large.&lt;/p&gt;

&lt;p&gt;I tested it on two files at the default &lt;code&gt;medium&lt;/code&gt; setting:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;th&gt;Reduction&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A 19-page test PDF with scanned pages&lt;/td&gt;
&lt;td&gt;13.2 MB&lt;/td&gt;
&lt;td&gt;0.53 MB&lt;/td&gt;
&lt;td&gt;96%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A 31-page research paper&lt;/td&gt;
&lt;td&gt;28.1 MB&lt;/td&gt;
&lt;td&gt;2.1 MB&lt;/td&gt;
&lt;td&gt;92%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both are large reductions, and both files were image-heavy, which is where compression gains the most. A text-only PDF will shrink far less because there is little to remove.&lt;/p&gt;

&lt;p&gt;I then opened the compressed files and read the pages. In the challenge set, headings and body text were still sharp, and the scanned "rescan" pages stayed legible, tilt, speckle and all. The image test pages kept their pictures. In the research paper, the body text was crisp and even the small labels on a chart were readable. That is a spot check of the pages I looked at, not every page, and a 96% reduction will not look this good on every file. Before you send a compressed file anywhere that matters, open it and read a page or two. If it is too rough, ask the assistant to redo it at &lt;code&gt;low&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A good habit is to name the target in your prompt: "Compress this to under 5 MB; if medium doesn't get there, go one level stronger." The assistant can run the tool, compare the new size with your limit and decide whether to go again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 4: How to merge, split, reorder and rotate pages
&lt;/h2&gt;

&lt;p&gt;Page-level work is where an assistant earns its keep, because these jobs are tedious by hand and trivial to describe.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Merging.&lt;/strong&gt; "Merge these three PDFs into one, in this order: the cover letter, the report, the appendix." The assistant calls &lt;code&gt;merge_pdfs&lt;/code&gt; with the files in the order you gave. Say the order out loud, because the order of the files decides the order of the pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Splitting.&lt;/strong&gt; "Take pages 1 to 10 out of this report as their own file." &lt;code&gt;split_pdf&lt;/code&gt; takes page ranges. I split a 19-page file into pages 1 to 10 and pages 8 to 19 during testing. The ranges overlapped on purpose, and the tool did not mind.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reordering.&lt;/strong&gt; "Swap the first two pages." The assistant calls &lt;code&gt;reorder_pages&lt;/code&gt; with the complete new sequence of page numbers. In my test I swapped pages 1 and 2 of a 19-page file, and the new file came back with all 19 pages. I did not open the result to eyeball the order, so check it yourself for anything that matters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rotating.&lt;/strong&gt; "Pages 4 and 5 are sideways, fix them." &lt;code&gt;rotate_pages&lt;/code&gt; takes the page numbers and a rotation of 90, 180 or 270 degrees. Ninety is clockwise, and 270 is counter-clockwise. Say which way a page looks wrong and the assistant works out the angle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deleting.&lt;/strong&gt; "Delete pages 3 and 7." &lt;code&gt;delete_pages&lt;/code&gt; returns a new file with those pages removed.&lt;/p&gt;

&lt;p&gt;All of these lean on one small tool: &lt;code&gt;get_file_info&lt;/code&gt;. It returns the page count, and it tells the assistant whether the file is encrypted. A good assistant calls it first so that it never guesses at page numbers. If you ask for page 25 of an 18-page file, the right behavior is for it to say so rather than fail halfway.&lt;/p&gt;

&lt;p&gt;A practical tip: always say "keep the original". Every one of these tools already leaves your input alone and creates a new file, but saying it makes the assistant name the new file clearly, so you know which one to download.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 5: How to clean up a combined PDF
&lt;/h2&gt;

&lt;p&gt;This is the job that sold me on the whole idea. Combine two exports of the same report, or a scan with a rescan, and you end up with repeated pages and blank ones. Cleaning that by eye in a 22-page file is slow and easy to get wrong.&lt;/p&gt;

&lt;p&gt;I ran the whole sequence with PDFHaul's public Duplicate Detection Challenge file, a 19-page PDF with a published answer key. Here is exactly what happened.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: make a messy file.&lt;/strong&gt; I split the challenge set into pages 1 to 10 and pages 8 to 19, so pages 8, 9 and 10 existed in both files. Then I merged them into one 22-page PDF, which is what you get when two overlapping exports are combined.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: detect.&lt;/strong&gt; I asked the assistant to find repeated pages. &lt;code&gt;remove_duplicate_pages&lt;/code&gt; flagged 10 of the 22 pages and changed nothing. It labels each match as either exact or content:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flagged page&lt;/th&gt;
&lt;th&gt;Duplicate of&lt;/th&gt;
&lt;th&gt;Match type&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2, 3&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9, 10&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11, 12, 13&lt;/td&gt;
&lt;td&gt;8, 9, 10&lt;/td&gt;
&lt;td&gt;exact (the overlap I created)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16, 17&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;exact (blank pages)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;An exact match is a byte-for-byte copy. A content match is a page that looks the same but was produced differently, for example by a different generator or after recompression. I treated them differently on purpose. Exact copies I was ready to remove. Content matches I held back for a human decision.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: delete only what I approved.&lt;/strong&gt; I asked for pages 11, 12, 13, 16 and 17 to be deleted. &lt;code&gt;delete_pages&lt;/code&gt; returned a new 17-page file and left the 22-page original in place.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: check.&lt;/strong&gt; I ran detection again on the 17-page file. It flagged only the five content-match pages I had held back. Every flag agreed with the answer key.&lt;/p&gt;

&lt;p&gt;Two things did not happen, and both are known and published. The simulated rescans of a page were not flagged, because noisy rescans are a gap in the detector. And the near-identical invoice pages, which differ only in an invoice number and a small amount, were correctly left alone.&lt;/p&gt;

&lt;p&gt;This is one test set that PDFHaul built itself, so it shows the workflow works and tells you nothing about how detection performs on your files. Treat flagged pages as candidates, not verdicts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blank pages.&lt;/strong&gt; A separate tool, &lt;code&gt;remove_empty_pages&lt;/code&gt;, finds blanks in the same report-then-delete way. On the unmodified 19-page challenge set it flagged pages 12, 13 and 14 as empty. That matches the blank pages the duplicate run treated as copies of each other earlier. After a flag like that, the assistant should show you the page numbers and wait before calling &lt;code&gt;delete_pages&lt;/code&gt;. Blank in this sense means no content, so a page that is nearly empty apart from a faint scan mark may or may not count. Look at the list.&lt;/p&gt;

&lt;p&gt;A prompt that sets this up well:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Merge these two PDFs. Then check the result for duplicate pages and blank pages. Show me the page numbers and which pages they repeat. Don't delete anything until I say so.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Chapter 6: How to convert PDFs and extract tables
&lt;/h2&gt;

&lt;p&gt;PDFHaul converts in both directions. &lt;code&gt;pdf_to_word&lt;/code&gt; makes an editable .docx. &lt;code&gt;pdf_to_excel&lt;/code&gt; converts the whole document to a spreadsheet. &lt;code&gt;pdf_to_powerpoint&lt;/code&gt; and &lt;code&gt;pdf_to_images&lt;/code&gt; produce slides and one image per page, in PNG or JPG. Going the other way, &lt;code&gt;word_to_pdf&lt;/code&gt;, &lt;code&gt;excel_to_pdf&lt;/code&gt; and &lt;code&gt;powerpoint_to_pdf&lt;/code&gt; turn Office files into PDFs.&lt;/p&gt;

&lt;p&gt;I tested Word conversion on a real document and opened the result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A real document with tables.&lt;/strong&gt; I converted a two-page science worksheet with three tables (SEDL's data tables sample) and the result was good. All three tables arrived as real, editable Word tables. The 12-row land speed records table had every value in the right row and column, and the other two tables matched the original as well. Headings, bold text, the red safety notes and the web link survived, and so did the footer and page numbers. It was not flawless. Text alignment inside the cells was uneven, one table ran slightly past the right margin so the last digits of a few cells were clipped, and a long cell value wrapped awkwardly. Expect to spend a minute tidying layout, not retyping data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it on your own files.&lt;/strong&gt; This was a clean, text-and-tables document, which is the kind of file Word conversion handles best. Layouts vary a lot, so run it on the PDF you actually need converted and look over the result. Reports, contracts, forms and worksheets are a good place to start, and your results on harder layouts are what tell you how far to lean on it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Whole document or just the tables?
&lt;/h3&gt;

&lt;p&gt;This is the choice most people miss. There are two spreadsheet tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;pdf_to_excel&lt;/code&gt; converts the whole document.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;extract_tables&lt;/code&gt; pulls out only the tables, one sheet per table.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to analyze figures, &lt;code&gt;extract_tables&lt;/code&gt; is usually the better pick. If you want the whole page layout carried over, use &lt;code&gt;pdf_to_excel&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  What a good extraction looks like
&lt;/h3&gt;

&lt;p&gt;I ran &lt;code&gt;extract_tables&lt;/code&gt; on a public sample PDF with two tables (samplelib's sample-table.pdf) and checked the workbook against the source cell by cell. The result was clean: one sheet per table, correct headers and all 16 data rows matching. The ID, value and money columns were stored as numbers, with the dollar formatting kept, so the figures can be summed straight away.&lt;/p&gt;

&lt;p&gt;That is an easy file: two ruled tables and a single header row. It proves the workflow, and it does not promise your document will behave the same way. When I pushed it on a scientific paper with grouped, multi-level column headers, the tables came out split across sheets, with the group labels pulled out as separate one-cell sheets and the row labels separated from their values. I did not verify the values against the paper itself, and the structure was not usable without rebuilding it by hand.&lt;/p&gt;

&lt;p&gt;One more finding connects the two tools. On that same science worksheet, &lt;code&gt;extract_tables&lt;/code&gt; pulled out only one of the three tables as a proper table, while &lt;code&gt;pdf_to_word&lt;/code&gt; rebuilt all three as real tables. If table extraction misses tables in your file, try Word conversion and copy the tables from there.&lt;/p&gt;

&lt;p&gt;So here is the honest rule: simple tables with clear rows and columns extract well. Grouped headers, merged cells and tables that run across pages are harder for any extractor. Open the workbook and compare a few rows with the page before you trust a total.&lt;/p&gt;

&lt;p&gt;A prompt to try:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Extract all the tables from this PDF into a spreadsheet, one sheet per table. Then compare the first and last rows of each table with the PDF and tell me if anything looks wrong.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The assistant cannot see the finished workbook unless it can download it, so the check is only as good as what it can read. When it matters, open the file yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 7: How to make a scan searchable
&lt;/h2&gt;

&lt;p&gt;A scanned PDF is a picture of a page. You cannot select the words, search for a name or copy a paragraph. &lt;code&gt;ocr_pdf&lt;/code&gt; runs optical character recognition and returns a new PDF with a real text layer behind the image, so the page looks the same but behaves like text.&lt;/p&gt;

&lt;p&gt;I ran it on the challenge set, which contains scanned pages. The tool reported that OCR had been applied and returned a searchable PDF of about 10.6 MB, down from 13.2 MB.&lt;/p&gt;

&lt;p&gt;A few details that save time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It skips files that don't need it.&lt;/strong&gt; If the PDF already has a usable text layer, the tool does not run OCR and tells you so. The result reports whether OCR was applied, so a good assistant relays that rather than claiming it did work it did not do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can force a second pass.&lt;/strong&gt; If the existing text layer is garbled, ask for a forced re-recognition.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set the language.&lt;/strong&gt; The tool supports 15 languages, including English, Spanish, French, German, Portuguese, Italian, Arabic, Chinese (simplified), Japanese, Korean, Russian, Hindi, Indonesian, Turkish and Dutch. English is the default, so say so if your document is in another language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You do not need it before Word conversion.&lt;/strong&gt; &lt;code&gt;pdf_to_word&lt;/code&gt; already runs OCR on scanned pages by itself. Use &lt;code&gt;ocr_pdf&lt;/code&gt; when you want the result to stay a PDF, for example to make it searchable or before another PDF-only step.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Chapter 8: How to chain several jobs into one request
&lt;/h2&gt;

&lt;p&gt;Once you trust the individual tools, the real saving is combining them. A single message can drive a whole workflow, and the assistant works out the order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bring in a file from the web.&lt;/strong&gt; &lt;code&gt;upload_from_url&lt;/code&gt; fetches a PDF from a public address. The address must point straight at the PDF file. A web page that merely links to a PDF will be rejected, and so will a link that redirects somewhere else. In my testing, a link that turned out to be an HTML page failed with an "invalid or corrupt PDF" error. If an upload fails, open the address in a browser. If you see the PDF itself, the link is good. If you see a page, find the direct file link.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Get the result.&lt;/strong&gt; &lt;code&gt;get_file_url&lt;/code&gt; returns a signed download link for any file in your account. Most assistants will give you that link at the end of a job.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Put it together.&lt;/strong&gt; A few chains that work well:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Download the PDF at this address, compress it to under 5 MB, and give me the link.&lt;/p&gt;

&lt;p&gt;Merge these four PDFs in this order, find duplicate and blank pages, and show me the list before you delete anything.&lt;/p&gt;

&lt;p&gt;Make this scan searchable, then pull the tables out of it into a spreadsheet.&lt;/p&gt;

&lt;p&gt;Split this 80-page PDF into four files of 20 pages each and tell me the name of each file.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For anything with a deletion in it, put the review step in the prompt itself. "Show me before you delete" is a sentence that costs nothing and prevents most mistakes.&lt;/p&gt;

&lt;p&gt;There is one more tool worth knowing: &lt;code&gt;edit_metadata&lt;/code&gt;. It changes document properties such as the title and author. That is useful for cleaning up a file before you share it, especially one that was exported with the wrong title.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 9: Limits, privacy and troubleshooting
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Usage limits.&lt;/strong&gt; Each API key is limited to 60 calls an hour across all tools, and &lt;code&gt;upload_from_url&lt;/code&gt; is limited to 10 calls an hour. A long chain that touches many files can use up the allowance, so plan big jobs accordingly. If the limit is hit, wait for the rolling hour to move along.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;File retention.&lt;/strong&gt; Files are deleted two hours after processing, whether you use the website or an assistant. I saw this in practice. When I came back to my earlier test files a few hours later, every one was gone and I had to upload them again. Download your results when a job finishes. Do not treat the account as storage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Originals stay safe.&lt;/strong&gt; The editing tools create new files and leave their inputs unchanged. Destructive steps are split into a report call and a delete call, so nothing disappears without a request for it.&lt;/p&gt;

&lt;p&gt;What to expect when things go wrong:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"Invalid or corrupt PDF" on upload.&lt;/strong&gt; The link probably points at a web page, or redirects. See Chapter 8. Files that are password-protected or restricted may also be refused. I have not confirmed which restrictions trigger this, so if a file you can open on your own computer is rejected, try removing its protection first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"File not found".&lt;/strong&gt; The file has probably passed the two-hour limit. Upload it again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A timeout or a gateway error.&lt;/strong&gt; On a large job you may see a "Bad Gateway" message even though the converted file was created. Ask the assistant to list your files before running the job again. If no file appears, try a smaller file or split the PDF first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Results look worse than expected.&lt;/strong&gt; Compression, OCR and conversion all depend on the quality of the source. Check the output, and say so when it is wrong. The assistant can retry with different settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Duplicate detection missed a page.&lt;/strong&gt; Noisy rescans are a known gap. The detector reports candidates, and you decide.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Privacy.&lt;/strong&gt; A file you give the assistant is processed by PDFHaul and deleted within two hours. The assistant itself is a separate service, so whatever it reads or summarizes is governed by its provider's rules. If a document is sensitive, check that policy as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 10: Twelve prompts to copy
&lt;/h2&gt;

&lt;p&gt;Paste these into your assistant and change the details.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;"List my PDFHaul files, with page counts."&lt;/li&gt;
&lt;li&gt;"Compress this PDF to under 5 MB. Start with medium and go stronger only if you need to."&lt;/li&gt;
&lt;li&gt;"Merge these PDFs in this order: [list]. Keep the originals."&lt;/li&gt;
&lt;li&gt;"Split pages 1 to 10 into one file and the rest into another."&lt;/li&gt;
&lt;li&gt;"Pages 3 and 4 are upside down. Fix them."&lt;/li&gt;
&lt;li&gt;"Put the last page first and keep everything else in the same order."&lt;/li&gt;
&lt;li&gt;"Check this file for duplicate pages and blank pages. Show me page numbers and which pages are repeated. Don't delete anything yet."&lt;/li&gt;
&lt;li&gt;"Delete pages 11, 12 and 13 and give me the new file."&lt;/li&gt;
&lt;li&gt;"Make this scanned PDF searchable. The language is [language]."&lt;/li&gt;
&lt;li&gt;"Convert this PDF to Word and tell me which pages might have formatting problems."&lt;/li&gt;
&lt;li&gt;"Extract the tables from this PDF into a spreadsheet, one sheet per table, then check the first and last rows against the PDF."&lt;/li&gt;
&lt;li&gt;"Download the PDF at this address and tell me how many pages it has."&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try it on the file you have open right now
&lt;/h2&gt;

&lt;p&gt;Pick the PDF that is annoying you today: too big, in the wrong order, scanned or full of repeats. Connect your assistant using Chapter 2, then paste the matching prompt from Chapter 10. If it does something surprising, tell me. Setup details and the full tool reference are at &lt;a href="https://www.pdfhaul.com/mcp-server" rel="noopener noreferrer"&gt;pdfhaul.com/mcp-server&lt;/a&gt;. If you want to understand when a dedicated server beats a one-off script, read "If AI Can Create Documents, Why Do We Need Document MCPs?" on the PDFHaul blog.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.pdfhaul.com/blog/pdf-mcp-server-guide" rel="noopener noreferrer"&gt;pdfhaul.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>11 MCP Servers That Prove MCP Isn't Dead</title>
      <dc:creator>Peter Ndumia</dc:creator>
      <pubDate>Fri, 16 Oct 2026 01:14:10 +0000</pubDate>
      <link>https://dev.to/peter_ndumia_pdfhaul/11-mcp-servers-that-prove-mcp-isnt-dead-cpo</link>
      <guid>https://dev.to/peter_ndumia_pdfhaul/11-mcp-servers-that-prove-mcp-isnt-dead-cpo</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: I'm the founder of PDFHaul, which is #5 on this list. Originally published on the &lt;a href="https://www.pdfhaul.com/blog/11-mcp-servers-not-dead" rel="noopener noreferrer"&gt;PDFHaul blog&lt;/a&gt;, where the full source list with links lives.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;An AI assistant can explain how to compress a PDF. That is useful once.&lt;/p&gt;

&lt;p&gt;An AI assistant that can find the file, compress it, return the result, update a project page, and help create the image for an announcement is useful every day.&lt;/p&gt;

&lt;p&gt;That difference is why the “MCP is dead” argument misses something important.&lt;/p&gt;

&lt;p&gt;The criticism is real. Developers have connected poorly designed MCP servers, filled their agents’ context with tool descriptions, wrestled with authentication, and wondered why they did not simply call an API or use a command-line tool. In “MCP is dead. Long live the CLI,” Eric Holmes goes further. He argues that MCP offers no real-world benefit and that most work would be simpler, easier to debug, and more reliable with a good API and CLI. He cites composability, established authentication, fewer moving parts, and the ability for humans and agents to use the same commands. He also acknowledges that MCP can be useful when no CLI exists and that some cases may favor a standard interface.&lt;/p&gt;

&lt;p&gt;That is a serious argument. If MCP merely wraps a CLI with extra setup, it has to justify the cost. But the wider claim that the protocol offers no practical benefit needs to account for what teams can do with connections built for AI clients across many services, not only what a local coding agent can do in a terminal.&lt;/p&gt;

&lt;p&gt;MCP, the Model Context Protocol, gives an AI application a common way to discover and use capabilities provided by another system. It does not make every integration good. It does make a particular kind of workflow possible without rebuilding a separate connection for every assistant and every service.&lt;/p&gt;

&lt;p&gt;Look at what people are already doing with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Azure turns cloud resources into tools an assistant can use
&lt;/h2&gt;

&lt;p&gt;Imagine a developer investigating a failing application. They need to check a resource, inspect telemetry, and find the relevant service documentation. Without connected tools, the assistant can suggest commands, but the developer must keep moving between the chat, terminal, portal, and documentation.&lt;/p&gt;

&lt;p&gt;The Azure MCP Server exposes Azure operations to compatible AI clients. Microsoft documents examples such as listing storage accounts and running KQL queries. In supported Visual Studio workflows, its tools can also help browse resources, run diagnostics, and work with deployments. Access remains tied to Azure credentials and permissions.&lt;/p&gt;

&lt;p&gt;That does not mean an agent should make unreviewed production changes. It means the agent can work with the same relevant cloud context while the developer remains in control.&lt;/p&gt;

&lt;p&gt;A CLI is valuable here too. In fact, Microsoft’s Azure tooling uses CLIs alongside MCP. The practical choice is which interface helps this particular agent and user complete the task reliably.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Microsoft Learn gives the assistant a route back to the documentation
&lt;/h2&gt;

&lt;p&gt;An assistant can sound confident about a Microsoft feature it remembers incorrectly. That is particularly frustrating when product documentation changes.&lt;/p&gt;

&lt;p&gt;The Microsoft Learn MCP Server lets a compatible client search Microsoft’s official technical documentation, fetch articles, and search code samples. It is a publicly available remote server.&lt;/p&gt;

&lt;p&gt;This is a quieter example of MCP’s value. No dramatic autonomous agent is required. A developer asks a question, the assistant checks the relevant documentation, and the answer can be grounded in a source that the developer can inspect.&lt;/p&gt;

&lt;p&gt;The capability is modest. That is precisely why it matters. Better access to current information is often more useful than another impressive-looking demo.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Notion connects an assistant to the work people have already organized
&lt;/h2&gt;

&lt;p&gt;A team’s project knowledge rarely lives in one prompt. It lives across briefs, decision logs, tasks, notes, and databases. An assistant without access to that material can produce polished answers that ignore what the team has decided.&lt;/p&gt;

&lt;p&gt;Notion MCP is a hosted server that lets an authorized MCP client search, read, create, and update accessible Notion content. Notion describes workflows in which a client searches pages, creates a page from the results, and updates its properties. The connection uses OAuth and is subject to workspace access controls.&lt;/p&gt;

&lt;p&gt;Consider a project handoff. Instead of copying five pages into a chat, a user could ask an authorized assistant to find the current brief and decisions, draft a handoff page, and place it in the right workspace. The value comes from connecting the assistant’s reasoning to the team’s actual information and actions.&lt;/p&gt;

&lt;p&gt;Could a developer write directly against the Notion API? Of course. Notion’s own MCP server uses its API. MCP’s value is in making those capabilities available through a standard interface to compatible clients, with a connection the user can authorize.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Higgsfield shows that MCP is about creation, not just retrieval
&lt;/h2&gt;

&lt;p&gt;Many discussions treat MCP as a way for an assistant to look things up. Creative tools show the other half of the story: the assistant can also help produce an output.&lt;/p&gt;

&lt;p&gt;Higgsfield’s MCP offering connects supported AI clients to image and video generation workflows. Its examples include adapting an ad into different aspect ratios and turning a creative prompt into generated visuals.&lt;/p&gt;

&lt;p&gt;The interesting part is the workflow around the generation. A person can describe the objective, refine the direction in conversation, invoke a creative capability, inspect what comes back, and iterate. The assistant is no longer limited to writing a prompt that the person must paste somewhere else.&lt;/p&gt;

&lt;p&gt;That does not guarantee that every image is good or that every generation is instant. It removes a handoff between deciding what to make and invoking the tool that can make it.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. PDFHaul makes document work available inside the conversation
&lt;/h2&gt;

&lt;p&gt;PDFs create their own handoffs. A person has a file and wants a result: merge documents, split out certain pages, OCR a scan, extract tables, or convert a report to Word. A general assistant can explain how to do those tasks. It needs access to document operations to carry them out.&lt;/p&gt;

&lt;p&gt;The PDFHaul MCP server exposes 23 PDF tools to compatible clients, including merge, split, compression, OCR, conversion, table extraction, and exact-match duplicate-page removal. It also exposes file operations such as listing files and retrieving temporary download URLs. Users connect it with a PDFHaul API key.&lt;/p&gt;

&lt;p&gt;For example, a user could ask an assistant to extract tables from a PDF into a spreadsheet, or to make a scanned PDF searchable before working with its contents. The assistant can invoke the relevant PDFHaul operation rather than stop at a set of instructions.&lt;/p&gt;

&lt;p&gt;We built this because document work is often one step inside a larger job. People do not wake up wanting to “use a PDF tool.” They want to finish a report, prepare a submission, compare figures, or share a clean file. MCP allows PDF processing to become an available action within that broader workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. GitHub moves the assistant from code suggestions to project work
&lt;/h2&gt;

&lt;p&gt;A coding assistant can draft a patch while missing the issue that prompted it, the pull request that attempted it last month, and the repository rules around the change. A developer then spends time gathering that context by hand. The GitHub MCP Server gives a compatible assistant a way to retrieve repository information, list pull requests, and work with issues through GitHub tools. GitHub also lets users configure toolsets, so an integration need not expose everything at once.&lt;/p&gt;

&lt;p&gt;Picture a developer asking why a bug keeps returning. With appropriate access, an assistant can examine the issue history and relevant pull requests before suggesting a fix. It can help open a follow-up issue with the findings. That is more useful than confidently producing a patch from one pasted error message. The developer still needs to inspect the evidence, review the code, and decide what to merge.&lt;/p&gt;

&lt;p&gt;This example also tests the familiar claim that the command line can do the same thing. The GitHub CLI is excellent for a developer in a terminal. An MCP connection can bring defined GitHub capabilities into a compatible assistant with configurable toolsets. The best interface depends on the agent, the user, and the permissions available. The point is that MCP makes project context and project actions accessible through a common contract.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Figma gives an assistant the design details that screenshots leave out
&lt;/h2&gt;

&lt;p&gt;A screenshot tells a coding assistant what a screen looks like. It rarely tells the whole story about components, variables, layout, and the design system that produced it. If those details are absent, generated code can appear similar while drifting from the actual design. A person then has to explain spacing, naming, responsive behavior, and component choices all over again.&lt;/p&gt;

&lt;p&gt;Figma’s MCP server exposes structured design context to supported development clients. Its documentation describes access to design elements such as components, variables, layout information, and, in supported setups, Code Connect mappings. The purpose is to help an agent implement a design with the context the design team actually used. It is not a promise that one tool call turns any mockup into production code.&lt;/p&gt;

&lt;p&gt;A product team could hand a selected frame to a coding agent and ask it to build the screen using the existing components. The agent can inspect the design context while it works; a developer can compare the result to the design and test the behavior. That shortens the gap between a visual decision and an implementation decision. The integration is useful precisely because a design file carries more structure than a flat image.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Atlassian brings issues and decisions into the same task
&lt;/h2&gt;

&lt;p&gt;A product change often begins in Jira, is explained in Confluence, and ends in a repository. The assistant working on the code may see only the last instruction, missing the acceptance criteria or a decision buried in a project page. That is how a technically sound change can solve the wrong problem.&lt;/p&gt;

&lt;p&gt;Atlassian’s Rovo MCP Server is a cloud-hosted connection for compatible AI tools. Atlassian documents access to Jira and Confluence context, and its current guidance covers other Atlassian data in supported configurations. Its controls include the organization’s access policies. A team can give a compatible assistant the ability to look up the work item and supporting documentation, subject to what the connected user is allowed to see.&lt;/p&gt;

&lt;p&gt;Consider a feature request with an ambiguous phrase such as “export the report.” The issue may specify the fields, while a Confluence decision records why one format was chosen. Reading those sources before implementation changes the quality of the answer. Afterward, an authorized agent might update the work item with what was done. The usefulness is not that Jira has an API. It is that the assistant can encounter the work in its original context at the point of need.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Google Maps grounds a conversation in actual places and routes
&lt;/h2&gt;

&lt;p&gt;Not every valuable tool call is about software development. Ask a general assistant for nearby locations and it may rely on stale knowledge or produce an answer without a traceable place. The problem is even clearer for routes, where distance and duration depend on the actual origin and destination.&lt;/p&gt;

&lt;p&gt;Google Maps Platform’s Maps Grounding Lite offers an MCP server with tools for place search, weather lookup, and route information. It can return place identifiers, coordinates, and Google Maps links alongside results. This is a concrete example of an assistant retrieving real-world context through a service built for that domain. It does not make every recommendation correct, and a user should still inspect the returned places and route details.&lt;/p&gt;

&lt;p&gt;Imagine planning visits to several public locations. The assistant can ask the Maps service for candidate places, use the returned identifiers to distinguish similarly named locations, and request route information. It can then explain the options with linked places instead of pretending that its language model memory is a live map. MCP matters here because the same compatible client that handles a document or workspace page can also call a geospatial capability when the task requires one.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. Cloudflare shows a way to keep a large service usable
&lt;/h2&gt;

&lt;p&gt;One of the strongest objections to MCP is tool sprawl. If a server exposes hundreds of endpoints as separate tool descriptions, an agent may spend more context reading the menu than doing the job. Cloudflare’s own MCP servers are an interesting answer to that problem rather than a denial that it exists.&lt;/p&gt;

&lt;p&gt;Cloudflare documents a search-and-execute pattern for its services. Instead of loading every API endpoint as an individual MCP tool, the agent can search a typed representation of the API and execute against the relevant capability. Cloudflare says an equivalent server with every endpoint exposed as a native tool would consume more than one million tokens of tool definitions. That comparison is Cloudflare’s, and the practical results depend on the client and task, but the design principle is clear: expose discoverable capability without making the model carry an enormous catalog.&lt;/p&gt;

&lt;p&gt;A developer investigating a deployment or security configuration does not need every Cloudflare endpoint in the prompt. They need a reliable route to the small part of the service relevant to the question, plus appropriate account permissions. MCP gives Cloudflare a standard entry point while its server design addresses scale. This is the kind of implementation detail critics are right to demand, and the kind builders can improve.&lt;/p&gt;

&lt;h2&gt;
  
  
  11. Playwright lets an assistant inspect what a web app actually does
&lt;/h2&gt;

&lt;p&gt;An assistant can write a plausible test for a web page it has never opened. It may invent a button label, miss an error state, or assume a form submits as intended. The Playwright MCP server, maintained in Microsoft’s Playwright project, gives compatible clients browser automation tools that use structured accessibility snapshots. The assistant can navigate, inspect page elements, interact with controls, and observe the result.&lt;/p&gt;

&lt;p&gt;For a checkout-free signup flow or a document upload page, a developer could ask an agent to open the site, try the path, and report where it fails. The agent can read the page structure as it goes instead of relying entirely on a screenshot or a guessed selector. This is useful for exploratory debugging and iterative testing. It is not a substitute for a stable automated test suite, and any agent acting in a browser should have a clearly scoped environment.&lt;/p&gt;

&lt;p&gt;Playwright also offers a CLI for coding agents. Its documentation explains that a CLI can be efficient for some coding workflows, while MCP suits specialized iterative loops with persistent browser state. That is a more useful conclusion than a protocol funeral. The same project can support both interfaces because they serve different working patterns.&lt;/p&gt;

&lt;h2&gt;
  
  
  What these examples prove and what they do not
&lt;/h2&gt;

&lt;p&gt;These eleven examples do not constitute one magical assistant that can access every service at once. A client must support the relevant connection, the user or organization must authorize it, and the server must expose the needed capability. A successful tool call also does not establish that the resulting answer is accurate. The assistant must interpret the output, and a human should review consequential actions.&lt;/p&gt;

&lt;p&gt;They do establish a narrower and stronger point: teams across cloud operations, documentation, workspace knowledge, media creation, document processing, code collaboration, design, project management, maps, infrastructure, and browser automation have found a use for a shared connection pattern. Those are different domains with different underlying APIs. The commonality is the assistant’s need to discover a capability, provide the right inputs, and receive usable output.&lt;/p&gt;

&lt;p&gt;The measure of success is not the number of MCP servers installed. It is whether a particular connection reduces a real handoff while keeping permissions understandable and results verifiable. That is why a small, focused server can be more valuable than a giant catalog, and why an agent should ask for confirmation before an irreversible action. Better servers make the protocol feel less like plumbing and more like completed work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The strongest CLI argument still deserves a direct answer
&lt;/h2&gt;

&lt;p&gt;Holmes is right that a well-designed CLI is composable, inspectable by a human, and often already connected to an established login. A developer can pipe a huge Terraform plan through local filters without sending the whole thing into a model’s context. That is a genuine advantage. An MCP server that dumps the entire plan or replicates every command with worse authentication has not improved the workflow.&lt;/p&gt;

&lt;p&gt;But “the CLI works well here” does not establish “MCP provides no real-world benefit.” Several examples above are hosted services used in AI clients that are not simply shells on the user’s machine. A person connecting an authorized Notion workspace, a Figma design, a Maps data service, or a PDF operation can use a client’s tool discovery and structured calls without each client separately learning a vendor’s CLI installation, command syntax, output conventions, and login flow. An official server can package domain-specific operations and authorization for more than one compatible client. That is a practical benefit if the integration is well built, even though its underlying service still has an API.&lt;/p&gt;

&lt;p&gt;Nor does an official MCP server make a CLI obsolete. GitHub and Playwright provide especially useful counterexamples because both interfaces exist. One can prefer the CLI for a local coding loop and the MCP connection for a different client or an iterative tool workflow. The claim worth defending is conditional and testable: where a server gives an assistant relevant capabilities with less integration work and acceptable reliability, MCP earns its place. These published examples demonstrate concrete capabilities, not measured proof that MCP is faster than a CLI in every use case. That narrower conclusion is enough to challenge an obituary.&lt;/p&gt;

&lt;h2&gt;
  
  
  The critics are right about bad MCP servers
&lt;/h2&gt;

&lt;p&gt;None of these examples proves that every MCP server is worth installing.&lt;/p&gt;

&lt;p&gt;A server with dozens of vague tools can be harder for an agent to use than a focused CLI. A thin wrapper around an existing API may add little value. Authentication and permissions need careful design. Outputs need to be useful to the model without flooding its context. Any action that changes data deserves an appropriate review path.&lt;/p&gt;

&lt;p&gt;These are product and implementation questions. They should be tested, not waved away.&lt;/p&gt;

&lt;p&gt;Quandri Engineering, for example, published measurements criticizing context use and reliability. Its article now includes an update saying that deferred tool loading in current Claude Code versions largely addressed the specific context-bloat problem it measured, while other concerns remain. That is what a useful technical debate looks like: make a claim, measure it, and revise it when the tools change.&lt;/p&gt;

&lt;p&gt;MCP is also evolving. Its maintainers have published a 2026 roadmap covering scalability, governance, and enterprise use. A roadmap is not proof that every problem is solved, but it is evidence of an actively developed protocol rather than an abandoned idea.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question is what the assistant needs to do
&lt;/h2&gt;

&lt;p&gt;If an agent needs one local command and a well-documented CLI already exists, use the CLI.&lt;/p&gt;

&lt;p&gt;If an application needs a reusable, permission-aware connection to a service that many compatible assistants may use, an MCP server can make sense. If the task spans cloud resources, documentation, workspace content, creative production, and PDFs, a shared way to expose those capabilities becomes more compelling.&lt;/p&gt;

&lt;p&gt;Azure, Microsoft Learn, Notion, Higgsfield, PDFHaul, GitHub, Figma, Atlassian, Google Maps, Cloudflare, and Playwright illustrate different parts of that picture. Their existence does not prove that any single combined workflow is automatically available in every client. It shows that useful capabilities are being made available through the same protocol.&lt;/p&gt;

&lt;p&gt;That is the part the obituary gets wrong.&lt;/p&gt;

&lt;p&gt;MCP does not need to replace APIs or CLIs to be valuable. APIs remain the underlying service interfaces. CLIs remain excellent tools, especially for developers. MCP gives compatible AI applications a structured way to use capabilities exposed by those systems.&lt;/p&gt;

&lt;p&gt;The interesting question in 2026 is no longer, “Can an assistant talk about the work?”&lt;/p&gt;

&lt;p&gt;It is, “Can the assistant reach the right tools, with the right permissions, and help finish it?”&lt;/p&gt;

&lt;p&gt;That is why MCP is still worth building well.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Sources: the full list of references, with links, is in the &lt;a href="https://www.pdfhaul.com/blog/11-mcp-servers-not-dead" rel="noopener noreferrer"&gt;original post&lt;/a&gt;. If you want to try the PDFHaul MCP server from this article, setup steps are in the &lt;a href="https://www.pdfhaul.com/mcp-server/docs" rel="noopener noreferrer"&gt;docs&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>devtools</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Why Extracting Tables From a PDF Is Harder Than It Looks (and How We Actually Do It)</title>
      <dc:creator>Peter Ndumia</dc:creator>
      <pubDate>Wed, 19 Aug 2026 00:36:56 +0000</pubDate>
      <link>https://dev.to/peter_ndumia_pdfhaul/why-extracting-tables-from-a-pdf-is-harder-than-it-looks-and-how-we-actually-do-it-2llg</link>
      <guid>https://dev.to/peter_ndumia_pdfhaul/why-extracting-tables-from-a-pdf-is-harder-than-it-looks-and-how-we-actually-do-it-2llg</guid>
      <description>&lt;p&gt;If you have ever copy-pasted a table out of a PDF, you already know what happens. Rows collapse into one long line of text. Columns interleave. Numbers land in the wrong cell, or no cell at all. The table on the page looks perfectly structured, but a PDF has no real concept of "table." It only knows where individual characters sit on a page. Every extraction tool, ours included, has to reconstruct the table from scratch, using nothing but the position of each word.&lt;/p&gt;

&lt;p&gt;That gap between "looks like a table" and "is structured data" is where almost every free PDF tool falls apart. Here is how we handle it, what actually works, and where it still doesn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two different jobs, two different tools
&lt;/h2&gt;

&lt;p&gt;PDFHaul splits this into two separate tools because they solve different problems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.pdfhaul.com/pdf-to-excel" rel="noopener noreferrer"&gt;PDF to Excel&lt;/a&gt;&lt;/strong&gt; rebuilds the whole document as a single spreadsheet, in the order it appears on the page: form labels, key-value pairs, section titles, and tables all together. It is for documents where you want the full content, not just the numbers, things like invoices, time sheets, and reports.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.pdfhaul.com/extract-tables" rel="noopener noreferrer"&gt;Extract Tables&lt;/a&gt;&lt;/strong&gt; does the opposite. It ignores everything that isn't a table and hands back one clean sheet per table, nothing else. It is for people who want structured data out, ready to sum, sort, and filter, not a copy of the document.&lt;/p&gt;

&lt;p&gt;Both tools share the same underlying geometry engine. The difference is what each one keeps and what it throws away.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Extract Tables actually decides what's a table
&lt;/h2&gt;

&lt;p&gt;The core problem with table extraction is that "looks tabular" and "is tabular" are not the same thing. A vector chart's axis box, a form's outlined signature field, and a two-column list of allergen names all produce something that a naive extractor will happily read as a grid. None of them are tables.&lt;/p&gt;

&lt;p&gt;Our pipeline handles this in four phases, all before anything is written to a spreadsheet:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phase 1: classify the page.&lt;/strong&gt; Every page is scored as bordered (has ruled lines or filled-rectangle grid lines), stream (no borders, but rows visibly span both sides of a column gap), columnar (independent parallel lists that never interact), or plain text.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phase 2 and 3: run the right extractor for the layout.&lt;/strong&gt; Bordered pages go through Camelot's lattice mode. Borderless but structured pages go through Camelot's stream mode. Neither result is trusted blindly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phase 4: catch what the first pass missed, and gate everything.&lt;/strong&gt; This is the important part. Every candidate table, whether it came from Camelot, from an explicit rectangle grid, or from our own zone-based word extraction, has to pass a classifier before it is counted as a table at all. The classifier checks column count, row density, and how numeric or short the cell contents are. A form field's outline box or a chart's axis lines will fail this check and get demoted to plain text instead of becoming a two-cell "table." Without this gate, Camelot's own false positives, grid-shaped chart elements, form outlines, would get counted as extracted tables. With it, only genuine tables make it through.&lt;/p&gt;

&lt;p&gt;Underneath all four phases sits a shared geometry layer that does the actual measuring: it finds page gutters by picking the split point that divides the text most evenly (not just the widest gap, which a table's own label-and-value gap can be wider than), clusters words into lines by their vertical center rather than their top or bottom edge (so bold headers and footnote superscripts don't throw off row grouping), strips dot leaders like "Section..........12" before measuring column gaps (leaders fill the whitespace a gap detector relies on), and merges a wrapped label back onto the row it belongs to before anything gets written out.&lt;/p&gt;

&lt;p&gt;Tables that span a page break get stitched back together too. If two adjacent pages produce tables with the same column count, and the second page's first row looks like a repeat of the first page's header (fuzzy-matched, so "Week No." and "Week Number" still count as the same header), they are joined into one continuous table instead of two separate sheets.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers
&lt;/h2&gt;

&lt;p&gt;We measure this against a verified 20-PDF corpus spanning financial reports, government tenders, laws and regulations, and scientific articles, scored on both cell content and correct row and column placement.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Content accuracy&lt;/th&gt;
&lt;th&gt;Structure accuracy&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;PDF to Excel&lt;/td&gt;
&lt;td&gt;84% average (94% typical)&lt;/td&gt;
&lt;td&gt;79% average (89% typical)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Extract Tables&lt;/td&gt;
&lt;td&gt;84% average (100% typical)&lt;/td&gt;
&lt;td&gt;83% average (100% typical)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Average and typical (median) diverge because a handful of document types outside our core use case, dense mathematical notation and pages built around vector charts, drag the average down. Inside the core use case, financial, business, and legal documents, both tools sit at 83 to 100 percent uniformly across every file we tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it's not good at yet
&lt;/h2&gt;

&lt;p&gt;We would rather tell you this directly than let you find out the hard way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scanned PDFs&lt;/strong&gt; get real table detection too, not just text. We run OCR automatically before extraction starts, no separate step needed. For tables with visible ruled borders, the table-line detection itself runs directly on the rendered page image, so it works whether the underlying PDF has any vector graphics data or not, a scanned bordered table gets picked up the same way a native one would. The honest limit: table shape detection is one thing, text quality is another. A low-resolution or heavily degraded scan can still produce garbled cell content even when the table's structure is found correctly, since that depends on how much a scanner or camera actually captured, not on our extraction logic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pages with charts&lt;/strong&gt; can leak garbage. A vector chart's axis numbers and legend entries currently extract as short text blocks alongside the real content, because the classifier correctly recognizes they aren't tables, but nothing yet recognizes they belong to a chart and should be dropped entirely, keeping only the caption. This is the single biggest gap we're working on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dense academic and mathematical notation&lt;/strong&gt; is a genuinely different layout problem, and accuracy drops to 35 to 52 percent on that category. If your PDF is a math-heavy research paper, expect a rougher result than a financial statement.&lt;/p&gt;

&lt;p&gt;Outside those three cases, financial reports, government forms, contracts, business documents, this is what the tool is actually built for, and the numbers above reflect that.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;For the harder cases above, badly degraded scans, dense academic layouts, chart-heavy pages, we're looking at a premium tier built on Google's Document AI, a cloud model trained specifically on document structure rather than the geometry-based approach described here. It would not replace what's already free, it would be an option for the documents that currently come out rough.&lt;/p&gt;

&lt;p&gt;So we'll ask directly instead of guessing: would you pay for more accurate extraction on your hardest documents, the ones that don't come out clean today? Tell us.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.pdfhaul.com/extract-tables" rel="noopener noreferrer"&gt;Extract Tables&lt;/a&gt; and &lt;a href="https://www.pdfhaul.com/pdf-to-excel" rel="noopener noreferrer"&gt;PDF to Excel&lt;/a&gt; are both free, with no account required for a single file. Upload a PDF and see which one gives you what you need: the full document, or just the numbers.&lt;/p&gt;

</description>
      <category>pdf</category>
      <category>datascience</category>
      <category>productivity</category>
      <category>architecture</category>
    </item>
    <item>
      <title>I Built an MCP Server So AI Assistants Can Process PDFs Directly</title>
      <dc:creator>Peter Ndumia</dc:creator>
      <pubDate>Mon, 03 Aug 2026 19:35:24 +0000</pubDate>
      <link>https://dev.to/peter_ndumia_pdfhaul/i-built-an-mcp-server-so-ai-assistants-can-process-pdfs-directly-80k</link>
      <guid>https://dev.to/peter_ndumia_pdfhaul/i-built-an-mcp-server-so-ai-assistants-can-process-pdfs-directly-80k</guid>
      <description>&lt;p&gt;I run PDFHaul, a free browser and mobile PDF toolkit, as a solo founder. A few months ago I kept running into the same friction point: every time I wanted an AI assistant to help with a PDF task, I had to manually download the file, upload it somewhere, run the tool, then feed the result back into the conversation. For anything involving more than one file, that loop got old fast.&lt;/p&gt;

&lt;p&gt;So I built an MCP server for PDFHaul. This post covers what it does, how it's built, and a few of the harder decisions along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MCP Actually Solves Here
&lt;/h2&gt;

&lt;p&gt;Model Context Protocol gives an AI assistant a standard way to call external tools directly, instead of a person acting as the manual bridge between the assistant and every service it needs. For PDF work specifically, that means an assistant like Claude or Cursor can merge, split, compress, or convert a file as part of a conversation, without a human stepping out to run the tool separately.&lt;/p&gt;

&lt;p&gt;The PDFHaul MCP server exposes 12 tools across four categories: file management, editing, conversion, and compression. It's live at &lt;a href="https://www.pdfhaul.com/mcp-server" rel="noopener noreferrer"&gt;pdfhaul.com/mcp-server&lt;/a&gt;, where you can find setup instructions and generate an API key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;The server runs on the same Node.js/TypeScript and GCP Cloud Run infrastructure as the rest of PDFHaul, which kept the initial build simpler than starting a separate service from scratch. The tools themselves wrap the existing PDF processing logic, so I wasn't rebuilding PDF handling, just exposing it through a new interface.&lt;/p&gt;

&lt;p&gt;A few decisions that took more thought than I expected:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auth.&lt;/strong&gt; API keys are hashed with bcrypt before storage, and requests are authenticated with a combination of the API key and a JWT. I didn't want to store anything resembling a plaintext credential, even for a free product, since API keys tend to get pasted into config files and committed by accident more often than anyone would like to admit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rate limiting.&lt;/strong&gt; In-memory rate limiting per key, tuned conservatively at first. Cloud Run's stateless nature means in-memory limits reset on cold starts, which is a real tradeoff worth knowing about if you're building something similar. I accepted it for now rather than standing up Redis for a v1.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SSRF prevention.&lt;/strong&gt; Several of the tools accept a URL as input (for example, fetching a PDF to process rather than uploading bytes directly). Any tool that accepts a URL from the caller is a potential server-side request forgery vector, so requests are validated against a blocklist of internal IP ranges and non-HTTP(S) schemes before the server ever fetches anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Idempotency keys.&lt;/strong&gt; AI assistants sometimes retry tool calls, whether from a timeout, a dropped connection, or the assistant itself deciding to try again. Without idempotency handling, a retried "merge these files" call could produce duplicate output or double-charge a rate limit. Each mutating tool call accepts an idempotency key so a retry returns the original result instead of redoing the work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Audit logging.&lt;/strong&gt; Every tool call is logged with enough detail to reconstruct what happened, without logging the file contents themselves. This matters more for a PDF tool than it might for other APIs, since the whole product's trust model is built around not retaining user files longer than necessary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Listed
&lt;/h2&gt;

&lt;p&gt;The server is listed on the &lt;a href="https://registry.modelcontextprotocol.io/" rel="noopener noreferrer"&gt;official MCP registry&lt;/a&gt;, which so far has been the main discovery channel. Compared to building a plugin or waiting on marketplace approval in other ecosystems, the registry listing process was refreshingly lightweight.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where This Leaves Things
&lt;/h2&gt;

&lt;p&gt;Foxit and Nitro are the other PDF vendors I've seen building MCP servers, both larger companies with existing enterprise PDF products. Being early here as a solo founder is less about outcompeting them head-on and more about being genuinely useful to the AI-assistant-tooling crowd before the space gets crowded.&lt;/p&gt;

&lt;p&gt;If you're working with PDFs inside an AI assistant workflow and want to try it, the server is free to use: &lt;a href="https://www.pdfhaul.com/mcp-server" rel="noopener noreferrer"&gt;pdfhaul.com/mcp-server&lt;/a&gt;. I'm happy to answer questions about the implementation in the comments, especially on the auth or SSRF handling if anyone's building something similar.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Peter, founder of &lt;a href="https://www.pdfhaul.com" rel="noopener noreferrer"&gt;PDFHaul&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>buildinpublic</category>
      <category>node</category>
    </item>
  </channel>
</rss>
