Back to MCP Catalog

Contentful Management API MCP Server

Content Management SystemsTypeScript
Access and manage Contentful content through Claude AI
Available Tools

LIST_CONTENT_TYPES

Lists all content types in the Contentful space

limitskip

GET_CONTENT_TYPE

Gets a specific content type by ID

contentTypeId

CREATE_CONTENT_TYPE

Creates a new content type in the Contentful space

namefieldsdisplayField

UPDATE_CONTENT_TYPE

Updates an existing content type in the Contentful space

contentTypeIdnamefieldsdisplayField

DELETE_CONTENT_TYPE

Deletes a content type from the Contentful space

contentTypeId

LIST_ENTRIES

Lists entries in the Contentful space with optional filtering

contentTypeIdlimitskipquery

GET_ENTRY

Gets a specific entry by ID

entryId

CREATE_ENTRY

Creates a new entry in the Contentful space

contentTypeIdfields

UPDATE_ENTRY

Updates an existing entry in the Contentful space

entryIdfields

DELETE_ENTRY

Deletes an entry from the Contentful space

entryId

PUBLISH_ENTRY

Publishes an entry in the Contentful space

entryId

UNPUBLISH_ENTRY

Unpublishes an entry in the Contentful space

entryId

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.

Contentful MCP Server

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.

Installation

You can install the Contentful MCP server using npm:

npm install @contentful/mcp-server

Configuration

The server requires authentication with Contentful. You can configure it using environment variables or by passing configuration options directly.

Authentication Methods

The server supports three authentication methods:

  1. Personal Access Token (PAT): Use your Contentful personal access token
  2. OAuth Token: Use an OAuth token for authentication
  3. App Identity: Use Contentful App Identity for authentication

Environment Variables

Set up the following environment variables:

  • CONTENTFUL_SPACE_ID: Your Contentful space ID
  • CONTENTFUL_ENVIRONMENT_ID: Your Contentful environment ID (defaults to "master")
  • CONTENTFUL_ACCESS_TOKEN: Your Contentful personal access token
  • CONTENTFUL_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"

Running the Server

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'
});

Transport Modes

The server supports two transport modes:

  1. stdio: Standard input/output mode (default) - ideal for direct integration with Claude
  2. http: HTTP/SSE transport mode - useful for network-based integrations

Using with Claude

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.

Docker Support

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

Troubleshooting

If you encounter issues:

  1. Verify your authentication credentials
  2. Check that your space ID and environment ID are correct
  3. Ensure you have the necessary permissions in Contentful
  4. Check the server logs for detailed error messages

For more detailed information, visit the GitHub repository.

Related MCPs

Ghost CMS Integration
Content Management SystemsTypeScript

Interact with and manage your Ghost blog through LLM interfaces

DevHub CMS
Content Management SystemsPython

Manage content in DevHub CMS through LLM integration

Drupal
Content Management SystemsTypeScript

Connect to Drupal CMS via Model Context Protocol

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.