The Contentful MCP Server is an implementation that integrates with Contentful's Content Management API, allowing AI assistants like Claude to manage content through a standardized Model Context Protocol (MCP) interface. It provides powerful content management capabilities without requiring you to write code.
The easiest way to use this MCP server with Claude Desktop is by adding it to your Claude Desktop configuration:
Edit or create your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"contentful": {
"command": "npx",
"args": ["-y", "@ivotoby/contentful-management-mcp-server"],
"env": {
"CONTENTFUL_MANAGEMENT_ACCESS_TOKEN": "<Your CMA token>"
}
}
}
}
If your MCP client doesn't support environment variables, you can pass parameters as arguments:
{
"mcpServers": {
"contentful": {
"command": "npx",
"args": [
"-y",
"@ivotoby/contentful-management-mcp-server",
"--management-token",
"<your token>",
"--host",
"http://api.contentful.com"
]
}
}
}
You can automatically install the Contentful Management Server for Claude Desktop using Smithery:
npx -y @smithery/cli install @ivotoby/contentful-management-mcp-server --client claude
The server can be configured using environment variables or command-line arguments:
CONTENTFUL_HOST
/ --host
: Contentful Management API endpoint (default: https://api.contentful.com)CONTENTFUL_MANAGEMENT_ACCESS_TOKEN
/ --management-token
: Your Content Management API tokenENABLE_HTTP_SERVER
/ --http
: Enable HTTP/SSE mode (set to "true")HTTP_PORT
/ --port
: Port for HTTP server (default: 3000)HTTP_HOST
/ --http-host
: Host for HTTP server (default: localhost)You can restrict operations to specific spaces and environments:
SPACE_ID
/ --space-id
: Limit operations to a specific Contentful spaceENVIRONMENT_ID
/ --environment-id
: Limit operations to a specific environmentInstead of using a management token, you can use Contentful App Identity:
npx -y @ivotoby/contentful-management-mcp-server \
--app-id "<your-app-id>" \
--private-key "<your-private-key>" \
--space-id "<space-id>" \
--environment-id "<environment-id>"
The default mode uses standard input/output streams for communication, ideal for integration with MCP clients like Claude Desktop:
npx -y @ivotoby/contentful-management-mcp-server --management-token YOUR_TOKEN
For web-based integrations or running as a standalone service:
npx -y @ivotoby/contentful-management-mcp-server --management-token YOUR_TOKEN --http --port 3000
Claude can work with Contentful comments, including:
The server supports efficient batch processing:
List operations return maximum 3 items per request to prevent context window overflow, with built-in pagination support. This allows Claude to efficiently handle large datasets while maintaining context.
This MCP Server enables Claude to update and delete content, spaces, and content models. Be mindful of what permissions you grant when using this integration with your Contentful spaces.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "contentful" '{"command":"npx","args":["-y","@ivotoby/contentful-management-mcp-server"],"env":{"CONTENTFUL_MANAGEMENT_ACCESS_TOKEN":"<Your CMA token>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"contentful": {
"command": "npx",
"args": [
"-y",
"@ivotoby/contentful-management-mcp-server"
],
"env": {
"CONTENTFUL_MANAGEMENT_ACCESS_TOKEN": "<Your CMA token>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"contentful": {
"command": "npx",
"args": [
"-y",
"@ivotoby/contentful-management-mcp-server"
],
"env": {
"CONTENTFUL_MANAGEMENT_ACCESS_TOKEN": "<Your CMA token>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect