home / mcp / contentful mcp server

Contentful MCP Server

mcp server that queries my contentful space.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "tejedamiguel6-mcp-server-contenful": {
      "command": "node",
      "args": [
        "/absolute/path/to/contentful-mcp-server/dist/index.js"
      ],
      "env": {
        "CONTENTFUL_SPACE_ID": "YOUR_SPACE_ID",
        "CONTENTFUL_ENVIRONMENT": "develop",
        "CONTENTFUL_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN",
        "CONTENTFUL_PREVIEW_ACCESS_TOKEN": "YOUR_PREVIEW_TOKEN"
      }
    }
  }
}

You can run a Contentful MCP Server to fetch content types and entries from your Contentful space and present structured results to Claude or other MCP clients. This lets you query your CMS data directly through the MCP interface, enabling seamless content retrieval and AI-assisted workflows.

How to use

This MCP Server exposes a local, stdio-based service that you run with your Node environment. In your MCP client, configure a local server entry that launches the server process and points to the runtime script. Once running, you can request all available content types from your Contentful space, or fetch entries for a specific content type. The responses are structured to be easy for AI assistants to interpret and use in conversations, content planning, or automated content generation.

How to install

Prerequisites you need to prepare before installation:

  • Node.js (v16 or higher)
  • A Contentful account with API keys
  • Claude Desktop or another MCP client that supports stdio MCP servers

Step-by-step commands you will run:

  • Clone the MCP server project into your working directory
  • Install dependencies with npm install
  • Create a .env file in the project root containing your Contentful credentials (space ID, access token, environment, and preview access token)
  • Build the server with npm run build
  • Start the server locally or configure your MCP client to launch the server from dist/index.js

Environment variables you will set in your .env file (as shown in the example):

CONTENTFUL_SPACE_ID=your_space_id

CONTENTFUL_ACCESS_TOKEN=your_access_token

CONTENTFUL_ENVIRONMENT=develop

CONTENTFUL_PREVIEW_ACCESS_TOKEN=your_preview_token

Available tools

fetch_content_types

Fetch all content types from your Contentful space and return them in a structured format for easy consumption by an MCP client.

get_entries

Retrieve entries for a specified content type, returning structured results suitable for AI-assisted processing.