Headless CMS
## Contentstack MCP Server: Enterprise Headless CMS The **Contentstack MCP Server** integrates Contentstack into Google Antigravity, enabling enterprise content management with advanced workflows, localization, and digital asset management directly from your development environment. ### Why Contentstack MCP? - **Enterprise Scale**: Handle millions of content items with global CDN delivery - **Advanced Workflows**: Multi-stage approval workflows with role-based permissions - **Modular Blocks**: Composable content with modular blocks architecture - **Global Delivery**: Edge delivery with 99.99% uptime SLA - **Extensibility**: Webhooks, automations, and marketplace integrations ### Key Features #### 1. Content Operations ```python # Get entry by UID entry = await mcp.get_entry( content_type="blog_post", entry_uid="blt1234567890", locale="en-us", include_reference=True ) # Query entries entries = await mcp.query_entries( content_type="blog_post", query={"category": "technology"}, limit=10, skip=0, order_by="-created_at" ) # Create entry new_entry = await mcp.create_entry( content_type="blog_post", entry={ "title": "New Article", "body": "Article content...", "author": [{"uid": "author_uid"}] }, locale="en-us" ) ``` #### 2. Content Type Management ```python # Get content type schema schema = await mcp.get_content_type(uid="blog_post") # List content types types = await mcp.list_content_types() for ct in types: print(f"Type: {ct['title']} ({ct['uid']})") ``` #### 3. Asset Management ```python # Upload asset asset = await mcp.upload_asset( file_path="./images/hero.jpg", folder_uid="folder123", title="Hero Image", description="Homepage hero banner" ) # Get asset asset = await mcp.get_asset(asset_uid="blt1234567890") print(f"URL: {asset['url']}") # Query assets assets = await mcp.query_assets( folder_uid="folder123", content_type="image/jpeg" ) ``` #### 4. Publishing ```python # Publish entry await mcp.publish_entry( content_type="blog_post", entry_uid="blt1234567890", locales=["en-us", "fr-fr"], environments=["production"] ) # Unpublish entry await mcp.unpublish_entry( content_type="blog_post", entry_uid="blt1234567890", environments=["staging"] ) # Schedule publish await mcp.schedule_publish( content_type="blog_post", entry_uid="blt1234567890", publish_at="2024-01-15T09:00:00Z" ) ``` ### Configuration ```json { "mcpServers": { "contentstack": { "command": "npx", "args": ["-y", "@anthropic/mcp-contentstack"], "env": { "CONTENTSTACK_API_KEY": "your-api-key", "CONTENTSTACK_DELIVERY_TOKEN": "your-delivery-token", "CONTENTSTACK_MANAGEMENT_TOKEN": "your-management-token", "CONTENTSTACK_ENVIRONMENT": "production" } } } } ``` ### Use Cases **Enterprise Websites**: Manage complex multi-site architectures with shared content and localization. **Omnichannel Delivery**: Publish content to web, mobile, IoT, and digital signage from a single source. **Content Operations**: Implement enterprise workflows with approvals, scheduling, and audit trails. **Global Brands**: Manage content for global brands with regional variations and compliance requirements. The Contentstack MCP enables enterprise content management within your development environment.
{
"mcpServers": {
"contentstack": {
"mcpServers": {
"contentstack": {
"env": {
"CS_API_KEY": "your-api-key",
"CS_DELIVERY_TOKEN": "your-delivery-token"
},
"args": [
"-y",
"contentstack-mcp-server"
],
"command": "npx"
}
}
}
}
}