Logotipo de Contentful (Official)

Contentful (Official)

Organización
contentful

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

Editorcontentful
Repositoriocontentful-mcp-server
IdiomaTypeScript
Forks
31
Estrellas
61
Herramientas disponibles
0
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Contentful (Official) ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    61 estrellas y 31 forks en el repositorio enlazado.

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.

Instalación

TypingMind
Requisitos:

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"
      }
    }
  }
}

Usa el MCP de Contentful (Official) con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Contentful (Official), puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Contentful (Official) como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Contentful (Official).
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "contentful-official": {
      "command": "npx",
      "args": [
        "-y",
        "@contentful/mcp-server"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Contentful (Official) y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Contentful (Official).
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Contentful (Official) para ayudarme con esta tarea?
Contentful (Official)
Claro. Lo he leído.
Esto he encontrado usando Contentful (Official).

Preguntas frecuentes

¿Para qué sirve el servidor MCP Contentful (Official)?

Contentful (Official) es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Contentful (Official) con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Contentful (Official) con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Contentful (Official) con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Contentful (Official) conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Contentful (Official) a TypingMind?

Contentful (Official) funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Contentful (Official) en TypingMind?

Contentful (Official) ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Contentful (Official)?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Contentful (Official) requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇