
Contentful Delivery
Connects to Contentful's Delivery API to query and retrieve content entries, assets, and content types using natural language search.
Integrates with Contentful's Delivery API to enable querying and retrieving structured content using keywords or sentences, facilitating content-driven applications and dynamic websites.
What it does
- Query content using natural language search
- Retrieve specific entries by ID or content type
- Browse and fetch asset details
- View content type schemas
- Handle rich text content with pagination
Best for
About Contentful Delivery
Contentful Delivery is a community-built MCP server published by mshaaban0 that provides AI assistants with tools and capabilities via the Model Context Protocol. Leverage Contentful Delivery to query and retrieve structured content from Contentful's Delivery API for dynamic websites and apps. It is categorized under productivity.
How to install
You can install Contentful Delivery in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
Contentful Delivery is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Contentful Delivery MCP Server
A Model Context Protocol (MCP) server that provides seamless access to Contentful's Delivery API through AI assistants. Query and retrieve content entries, assets, and content types using natural language.
Quick Start
Install the package in your project:
npm install @mshaaban0/contentful-delivery-mcp-server
Or globally:
npm install -g @mshaaban0/contentful-delivery-mcp-server
Set up your Contentful credentials:
export CONTENTFUL_SPACE_ID="your_space_id"
export CONTENTFUL_ACCESS_TOKEN="your_access_token"
# Optional: Restrict content to specific content types
export CONTENTFUL_CONTENT_TYPE_IDS="blogPost,article,product"
Features
- Natural language queries to search content
- Retrieve entries by ID or content type
- Asset management
- Content type schema access
- Pagination support
- Rich text content handling
Available Tools
query_entries- Natural language search across all contentget_entry- Fetch specific entry by IDget_entries- List entries with filteringget_assets- Browse all assetsget_asset- Get asset details by IDget_content_type- View content type schemaget_content_types- List available content types
Integration with Mastra AI
Mastra AI provides seamless integration with this MCP server. Here's how to set it up:
import { MastraMCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
// Initialize the MCP client
const contentfulClient = new MastraMCPClient({
name: "contentful-delivery",
server: {
command: "npx",
args: ["-y", "@mshaaban0/contentful-delivery-mcp-server@latest"],
env: {
CONTENTFUL_ACCESS_TOKEN: "your_access_token",
CONTENTFUL_SPACE_ID: "your_space_id",
// Optional: Restrict content to specific content types
CONTENTFUL_CONTENT_TYPE_IDS: "blogPost,article,product"
}
}
});
// Create an AI agent with access to Contentful
const assistant = new Agent({
name: "Content Assistant",
instructions: `
You are a helpful assistant with access to our content database.
Use the available tools to find and provide accurate information.
`,
model: "gpt-4",
});
// Connect and register tools
await contentfulClient.connect();
const tools = await contentfulClient.tools();
assistant.__setTools(tools);
// Example usage
const response = await assistant.chat("Find articles about machine learning");
Development
# Clone the repo
git clone https://github.com/mshaaban0/contentful-delivery-mcp-server.git
# Install dependencies
npm install
# Build
npm run build
# Development with auto-rebuild
npm run watch
# Run the inspector
npm run inspector
Debugging
The MCP Inspector provides a web interface for debugging:
npm run inspector
Visit the provided URL to access the debugging tools.
Resources
Security Audits
License
MIT
Alternatives
Related Skills
Browse all skillsTransform any AI into a professional executive assistant with battle-tested personas and workflows. Complete templates for Google Workspace integration (Gmail, Calendar, Drive), milestone delivery system, and security guidelines.
Design multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use when architecting deployment workflows, setting up continuous delivery, or implementing GitOps practices.
Order food, groceries, and book restaurants in India via Swiggy's MCP servers. Food delivery, Instamart groceries, and Dineout restaurant bookings with safety-first confirmation workflow.
Expert Kubernetes architect specializing in cloud-native infrastructure, advanced GitOps workflows (ArgoCD/Flux), and enterprise container orchestration. Masters EKS/AKS/GKE, service mesh (Istio/Linkerd), progressive delivery, multi-tenancy, and platform engineering. Handles security, observability, cost optimization, and developer experience. Use PROACTIVELY for K8s architecture, GitOps implementation, or cloud-native platform design.
PERSONAL APP ARCHITECT - Strategic development orchestrator for personal productivity applications. Analyzes project context, makes architectural decisions for single-developer projects, delegates to specialized skills, and ensures alignment between user experience goals and technical implementation. Optimized for personal apps targeting 10-100 users.
Upstash QStash expert for serverless message queues, scheduled jobs, and reliable HTTP-based task delivery without managing infrastructure. Use when: qstash, upstash queue, serverless cron, scheduled http, message queue serverless.
