MetorialDocs

Set up Contentful in Metorial for Claude, ChatGPT and Cursor

Share Contentful with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 20 tools (11 read-only).

To give your team Contentful in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Contentful integration in a Metorial portal, and each person signs in to Contentful with their own account. Agents can discover accessible spaces and authenticated CMA user details. The integration has 20 tools, 11 read-only, 4 write and 5 destructive, plus 3 triggers.

What you'll learn

  • How an admin shares Contentful in a portal and how each person connects
  • The 2 OAuth scopes Contentful can request, and what each one allows
  • How to keep the 11 read-only tools and reject the other 9

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth 2.0 (existing connections) (default)OAuthSigns in to Contentful
Personal Access TokenAPI tokentoken
Content Delivery API KeyAPI tokentoken

Also available: Content Preview API Key.

The portal and metorial setup use OAuth 2.0 (existing connections) unless someone picks another method.

OAuth 2.0 (existing connections)

People sign in to Contentful and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
content_management_readContent Management (Read)Read-only access to content management
content_management_manageContent Management (Manage)Full read and write access to content management

Personal Access Token

To connect, a person enters:

  • token: A Content Management API Personal Access Token (PAT). Create one in Contentful under Settings > CMA tokens.

Content Delivery API Key

To connect, a person enters:

  • token: A Content Delivery API access token. Create one in Contentful under Settings > API keys.

Setup settings

Whichever method you pick, setup also asks for:

  • spaceId: The Contentful Space ID. Found in Settings > General in the Contentful web app.
  • environmentId (optional): The environment ID to use within the space. Defaults to "master".
  • region (optional): Data residency region. Use "eu" for European data residency. One of "us", "eu".

Use your own Contentful OAuth app

With your own OAuth app, people see your company's name on the Contentful consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Contentful and copy the Redirect URI.

Register the app with Contentful

Create an OAuth app or client in Contentful and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in OAuth documentation.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Contentful integration.

Admin: share Contentful 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 Contentful. Under Auth Method, keep OAuth 2.0 (existing connections) or pick another. For how members connect, choose Each person connects, so everyone signs in to Contentful as themselves.

Limit the tools

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

Choose who gets it

Add the access groups that should see Contentful. 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 Contentful integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search contentful

Employee: connect Contentful

In the portal

Open Contentful in the catalog

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

Authenticate

Under Quick setup, select Authenticate. A Contentful sign-in tab opens. Sign in and approve the permissions listed.

Confirm

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

With the CLI

metorial catalog search contentful
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth 2.0 (existing connections). To connect with Personal Access Token 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 Contentful 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.

metorial list contentful
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 11 read-only tools, such as get_asset and get_entry, and lose the 4 write tools, such as create_asset or create_entry, and the 5 destructive tools, such as manage_tags or manage_release.

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 list contentful
metorial tools <integration-id>
metorial call <integration-id> list_locales -d '{}'

metorial tools lists the 20 tools, minus any you rejected. list_locales takes no input. It lists all configured locales in the current environment.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (11)

  • list_content_types: List all content types in the current environment.
  • list_locales: List all configured locales in the current environment.
  • sync_content: Perform a content sync via the Content Delivery API.
  • list_environments: List all environments in the current space.
  • search_assets: Search and filter assets in a Contentful space.
  • get_entry: Retrieve a single entry by ID. Needs entryId.
  • search_entries: Search and filter entries in a Contentful space.
  • get_asset: Retrieve a single asset by ID. Needs assetId.
  • get_current_user: Read the user authenticated by a Content Management API PAT or OAuth token.
  • list_spaces: List a page of spaces accessible to the Content Management API user.
  • download_asset: Download the processed original file for an exact asset ID and locale.

Write tools (4)

  • schedule_action: Schedule a future publish or unpublish action for an entry. Needs action.
  • create_asset: Create a new asset in Contentful. Needs title and file.
  • update_entry: Update an existing entry's fields. Needs entryId and fields.
  • create_entry: Create a new entry for a given content type. Needs contentTypeId and fields.

Destructive tools (5)

  • manage_asset_lifecycle: Perform lifecycle actions on an asset: publish, unpublish, archive, unarchive, or delete. Needs assetId and action.
  • manage_tags: List, create, update, or delete content tags in the current environment. Needs action.
  • manage_release: Manage Release.v1 groups of entries and assets. Needs action.
  • manage_content_type: Create, update, publish, unpublish, or delete a content type. Needs action.
  • manage_entry_lifecycle: Perform lifecycle actions on an entry: publish, unpublish, archive, unarchive, or delete. Needs entryId and action.

Triggers

Contentful has 3 triggers, which fire on events in Contentful:

  • asset_events: Triggers when an asset is created, saved, published, unpublished, archived, unarchived, or deleted via Contentful webhooks.
  • content_type_events: Triggers when a content type is created, saved, published, unpublished, or deleted via Contentful webhooks.
  • entry_events: Triggers when an entry is created, saved, published, unpublished, archived, unarchived, or deleted via Contentful webhooks.

Next steps