Contentful (Official) logo

Contentful (Official)

Organization
contentful

MCP (Model Context Protocol) server for the Contentful Management API

Publishercontentful
Repositorycontentful-mcp-server
LanguageTypeScript
Forks
31
Stars
61
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Contentful (Official) exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    61 stars and 31 forks from the linked repository.

Contentful MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with comprehensive tools to interact with Contentful APIs.

🚀 Example Use Cases

This MCP server provides a comprehensive set of tools for content management, allowing AI to help you create, edit, organize, and publish content directly within Contentful. Once configured, you can use natural language in your AI assistant of choice to manage and interact with your Contentful spaces, including:

  • Content Creation: "Create a new blog post for our fall product launch"
  • Content Management: "Update all product entries to include the new pricing structure"
  • Asset Organization: "Upload and organize these marketing images by campaign"
  • Workflow Automation: "Create an AI action that translates content to Spanish"
  • Content Modeling: "Add a new field to the product content type for customer ratings"

📓 Table of Contents

⚙️ Getting started

Prerequisites

Installation

One-Click install

Install MCP Server

Note: This requires Cursor to be installed. If the link doesn't work, try the manual installation below.

Claude Desktop:

Download the .dxt configuration file here from the latest release and import it into Claude Desktop to automatically configure the MCP server with your environment variables.

Codex:

bash
codex mcp add contentful --env CONTENTFUL_MANAGEMENT_ACCESS_TOKEN="your-CMA-token" --env SPACE_ID="your-space-id" --env ENVIRONMENT_ID="master" --env CONTENTFUL_HOST="api.contentful.com" -- npx -y @contentful/mcp-server

Install from source

bash
git clone https://github.com/contentful/contentful-mcp-server.git
cd contentful-mcp-server
npm install
npm run build

Environment Variables

Environment VariableRequiredDefault ValueDescription
CONTENTFUL_MANAGEMENT_ACCESS_TOKEN✅ Yes-Your Contentful Management API personal access token
SPACE_ID✅ Yes-Your Contentful Space ID
ENVIRONMENT_ID❌ NomasterTarget environment within your space
PROTECTED_ENVIRONMENTS❌ No-Comma-separated environment IDs blocked from write/delete operations (e.g. master,staging). See Protected environments.
CONTENTFUL_HOST❌ Noapi.contentful.comContentful API host
EXPORT_BASE_DIR❌ Noprocess.cwd()Server-controlled root directory for export_space output
NODE_ENV❌ NoproductionNode Environment to run in

Protected environments

Set PROTECTED_ENVIRONMENTS to a comma-separated list of environment IDs (e.g. master,staging) to block write and delete tool calls targeting those environments. Reads (get_*, list_*, search_entries) are unaffected.

bash
PROTECTED_ENVIRONMENTS=master,staging

When the guard fires, the tool returns a clear error and never reaches the Contentful API:

Environment 'master' is protected. Write and delete operations are not allowed.

Notes:

  • Opt-in. Unset (or only commas/whitespace) means no environments are protected — existing behavior is unchanged.
  • Case-sensitive. Environment IDs in Contentful are case-sensitive, so master and Master are different. Match the exact ID you want to protect.
  • MCP boundary only. The guard runs inside this server. Direct CMA SDK calls, the Contentful web app, and other clients are not affected — use this alongside, not instead of, role-based permissions.
  • Covers env-scoped writes. Org-scoped resources (concepts, concept schemes) and read-only tools have no environment to check, so the guard does not apply. invoke_ai_action is also unguarded — invocation generates content but doesn't write to the environment; any follow-up write the agent performs is still blocked.

Configuration

Refer to the documentation for your AI tool of choice for how to configure MCP servers. For example, see the documentation for Codex, Cursor, VS Code, or Claude Desktop.

Below is a sample configuration:

json
{
  "mcpServers": {
    "contentful-mcp": {
      "command": "npx",
      "args": ["-y", "@contentful/mcp-server"],
      "env": {
        "CONTENTFUL_MANAGEMENT_ACCESS_TOKEN": "your-CMA-token",
        "SPACE_ID": "your-space-id",
        "ENVIRONMENT_ID": "master",
        "CONTENTFUL_HOST": "api.contentful.com"
      }
    }
  }
}

🛠️ Available Tools

CategoryTool NameDescription
Context & Setupget_initial_contextInitialize connection and get usage instructions
Content Typeslist_content_typesList all content types
get_content_typeGet detailed content type information
create_content_typeCreate new content types
update_content_typeModify existing content types
publish_content_typePublish content type changes
unpublish_content_typeUnpublish content types
delete_content_typeRemove content types
Entriessearch_entriesSearch and filter entries
semantic_searchFind entries by meaning (vector search)
get_entryRetrieve specific entries
get_entry_snapshotRetrieve entry version history (snapshots)
create_entryCreate new content entries
update_entryModify existing entries
publish_entryPublish entries (single or bulk)
unpublish_entryUnpublish entries (single or bulk)
delete_entryRemove entries
Assetsupload_assetUpload new assets
list_assetsList and browse assets
get_assetRetrieve specific assets
update_assetModify asset metadata
publish_assetPublish assets (single or bulk)
unpublish_assetUnpublish assets (single or bulk)
delete_assetRemove assets
Spaces & Environmentslist_spacesList available spaces
get_spaceGet space details
list_environmentsList environments
create_environmentCreate new environments
delete_environmentRemove environments
Content Previewlist_content_previewsList content previews and their URL templates
get_entry_preview_urlResolve the draft-preview URL for an entry
Localeslist_localesList all locales in your environment
get_localeRetrieve specific locale information
create_localeCreate new locales for multi-language content
update_localeModify existing locale settings
delete_localeRemove locales from environment
Tagslist_tagsList all tags
create_tagCreate new tags
AI Actionscreate_ai_actionCreate custom AI-powered workflows
invoke_ai_actionInvoke an AI action with variables
get_ai_action_invocationGet AI action invocation details
get_ai_actionRetrieve AI action details and configuration
list_ai_actionsList AI actions in a space
update_ai_actionUpdate existing AI actions
publish_ai_actionPublish AI actions for use
unpublish_ai_actionUnpublish AI actions
delete_ai_actionRemove AI actions
Usageget_usagesGet aggregated usage metrics for an organization, optionally filtered or grouped by space

🤝 Contributing and Development

We welcome contributions! Please see our Contributing Guide for local development setup and contribution guidelines.

📦 Releases

This project uses Nx Release for automated versioning and publishing. Releases are automatically generated based on Conventional Commits. See Contributing Guide for more information on release process.

See github releases and npm

📚 Documentation

❓ Help & Support

📄 License and Notices

This project is licensed under the MIT License. See LICENSE for details.

It also includes open-source components licensed under MIT, BSD-2-Clause, and Apache-2.0. For details, see the NOTICE file.

This project includes an automated license management system that keeps track of all dependencies and their licenses. See the AUTOMATION-FOR-LICENSES file for more information.

🛡️ Code of Conduct

We want to provide a safe, inclusive, welcoming, and harassment-free space and experience for all participants, regardless of gender identity and expression, sexual orientation, disability, physical appearance, socioeconomic status, body size, ethnicity, nationality, level of experience, age, religion (or lack thereof), or other identity markers.

Read our full Code of Conduct.

For AI Agents

If you are an AI coding agent working in this repository, read AGENTS.md first. It tells you where to find architectural context, development setup, decision records, and repo-specific rules.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "contentful-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@contentful/mcp-server"
      ],
      "env": {
        "CONTENTFUL_MANAGEMENT_ACCESS_TOKEN": "your-CMA-token",
        "SPACE_ID": "your-space-id",
        "ENVIRONMENT_ID": "master",
        "CONTENTFUL_HOST": "api.contentful.com"
      }
    }
  }
}

Use Contentful (Official) MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Contentful (Official) is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Contentful (Official) as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Contentful (Official) MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "contentful-official": {
      "command": "npx",
      "args": [
        "-y",
        "@contentful/mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Contentful (Official) MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Contentful (Official) MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Contentful (Official) to help me with this task?
Contentful (Official)
Sure. I read it.
Here is what I found using Contentful (Official).

Frequently asked questions

What is the Contentful (Official) MCP server used for?

Contentful (Official) is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Contentful (Official) MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Contentful (Official) with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Contentful (Official) MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Contentful (Official) connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Contentful (Official) MCP to TypingMind?

Contentful (Official) runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Contentful (Official) MCP provide in TypingMind?

Contentful (Official) exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Contentful (Official) MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Contentful (Official) requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇