home / mcp / contentful mcp server
mcp server that queries my contentful space.
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.
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.
Prerequisites you need to prepare before installation:
Step-by-step commands you will run:
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
Fetch all content types from your Contentful space and return them in a structured format for easy consumption by an MCP client.
Retrieve entries for a specified content type, returning structured results suitable for AI-assisted processing.