Set up Prismic in Metorial for Claude, ChatGPT and Cursor
Share Prismic with your team in Claude, ChatGPT and Cursor through Metorial: content API token or email & password sign-in, 20 tools (9 read-only).
To give your team Prismic in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Prismic integration in a Metorial portal, and each person connects with a content API token. Agents can query, create, and manage structured content in a headless CMS repository. The integration has 20 tools, 9 read-only, 8 write and 3 destructive, plus 3 triggers.
What you'll learn
- How an admin shares Prismic in a portal and how each person connects
- What Prismic asks for when you connect, and where to find it
- How to keep the 9 read-only tools and reject the other 11
Before you start
- A portal with at least one access group
- A content API token from Prismic for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Content API Token (default) | API token | contentApiToken |
| Email & Password (Legacy) | Custom credentials | email, password, writeApiToken and migrationApiToken |
| Full Access Tokens | API token | contentApiToken, writeApiToken and migrationApiToken |
The portal and metorial setup use Content API Token unless someone picks another method.
Content API Token
To connect, a person enters:
contentApiToken: Content API access token (read-only) from Settings > API & Security
Email & Password (Legacy)
To connect, a person enters these values:
email: Prismic account email addresspassword: Prismic account passwordwriteApiToken(optional): Write API bearer token from Settings > API & Security > Write APIs tabmigrationApiToken(optional): Migration API token from Settings > API & Security
Full Access Tokens
To connect, a person enters these values:
contentApiToken: Content API access token (read-only) from Settings > API & SecuritywriteApiToken(optional): Write API bearer token from Settings > API & Security > Write APIs tabmigrationApiToken(optional): Migration API token from Settings > API & Security
Setup settings
Whichever method you pick, setup also asks for:
repositoryName: The name of your Prismic repository (e.g., "my-repo" from my-repo.prismic.io)
Admin: share Prismic 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 Prismic. Under Auth Method, keep Content API Token or pick another. For how members connect, choose Each person connects so everyone enters their own content API token, or Shared connection to enter one content API token for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Prismic.
Choose who gets it
Add the access groups that should see Prismic. 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 Prismic integration. Once it exists, check which groups have it:
Employee: connect Prismic
In the portal
Open Prismic in the catalog
Sign in to your portal and open Prismic. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your content API token (contentApiToken).
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. metorial setup uses Content API Token. To connect with Email & Password (Legacy) instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Prismic 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 9 read-only tools, such as list_assets and get_document, and lose the 8 write tools, such as update_asset or upload_asset, and the 3 destructive tools, such as delete_asset or delete_custom_type.
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 20 tools, minus any you rejected. list_custom_types takes no input. It lists all custom types defined in the Prismic repository.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (9)
get_document: Retrieve a single document by its ID or by its UID and type.list_custom_types: List all custom types defined in the Prismic repository.list_assets: List and search assets in the Prismic media library.query_documents: Search and retrieve published documents from the Prismic repository using filters, predicates, and sorting.get_repository_info: Retrieve metadata about the Prismic repository, including available content types, tags, languages, refs (versions), and bookmarks.list_shared_slices: List all shared slices in the Prismic repository.get_custom_type: Retrieve a specific custom type by its ID, including its full JSON schema definition. NeedstypeId.get_shared_slice: Read one exact shared-slice model.download_asset: Prepare the exact media-library asset for download using its provider URL.
Write tools (8)
create_custom_type: Create a new custom type in the Prismic repository with the specified schema. NeedstypeId,label,repeatableandjson.update_asset: Update metadata for an existing asset in the Prismic media library, such as alt text, notes, credits, or tags. NeedsassetId.upload_asset: Upload a new asset to the Prismic media library from a public URL. Needsurlandfilename.create_migration_document: Create a new document via the Migration API. Needstitle,typeanddata.update_custom_type: Update an existing custom type's schema, label, or status in the Prismic repository. NeedstypeId,label,repeatable,statusandjson.update_migration_document: Update an existing document via the Migration API. NeedsdocumentId,title,typeanddata.create_shared_slice: Create a new shared slice in the Prismic repository. NeedssliceId,type,nameandvariations.update_shared_slice: Update an existing shared slice's definition, including its variations and field schemas. NeedssliceId,type,nameandvariations.
Destructive tools (3)
delete_shared_slice: Delete a shared slice from the Prismic repository. NeedssliceId.delete_asset: Delete an asset from the Prismic media library. NeedsassetId.delete_custom_type: Delete a custom type from the Prismic repository. NeedstypeId.
Triggers
Prismic has 3 triggers, which fire on events in Prismic:
tag_changes: Triggers when a tag is added or removed from the Prismic repository.release_changes: Triggers when a release is created, updated, or deleted in the Prismic repository.document_changes: Triggers when documents are published or unpublished in the Prismic repository.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Prismic there
- Tool permissions: tool filters and what employees see
- Prismic on metorial.com: the integration overview