KosmoKrator

cms

Contentful MCP, CLI, and Lua Integration for AI Agents

Contentful integration docs for AI agents: MCP gateway setup, Contentful CLI commands, Lua API reference, credentials, and function schemas.

12 functions 6 read 6 write Bearer token auth

Contentful for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
contentful
route_slug
contentful
package
contentful
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Contentful MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Contentful.

Contentful CLI Matrix

Use these pages for direct Contentful CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
contentful.contentful_list_content_types Read read 1 List all content types defined in the connected Contentful space. Returns each content type's ID, name, description, and field count. Optionally limit the number of results.
contentful.contentful_get_content_type Read read 1 Get detailed information about a specific content type by its ID. Returns the content type name, description, display field, and full field definitions.
contentful.contentful_create_content_type Write write 4 Create a new content type in Contentful with a name, display name, optional description, and field definitions. Fields are provided as a JSON array of objects with id, name, and type. Common field types: Symbol, Text, Integer, Number, Boolean, Date, Location, RichText, Array, Link.
contentful.contentful_list_entries Read read 5 List entries in the Contentful space. Optionally filter by content type, control pagination with limit and skip, order results, or search with a text query. Returns entry IDs, content types, and localized field values.
contentful.contentful_get_entry Read read 1 Get detailed information about a specific entry by its ID. Returns all localized field values, content type, version, and timestamps.
contentful.contentful_create_entry Write write 2 Create a new entry in Contentful. Specify the content type ID and provide field values as a JSON object. Fields must be localized, e.g. {"title": {"en-US": "My Title"}}. The entry is created as a draft; use the publish tool to publish it.
contentful.contentful_update_entry Write write 3 Update an existing entry's field values. Requires the current version number for optimistic locking. Fields must be localized, e.g. {"title": {"en-US": "Updated Title"}}. The version is sent as the X-Contentful-Version header.
contentful.contentful_publish_entry Write write 2 Publish a draft or updated entry. Requires the current version number for optimistic locking, sent as the X-Contentful-Version header. After publishing, the entry becomes publicly visible via the Content Delivery API.
contentful.contentful_unpublish_entry Write write 2 Unpublish a published entry, reverting it to draft status. Requires the current version number for optimistic locking, sent as the X-Contentful-Version header. The entry will no longer be visible via the Content Delivery API.
contentful.contentful_delete_entry Write write 1 Permanently delete an entry from the Contentful space. The entry must be unpublished before it can be deleted. This action is irreversible.
contentful.contentful_list_assets Read read 2 List assets (images, files, videos) in the Contentful space. Supports pagination with limit and skip parameters. Returns asset IDs, titles, file details, and URLs.
contentful.contentful_get_space Read read 0 Get details about the connected Contentful space, including name, locales, organization, and space type.