Set up API2PDF in Metorial for Claude, ChatGPT and Cursor
Share API2PDF with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 15 tools (4 read-only).
To give your team API2PDF in Claude, ChatGPT, Cursor and other AI clients, an admin shares the API2PDF integration in a Metorial portal, and each person connects with an API key. Agents can generate PDFs from HTML, URLs, and Markdown. The integration has 15 tools, 4 read-only, 10 write and 1 destructive, plus 1 trigger.
What you'll learn
- How an admin shares API2PDF in a portal and how each person connects
- What API2PDF asks for when you connect, and where to find it
- How to keep the 4 read-only tools and reject the other 11
Before you start
- A portal with at least one access group
- An API key from API2PDF 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: API2PDF API key from portal.api2pdf.com
Setup settings
Setup also asks for:
useXlCluster(optional): Use the XL cluster (v2-xl.api2pdf.com) for larger compute resources. Costs more but handles heavier workloads.
Admin: share API2PDF 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 API2PDF. 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 API2PDF.
Choose who gets it
Add the access groups that should see API2PDF. 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 API2PDF integration. Once it exists, check which groups have it:
Employee: connect API2PDF
In the portal
Open API2PDF in the catalog
Sign in to your portal and open API2PDF. 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 API2PDF 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 4 read-only tools, such as check_status and check_balance, and lose the 10 write tools, such as create_zip or merge_pdfs, and the destructive tool delete_file.
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 15 tools, minus any you rejected. check_status takes no input. It checks the API2PDF service health status endpoint.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (4)
extract_pdf_data: Extract structured data from a PDF document. NeedsurlandoutputFormat.convert_to_markdown: Convert a document file to Markdown format using Markitdown. Needsurl.check_balance: Check the remaining credit balance on the API2PDF account associated with the current API key.check_status: Check the API2PDF service health status endpoint.
Write tools (10)
capture_screenshot: Capture a screenshot image of a website URL, raw HTML content, or Markdown using Headless Chrome.watermark_pdf: Add a text watermark to an existing PDF document. Needsurl.extract_pdf_pages: Extract a specific range of pages from an existing PDF document. Needsurl.create_zip: Compress multiple files into a single ZIP archive. Needsfiles.protect_pdf: Add password protection to an existing PDF document. NeedsurlanduserPassword.convert_document: Convert documents between formats using LibreOffice. NeedsoutputFormat.generate_pdf: Generate a PDF document from HTML content, a publicly accessible URL, or Markdown text using Headless Chrome.generate_thumbnail: Generate a thumbnail image preview from a PDF, Office document, or email file. Needsurl.merge_pdfs: Combine multiple PDF documents into a single PDF file. Needsurls.generate_barcode: Generate a barcode or QR code image. Needsformatandvalue.
Destructive tools (1)
delete_file: Delete a previously generated file from API2PDF servers. NeedsresponseId.
Triggers
API2PDF has 1 trigger, which fire on events in API2PDF:
inbound_webhook
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use API2PDF there
- Tool permissions: tool filters and what employees see
- API2PDF on metorial.com: the integration overview