Skip to content

Contentful

Connect a Contentful space to build pages on your content. Frontend writes the space’s credentials as environment variables and gives agents tools to explore and edit your content.

  1. Open Integrations in the project’s sidebar and choose Contentful.
  2. Enter your space’s details from Settings → API keys in Contentful, then click Connect Contentful:
    • Space ID and Environment (usually master)
    • Content Delivery API token — required
    • Content Preview API token — optional, for draft content
    • Content Management token — optional, lets agents create and update entries

Frontend checks the tokens before saving them. Once connected, the integration’s page lists your content types and their fields.

Environment variables:

VariableValue
CONTENTFUL_SPACE_ID and <prefix>CONTENTFUL_SPACE_IDThe space ID
CONTENTFUL_ENVIRONMENT and <prefix>CONTENTFUL_ENVIRONMENTThe environment
CONTENTFUL_ACCESS_TOKEN and <prefix>CONTENTFUL_ACCESS_TOKENThe Delivery API token
CONTENTFUL_PREVIEW_ACCESS_TOKENThe Preview API token, if provided
CONTENTFUL_MANAGEMENT_TOKENThe Management token, if provided

Contentful tools for agents through the Integrations MCP server: list content types, query entries (published, or drafts with a preview token), and create and update entries with a management token.

Click Disconnect on the integration’s page to remove the connection and its environment variables from the project. Your Contentful space isn’t affected.