> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Pdf4me in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/pdf4me
Last updated: 2026-11-24

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 will 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](https://metorial.com/docs/platform/workforce/portals) 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](https://metorial.com/docs/platform/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

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **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.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Pdf4me.

4. **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:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search pdf4me
```

## Employee: connect Pdf4me

### In the portal

1. **Open Pdf4me in the catalog**

   Sign in to your portal and open Pdf4me. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API key (apiKey).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search pdf4me
metorial setup <catalog-item-id>
```

`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.

```bash
metorial list pdf4me
metorial client list
metorial install <client-identifier> <integration-id>
```

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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list pdf4me
metorial tools <integration-id>
metorial call <integration-id> classify_document -d '{"fileContent":"<file-content>"}'
```

`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. Needs `fileContent`, `fileName` and `extractType`.
- `read_barcode_from_pdf`: Read and extract barcode or QR code data from a PDF document. Needs `fileContent`, `fileName` and `barcodeTypes`.
- `classify_document`: Classify or identify a document based on its file content. Needs `fileContent`.
- `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. Needs `fileContent` and `fileName`.
- `extract_attachments_from_pdf`: Extract all embedded file attachments from a PDF document and return each extracted file as a Slate attachment. Needs `fileContent` and `fileName`.
- `parse_document`: Parse a PDF with a PDF4me dashboard parsing template and return extracted structured data, document type, page count, and confidence when available. Needs `fileName`, `templateId` and `parseId`.
- `extract_pdf_form_data`: Extract fillable form field names, values, and field types from a PDF form as structured JSON. Needs `fileContent` and `fileName`.

### Write tools (29)

- `run_workflow`: Execute a pre-configured Pdf4me workflow with a document. Needs `fileContent`, `fileName` and `workflowName`.
- `flatten_pdf`: Flatten a PDF to remove all interactive form fields, making the document read-only with all form data permanently embedded. Needs `fileContent` and `fileName`.
- `create_pdfa`: Convert a PDF document to PDF/A format for long-term archiving and compliance. Needs `fileContent` and `fileName`.
- `protect_pdf`: Set password protection on a PDF document with customizable permissions. Needs `fileContent`, `fileName` and `password`.
- `rotate_pdf`: Rotate pages in a PDF document. Needs `fileContent`, `fileName` and `rotationType`.
- `generate_document`: Generate a document from a DOCX, PDF, or HTML template with dynamic data. Needs `templateFileType`, `templateFileName`, `templateFileContent` and `documentDataType`.
- `linearize_pdf`: Linearize (optimize) a PDF for fast web viewing. Needs `fileContent` and `fileName`.
- `split_pdf`: Split a PDF document into multiple files. Needs `fileContent`, `fileName` and `splitMethod`.
- `unlock_pdf`: Remove password protection from a PDF document. Needs `fileContent`, `fileName` and `password`.
- `merge_pdfs`: Merge multiple PDF files into a single PDF document. Needs `outputFileName`.
- `repair_pdf`: Attempt to repair a damaged or corrupted PDF document to recover its content. Needs `fileContent` and `fileName`.
- `add_barcode_to_pdf`: Add a barcode or QR code to a PDF document. Needs `fileContent`, `fileName`, `text` and `barcodeType`.
- `extract_pages`: Extract specific pages from a PDF document into a new PDF. Needs `fileContent`, `fileName` and `pageNumbers`.
- `convert_to_pdf`: Convert office documents (Word, Excel, PowerPoint), images, HTML, Markdown, or URLs into PDF format. Needs `source`.
- `find_and_replace_text`: Find and replace text within a PDF document on specified pages. Needs `fileContent`, `fileName`, `searchText` and `replaceText`.
- `add_page_numbers`: Add page numbers to a PDF document. Needs `fileContent` and `fileName`.
- `fill_pdf_form`: Fill a PDF form with data provided as a JSON string. Needs `templateContent`, `templateName` and `formData`.
- `create_images_from_pdf`: Convert PDF pages to images (PNG, JPG, TIFF, BMP). Needs `fileContent`, `fileName` and `pageNumbers`.
- `add_header_footer`: Add HTML-formatted content as a header, footer, or both to a PDF document. Needs `fileContent`, `fileName` and `htmlContent`.
- `create_barcode_image`: Create a standalone barcode or QR code image from text. Needs `text` and `barcodeType`.
- `delete_pages`: Remove specific pages or blank pages from a PDF document. Needs `fileContent`, `fileName` and `mode`.
- `add_watermark`: Add a text or image watermark/stamp to a PDF document. Needs `fileContent`, `fileName` and `watermarkType`.
- `convert_from_pdf`: Convert a PDF document to Word (.docx), Excel (.xlsx), or PowerPoint (.pptx) format. Needs `fileContent`, `fileName` and `targetFormat`.
- `compress_pdf`: Optimize and compress a PDF document to reduce file size. Needs `fileContent` and `fileName`.
- `ocr_pdf`: Apply OCR (Optical Character Recognition) to a scanned PDF or image-based document to create a searchable PDF with selectable text. Needs `fileContent` and `fileName`.
- `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. Needs `fileContent` and `fileName`.
- `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. Needs `fileContent`, `fileName` and `attachments`.
- `sign_pdf`: Add a visible image-based signature to a PDF. Needs `fileContent`, `fileName`, `signatureImageContent` and `signatureImageName`.
- `add_form_field_to_pdf`: Add an interactive TextBox or CheckBox field to a PDF at a specific position and page range. Needs `fileContent`, `fileName`, `fieldName`, `fieldType`, `positionX` and `positionY`.

## Triggers

Pdf4me has 1 trigger, which fire on events in Pdf4me:

- `inbound_webhook`

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Pdf4me there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Pdf4me on metorial.com](https://metorial.com/integrations/pdf4me): the integration overview