API-first CMS
## ButterCMS MCP Server: Headless Blog and Content The **ButterCMS MCP Server** integrates ButterCMS into Google Antigravity, enabling blog management, page content, and content collections directly from your development environment. ### Why ButterCMS MCP? - **Blog Engine**: Full-featured blog with categories, tags, authors, and SEO - **Page Types**: Custom page types for landing pages and marketing content - **Content Collections**: Reusable content structures for FAQs, testimonials, and more - **Media Library**: Built-in asset management with image optimization - **Simple API**: Straightforward REST API with excellent documentation ### Key Features #### 1. Blog Management ```python # Get blog posts posts = await mcp.list_posts( page=1, page_size=10, exclude_body=False, category_slug="technology" ) for post in posts["data"]: print(f"Post: {post['title']} by {post['author']['first_name']}") # Get single post post = await mcp.get_post(slug="my-blog-post") print(f"Title: {post['title']}") print(f"Content: {post['body']}") # Get categories categories = await mcp.list_categories() ``` #### 2. Page Content ```python # Get page by slug page = await mcp.get_page( page_type="landing-page", slug="summer-sale" ) # List pages of type pages = await mcp.list_pages( page_type="landing-page", preview=False ) for page in pages["data"]: print(f"Page: {page['slug']} - {page['fields']['title']}") ``` #### 3. Content Collections ```python # Get collection items faqs = await mcp.get_collection( collection="faq", locale="en" ) for faq in faqs["data"]: print(f"Q: {faq['question']}") print(f"A: {faq['answer']}") # Get collection with filter testimonials = await mcp.get_collection( collection="testimonials", filter={"featured": True}, order="-created" ) ``` #### 4. Media Upload ```python # Upload media media = await mcp.upload_media( file_path="./images/product.jpg" ) print(f"URL: {media['url']}") # List media files = await mcp.list_media() ``` ### Configuration ```json { "mcpServers": { "buttercms": { "command": "npx", "args": ["-y", "@anthropic/mcp-buttercms"], "env": { "BUTTER_API_TOKEN": "your-api-token", "BUTTER_PREVIEW": "false" } } } } ``` ### Use Cases **Company Blog**: Manage a professional blog with categories, authors, and SEO optimization. **Marketing Pages**: Create landing pages and promotional content without code changes. **Knowledge Base**: Build FAQ sections and help documentation with content collections. **Multi-Language Content**: Serve localized content to global audiences with locale support. The ButterCMS MCP enables headless blog and content management within your development environment.
{
"mcpServers": {
"buttercms": {
"mcpServers": {
"buttercms": {
"env": {
"BUTTER_API_TOKEN": "your-api-token"
},
"args": [
"-y",
"buttercms-mcp-server"
],
"command": "npx"
}
}
}
}
}