Set up Docupilot in Metorial for Claude, ChatGPT and Cursor
Share Docupilot with your team in Claude, ChatGPT and Cursor through Metorial: API key + secret sign-in, 22 tools (10 read-only).
To give your team Docupilot in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Docupilot integration in a Metorial portal, and each person connects with an API key + secret. Agents can automate document generation from templates by merging dynamic data into merge fields. The integration has 22 tools, 10 read-only, 8 write and 4 destructive, plus 2 triggers.
What you'll learn
- How an admin shares Docupilot in a portal and how each person connects
- What Docupilot asks for when you connect, and where to find it
- How to keep the 10 read-only tools and reject the other 12
Before you start
- A portal with at least one access group
- An API key + secret from Docupilot 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 + Secret | Custom credentials | apiKey, apiSecret and workspaceId |
API Key + Secret
To connect, a person enters these values:
apiKey: API Key generated from Settings > API SettingsapiSecret: API Secret provided at key creation timeworkspaceId: Workspace ID found on the Workspace details page in Settings
Admin: share Docupilot 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 Docupilot. For how members connect, choose Each person connects so everyone enters their own API key + secret, or Shared connection to enter one API key + secret for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Docupilot.
Choose who gets it
Add the access groups that should see Docupilot. 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 Docupilot integration. Once it exists, check which groups have it:
Employee: connect Docupilot
In the portal
Open Docupilot in the catalog
Sign in to your portal and open Docupilot. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key + secret (apiKey, apiSecret and workspaceId).
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 Docupilot 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 10 read-only tools, such as get_delivery and get_template, and lose the 8 write tools, such as copy_template or create_folder, and the 4 destructive tools, such as delete_folder or cancel_envelope.
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 22 tools, minus any you rejected. list_folders takes no input. It lists all template folders in your workspace.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (10)
list_content_blocks: List reusable content blocks from the content library.get_envelope_details: Get detailed information about an eSignature envelope, including recipients, document details, and activity history. NeedsenvelopeId.list_deliveries: List all delivery configurations for a template. NeedstemplateId.get_delivery: Get the full configuration details of a specific delivery for a template. NeedstemplateIdanddeliveryId.list_merge_history: List the history of generated documents (merge history).get_template: Retrieve detailed information about a specific template including its merge field schema (tokens). NeedstemplateId.list_envelopes: List eSignature envelopes.list_templates: List document templates in your Docupilot workspace.list_folders: List all template folders in your workspace.get_current_user: Retrieve the user identity associated with the connected Docupilot API credentials.
Write tools (8)
generate_document: Generate a document from a template by merging data into it. NeedstemplateIdandmergeData.copy_template: Create a duplicate of an existing template. NeedstemplateId.update_template: Update a template's metadata such as title, description, status, folder, or output preferences. NeedstemplateId.create_template: Create a new document template in Docupilot. NeedstitleandoutputType.send_envelope_reminder: Send a reminder to recipients of a pending eSignature envelope, prompting them to complete signing. NeedsenvelopeId.update_folder: Rename an existing folder. NeedsfolderIdandname.move_templates: Move one or more templates to a different folder. NeedstemplateIdsandfolderId.create_folder: Create a new folder to organize templates. Needsname.
Destructive tools (4)
cancel_envelope: Void/cancel an eSignature envelope that is pending signing. NeedsenvelopeId.delete_template: Move a template to trash. NeedstemplateId.delete_folder: Delete a folder. NeedsfolderId.delete_delivery: Delete a delivery configuration from a template. NeedstemplateIdanddeliveryId.
Triggers
Docupilot has 2 triggers, which fire on events in Docupilot:
document_generated: Triggers when a new document is generated from a template (merge history entry is created).inbound_webhook
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Docupilot there
- Tool permissions: tool filters and what employees see
- Docupilot on metorial.com: the integration overview