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.
Connect
Section titled “Connect”- Open Integrations in the project’s sidebar and choose Contentful.
- 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
- Space ID and Environment (usually
Frontend checks the tokens before saving them. Once connected, the integration’s page lists your content types and their fields.
What it sets up
Section titled “What it sets up”Environment variables:
| Variable | Value |
|---|---|
CONTENTFUL_SPACE_ID and <prefix>CONTENTFUL_SPACE_ID | The space ID |
CONTENTFUL_ENVIRONMENT and <prefix>CONTENTFUL_ENVIRONMENT | The environment |
CONTENTFUL_ACCESS_TOKEN and <prefix>CONTENTFUL_ACCESS_TOKEN | The Delivery API token |
CONTENTFUL_PREVIEW_ACCESS_TOKEN | The Preview API token, if provided |
CONTENTFUL_MANAGEMENT_TOKEN | The 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.
Disconnect
Section titled “Disconnect”Click Disconnect on the integration’s page to remove the connection and its environment variables from the project. Your Contentful space isn’t affected.