-
Notifications
You must be signed in to change notification settings - Fork 34
Description
❌ Technical Issue:
The server has a code bug that prevents reading local PDF files. The error "Please provide binary data as Uint8Array, rather than Buffer" indicates that the published version has an incompatibility between Node.js Buffer and pdfjs-dist's expected Uint8Array format.
ug Location: The issue is in the loadPdfDocument function in the PDF handling code, specifically at the file reading stage.
Workaround Options:
Use URL-based PDFs instead of local files (the server supports "url" parameter)
Wait for fix from maintainers at https://github.com/sylphxltd/pdf-reader-mcp
Create and use a local installation with the fixed code
Use alternative PDF processing methods outside of MCP
The MCP server is correctly installed and configured, but requires a code fix to handle local PDF files properly.