Strapi Content MCP
Enables AI assistants to interact directly with Strapi v5 CMS content through full CRUD operations, media uploads, and content type exploration using Strapi's Document Service API.
README
Strapi Content MCP
A Strapi v5 plugin that exposes your content via the Model Context Protocol (MCP), enabling AI assistants like Claude to interact directly with your Strapi content.
Features
- Direct Strapi Integration - Uses Strapi's internal Document Service API with full sanitization
- HTTP/SSE Transport - Standard HTTP endpoint for MCP communication
- 8 MCP Tools - Full CRUD operations plus media upload
- Security First - Input/output sanitization, route-level auth via Strapi policies
- Strapi v5 Compatible - Built for the latest Strapi version
Installation
# Using npm
npm install strapi-content-mcp
# Using yarn
yarn add strapi-content-mcp
Configuration
Add to your Strapi config/plugins.ts (or config/plugins.js):
export default {
'strapi-content-mcp': {
enabled: true,
config: {
// Optional: Set log level (default: 'info')
logLevel: 'info', // 'error' | 'warn' | 'info' | 'debug' | 'trace'
},
},
};
Then rebuild and start Strapi:
yarn build
yarn develop
Connecting Claude Desktop
Edit your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"strapi-content": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:1337/api/strapi-content-mcp/mcp"
]
}
}
}
Restart Claude Desktop and start chatting with your Strapi content!
Available Tools
| Tool | Description |
|---|---|
list_content_types |
List all content types with their schemas |
list_components |
List components with pagination |
find_many |
Query documents with filters, sort, pagination |
find_one |
Get single document by documentId |
create |
Create new document |
update |
Update existing document |
delete |
Delete document |
upload_media |
Upload media from URL |
Example Usage
Once connected, ask Claude:
- "List all content types in Strapi"
- "Find all published articles"
- "Create a new blog post titled 'Hello World'"
- "Update article abc123 to change the title"
- "Upload this image to Strapi"
Tool Examples
Finding Documents
find_many with uid: "api::article.article"
- filters: { publishedAt: { $notNull: true } }
- sort: "createdAt:desc"
- pagination: { page: 1, pageSize: 10 }
- populate: ["author", "category"]
Creating Documents
create with uid: "api::article.article"
- data: { title: "My Article", content: "Hello world" }
- status: "published"
Security
This plugin includes several security measures:
- Output Sanitization: All data returned is sanitized to remove private fields
- Input Sanitization: All incoming data is sanitized before database writes
- Fail-Closed: If sanitization fails, operations are rejected (no unsanitized data exposed)
For production use, consider adding authentication:
// config/plugins.ts
export default {
'strapi-content-mcp': {
enabled: true,
config: {
// Add route middleware for authentication
},
},
};
Requirements
- Strapi v5.x
- Node.js 18+ (including Node.js 22, 24+)
API Endpoint
The MCP endpoint is available at:
POST/GET/DELETE http://localhost:1337/api/strapi-content-mcp/mcp
Troubleshooting
Memory Issues
If you encounter heap memory errors during Strapi build:
NODE_OPTIONS='--max-old-space-size=8192' yarn build
NODE_OPTIONS='--max-old-space-size=8192' yarn develop
Connection Issues
- Ensure Strapi is running on the expected port
- Check Claude Desktop config file syntax (valid JSON)
- Restart Claude Desktop after config changes
- Check Strapi logs for MCP-related errors
Contributing
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
MIT - see LICENSE for details.
Author
Paul Bratslavsky (@PaulBratslavsky)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.