Set up Pdf4me in Metorial for Claude, ChatGPT and Cursor
Share Pdf4me with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 36 tools (7 read-only).
To give your team Pdf4me in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Pdf4me integration in a Metorial portal, and each person connects with an API key. Agents can convert, merge, split, compress, and manipulate PDF and office documents. The integration has 36 tools, 7 read-only and 29 write, plus 1 trigger.
What you'll learn
- How an admin shares Pdf4me in a portal and how each person connects
- What Pdf4me asks for when you connect, and where to find it
- How to keep the 7 read-only tools and reject the other 29
Before you start
- A portal with at least one access group
- An API key from Pdf4me for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | apiKey |
API Key
To connect, a person enters:
apiKey: Your Pdf4me API Key from the developer portal (dev.pdf4me.com)
Admin: share Pdf4me in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Pdf4me. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Pdf4me.
Choose who gets it
Add the access groups that should see Pdf4me. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Pdf4me integration. Once it exists, check which groups have it:
Employee: connect Pdf4me
In the portal
Open Pdf4me in the catalog
Sign in to your portal and open Pdf4me. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your Pdf4me connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 7 read-only tools, such as parse_document and extract_content, and lose the 29 write tools, such as ocr_pdf or sign_pdf.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 36 tools, minus any you rejected. classify_document needs fileContent, so replace the placeholders. It classifies or identify a document based on its file content.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (7)
extract_content: Extract text, images, tables, or text matching a regular expression from a PDF document. NeedsfileContent,fileNameandextractType.read_barcode_from_pdf: Read and extract barcode or QR code data from a PDF document. NeedsfileContent,fileNameandbarcodeTypes.classify_document: Classify or identify a document based on its file content. NeedsfileContent.get_pdf_metadata: Retrieve metadata from a PDF document including title, author, page count, creation date, encryption status, PDF version, compliance level, and whether the document is signed. NeedsfileContentandfileName.extract_attachments_from_pdf: Extract all embedded file attachments from a PDF document and return each extracted file as a Slate attachment. NeedsfileContentandfileName.parse_document: Parse a PDF with a PDF4me dashboard parsing template and return extracted structured data, document type, page count, and confidence when available. NeedsfileName,templateIdandparseId.extract_pdf_form_data: Extract fillable form field names, values, and field types from a PDF form as structured JSON. NeedsfileContentandfileName.
Write tools (29)
Show all 29 write tools
run_workflow: Execute a pre-configured Pdf4me workflow with a document. NeedsfileContent,fileNameandworkflowName.flatten_pdf: Flatten a PDF to remove all interactive form fields, making the document read-only with all form data permanently embedded. NeedsfileContentandfileName.create_pdfa: Convert a PDF document to PDF/A format for long-term archiving and compliance. NeedsfileContentandfileName.protect_pdf: Set password protection on a PDF document with customizable permissions. NeedsfileContent,fileNameandpassword.rotate_pdf: Rotate pages in a PDF document. NeedsfileContent,fileNameandrotationType.generate_document: Generate a document from a DOCX, PDF, or HTML template with dynamic data. NeedstemplateFileType,templateFileName,templateFileContentanddocumentDataType.linearize_pdf: Linearize (optimize) a PDF for fast web viewing. NeedsfileContentandfileName.split_pdf: Split a PDF document into multiple files. NeedsfileContent,fileNameandsplitMethod.unlock_pdf: Remove password protection from a PDF document. NeedsfileContent,fileNameandpassword.merge_pdfs: Merge multiple PDF files into a single PDF document. NeedsoutputFileName.repair_pdf: Attempt to repair a damaged or corrupted PDF document to recover its content. NeedsfileContentandfileName.add_barcode_to_pdf: Add a barcode or QR code to a PDF document. NeedsfileContent,fileName,textandbarcodeType.extract_pages: Extract specific pages from a PDF document into a new PDF. NeedsfileContent,fileNameandpageNumbers.convert_to_pdf: Convert office documents (Word, Excel, PowerPoint), images, HTML, Markdown, or URLs into PDF format. Needssource.find_and_replace_text: Find and replace text within a PDF document on specified pages. NeedsfileContent,fileName,searchTextandreplaceText.add_page_numbers: Add page numbers to a PDF document. NeedsfileContentandfileName.fill_pdf_form: Fill a PDF form with data provided as a JSON string. NeedstemplateContent,templateNameandformData.create_images_from_pdf: Convert PDF pages to images (PNG, JPG, TIFF, BMP). NeedsfileContent,fileNameandpageNumbers.add_header_footer: Add HTML-formatted content as a header, footer, or both to a PDF document. NeedsfileContent,fileNameandhtmlContent.create_barcode_image: Create a standalone barcode or QR code image from text. NeedstextandbarcodeType.delete_pages: Remove specific pages or blank pages from a PDF document. NeedsfileContent,fileNameandmode.add_watermark: Add a text or image watermark/stamp to a PDF document. NeedsfileContent,fileNameandwatermarkType.convert_from_pdf: Convert a PDF document to Word (.docx), Excel (.xlsx), or PowerPoint (.pptx) format. NeedsfileContent,fileNameandtargetFormat.compress_pdf: Optimize and compress a PDF document to reduce file size. NeedsfileContentandfileName.ocr_pdf: Apply OCR (Optical Character Recognition) to a scanned PDF or image-based document to create a searchable PDF with selectable text. NeedsfileContentandfileName.add_margin_to_pdf: Add margins in millimeters to any side of a PDF document, adjusting the page layout for print preparation or consistent document formatting. NeedsfileContentandfileName.add_attachments_to_pdf: Embed one or more files directly into a PDF document as attachments, creating a PDF package with supporting documents or resources. NeedsfileContent,fileNameandattachments.sign_pdf: Add a visible image-based signature to a PDF. NeedsfileContent,fileName,signatureImageContentandsignatureImageName.add_form_field_to_pdf: Add an interactive TextBox or CheckBox field to a PDF at a specific position and page range. NeedsfileContent,fileName,fieldName,fieldType,positionXandpositionY.
Triggers
Pdf4me has 1 trigger, which fire on events in Pdf4me:
inbound_webhook
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Pdf4me there
- Tool permissions: tool filters and what employees see
- Pdf4me on metorial.com: the integration overview