Contentful MCP Server is a powerful integration that allows Claude and other AI tools to manage Contentful content through the Model Context Protocol. It provides comprehensive content management capabilities by connecting to Contentful's Content Management API.
The simplest way to use this MCP server is through Claude Desktop without cloning the repository:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"contentful": {
"command": "npx",
"args": ["-y", "@ivotoby/contentful-management-mcp-server"],
"env": {
"CONTENTFUL_MANAGEMENT_ACCESS_TOKEN": "<Your CMA token>"
}
}
}
}
Alternatively, you can provide the token as an argument:
{
"mcpServers": {
"contentful": {
"command": "npx",
"args": [
"-y",
"@ivotoby/contentful-management-mcp-server",
"--management-token",
"<your token>",
"--host",
"http://api.contentful.com"
]
}
}
}
For an automated installation via Smithery:
npx -y @smithery/cli install @ivotoby/contentful-management-mcp-server --client claude
To run the server directly without installation:
# For stdio transport (default)
npx -y @ivotoby/contentful-management-mcp-server --management-token YOUR_TOKEN
# For HTTP transport
npx -y @ivotoby/contentful-management-mcp-server --management-token YOUR_TOKEN --http --port 3000
CONTENTFUL_MANAGEMENT_ACCESS_TOKEN
or --management-token
: Your Content Management API tokenCONTENTFUL_HOST
or --host
: Contentful API endpoint (default: https://api.contentful.com)ENABLE_HTTP_SERVER
or --http
: Enable HTTP/SSE modeHTTP_PORT
or --port
: Port for HTTP server (default: 3000)HTTP_HOST
or --http-host
: Host for HTTP server (default: localhost)To restrict operations to specific spaces and environments:
SPACE_ID
or --space-id
: Limit operations to a specific spaceENVIRONMENT_ID
or --environment-id
: Limit operations to a specific environmentInstead of 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 YOUR_SPACE_ID \
--environment-id YOUR_ENVIRONMENT_ID
To prevent context window overflow, list operations are limited to 3 items per request with:
Ideal for integration with Claude Desktop and other MCP clients:
npx -y @ivotoby/contentful-management-mcp-server --management-token YOUR_TOKEN
For web-based integrations or standalone service:
npx -y @ivotoby/contentful-management-mcp-server --management-token YOUR_TOKEN --http --port 3000
This MCP Server enables Claude (or other agents) to update and delete content, spaces, and content models. Be careful about what permissions you grant to your AI tools when working 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