Lists all content types in the Contentful space
Gets a specific content type by ID
Creates a new content type in the Contentful space
Updates an existing content type in the Contentful space
Deletes a content type from the Contentful space
Lists entries in the Contentful space with optional filtering
Gets a specific entry by ID
Creates a new entry in the Contentful space
Updates an existing entry in the Contentful space
Deletes an entry from the Contentful space
Publishes an entry in the Contentful space
Unpublishes an entry in the Contentful space
The Contentful MCP server provides a seamless integration between Claude AI and Contentful's content management system. It enables AI assistants to directly interact with your Contentful spaces, allowing for content creation, updates, and management through natural language conversations. This integration bridges the gap between AI capabilities and content management workflows, making it easier to leverage AI for content operations.
The Contentful MCP (Model Context Protocol) server allows Claude AI to interact directly with your Contentful content management system. This integration enables you to create, update, and manage content in your Contentful spaces through natural language conversations with Claude.
You can install the Contentful MCP server using npm:
npm install @contentful/mcp-server
The server requires authentication with Contentful. You can configure it using environment variables or by passing configuration options directly.
The server supports three authentication methods:
Set up the following environment variables:
CONTENTFUL_SPACE_ID
: Your Contentful space IDCONTENTFUL_ENVIRONMENT_ID
: Your Contentful environment ID (defaults to "master")CONTENTFUL_ACCESS_TOKEN
: Your Contentful personal access tokenCONTENTFUL_OAUTH_TOKEN
: Your Contentful OAuth token (alternative to PAT)CONTENTFUL_APP_ID
: Your Contentful App ID (for App Identity authentication)CONTENTFUL_APP_KEY
: Your Contentful App private key (for App Identity authentication)MCP_PORT
: Port for the HTTP/SSE transport (defaults to 8080)MCP_TRANSPORT
: Transport mode, either "stdio" (default) or "http"You can run the server using the provided CLI:
npx mcp-server
Or integrate it into your Node.js application:
import { startServer } from '@contentful/mcp-server';
startServer({
spaceId: 'your-space-id',
environmentId: 'master',
accessToken: 'your-access-token',
transport: 'stdio' // or 'http'
});
The server supports two transport modes:
To use the Contentful MCP with Claude, add the following configuration to your Claude settings:
{
"mcpServers": {
"contentful": {
"command": "npx",
"args": ["mcp-server"]
}
}
}
If you're using environment variables for configuration, make sure they're available in the environment where Claude is running.
The server can also be run in a Docker container:
docker run -e CONTENTFUL_SPACE_ID=your-space-id -e CONTENTFUL_ACCESS_TOKEN=your-token contentful/mcp-server
If you encounter issues:
For more detailed information, visit the GitHub repository.