Open-source headless CMS
## Strapi CMS MCP Server: Open Source Headless CMS The **Strapi CMS MCP Server** integrates Strapi into Google Antigravity, enabling self-hosted headless CMS operations with custom content types, REST/GraphQL APIs, and plugin ecosystem directly from your development environment. ### Why Strapi CMS MCP? - **Open Source**: Self-hosted with full control over your data - **Custom Content Types**: Build any content structure visually - **Dual APIs**: REST and GraphQL out of the box - **Plugin System**: Extend with community and custom plugins - **Role-Based Access**: Granular permissions system ### Key Features #### 1. Content Queries ```python # Find entries entries = await mcp.find( content_type="articles", filters={"status": {"$eq": "published"}}, sort=["publishedAt:desc"], pagination={"page": 1, "pageSize": 10}, populate=["author", "category", "coverImage"] ) for entry in entries["data"]: print(f"Article: {entry['attributes']['title']}") # Find one by ID entry = await mcp.find_one( content_type="articles", id=123, populate="deep" ) ``` #### 2. CRUD Operations ```python # Create entry article = await mcp.create( content_type="articles", data={ "title": "New Article", "content": "Article content...", "author": 1, "category": 5, "status": "draft" } ) # Update entry await mcp.update( content_type="articles", id=article["data"]["id"], data={"status": "published"} ) # Delete entry await mcp.delete(content_type="articles", id=123) ``` #### 3. Media Operations ```python # Upload file media = await mcp.upload( files=[{"path": "./images/cover.jpg", "name": "cover.jpg"}], ref_id=123, ref="api::article.article", field="coverImage" ) # Get files files = await mcp.get_files( filters={"mime": {"$contains": "image"}} ) ``` #### 4. Content Types ```python # List content types types = await mcp.get_content_types() for ct in types["data"]: print(f"Type: {ct['uid']}") # Get content type schema schema = await mcp.get_content_type(uid="api::article.article") ``` ### Configuration ```json { "mcpServers": { "strapi": { "command": "npx", "args": ["-y", "@anthropic/mcp-strapi"], "env": { "STRAPI_URL": "http://localhost:1337", "STRAPI_API_TOKEN": "your-api-token" } } } } ``` ### Use Cases **Custom Backends**: Build tailored backends for web and mobile apps. **Multi-Project CMS**: Self-host for multiple client projects. **Content APIs**: Create content APIs for existing applications. **Rapid Development**: Quickly prototype content-driven applications. The Strapi CMS MCP enables open source headless CMS within your development environment.
{
"mcpServers": {
"strapi": {
"mcpServers": {
"strapi": {
"env": {
"STRAPI_URL": "http://localhost:1337",
"STRAPI_TOKEN": "YOUR_TOKEN"
},
"args": [
"-y",
"@bschauer/strapi-mcp-server"
],
"command": "npx"
}
}
}
}
}