strapi-mcp
Provides AI-powered content management for Strapi CMS, including tools for CRUD operations on content types, media management, publication lifecycle, internationalization, search, and bulk actions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@strapi-mcplist published articles"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Strapi MCP Server
AI-powered content management for Strapi CMS via Model Context Protocol.
Features
Connect any MCP-compatible AI assistant (Claude, Cursor, etc.) to your Strapi CMS. Manage content, media, locales, and more through natural language.
20 Tools across 8 categories
Category | Tools | Description |
Schema (3) |
| Discover and inspect content models |
Content (5) |
| Full CRUD for any content type |
Media (3) |
| Upload, browse, and manage media library |
Publish (3) |
| Control publication lifecycle |
i18n (2) |
| Internationalization support |
Search (2) |
| Full-text search and counting |
Bulk (1) |
| Batch create, update, or delete |
System (1) |
| Server info and version detection |
Additional MCP capabilities
3 Prompts:
manage_content,content_migration,setup_guide-- guided workflows for common tasks1 Resource:
strapi://help-- comprehensive usage guide with examples
Related MCP server: Strapi MCP Server
Quick Start
Install the server:
pip install strapi-mcpConfigure your Strapi connection:
export STRAPI_BASE_URL="http://localhost:1337" export STRAPI_API_TOKEN="your-strapi-api-token"Connect from your MCP client (see Client Configuration below).
Installation
Using pip
pip install strapi-mcpUsing uvx (no install required)
uvx strapi-mcpFrom source
git clone https://github.com/alexzimmermann/strapi-mcp.git
cd strapi-mcp
pip install -e .Configuration
All settings are configured via environment variables with the STRAPI_ prefix:
Variable | Default | Description |
|
| URL of your Strapi instance |
| (empty) | API token for authentication. Create in Strapi Admin > Settings > API Tokens. |
|
| Strapi version: |
|
| HTTP request timeout in seconds |
|
| Maximum entries per page (1-100) |
You can also place these in a .env file in your working directory.
Creating a Strapi API Token
Open your Strapi Admin panel (e.g.,
http://localhost:1337/admin)Navigate to Settings > API Tokens
Click Create new API Token
Set Token type to Full Access (or customize permissions)
Copy the generated token and set it as
STRAPI_API_TOKEN
Client Configuration
Claude Desktop
Add to your Claude Desktop config file (claude_desktop_config.json):
{
"mcpServers": {
"strapi": {
"command": "uvx",
"args": ["strapi-mcp"],
"env": {
"STRAPI_BASE_URL": "http://localhost:1337",
"STRAPI_API_TOKEN": "your-strapi-api-token"
}
}
}
}Cursor
Add to your Cursor MCP config:
{
"mcpServers": {
"strapi": {
"command": "uvx",
"args": ["strapi-mcp"],
"env": {
"STRAPI_BASE_URL": "http://localhost:1337",
"STRAPI_API_TOKEN": "your-strapi-api-token"
}
}
}
}Smithery
This server is available on Smithery. Install directly from the Smithery registry or configure manually using the smithery.yaml included in this repository.
Available Tools
Tool | Description |
| List all available content types in the Strapi instance |
| Get the full field schema for a specific content type |
| List all reusable components and their schemas |
| List entries with filtering, sorting, pagination, and population |
| Get a single entry by ID (or documentId in v5) |
| Create a new content entry with field data |
| Update an existing entry by ID |
| Delete an entry by ID |
| Upload a file to the media library (URL or base64) |
| Browse the media library with pagination |
| Delete a file from the media library |
| Publish a draft entry to make it publicly available |
| Revert a published entry to draft status |
| Discard unsaved draft changes (Strapi v5 only) |
| List all configured locales for i18n |
| Get an entry in a specific locale |
| Full-text search across entries of a content type |
| Count entries matching optional filter criteria |
| Perform bulk create, update, or delete operations |
| Get Strapi server info, version, and connection status |
Strapi Version Support
This server supports both Strapi v4 and Strapi v5 with automatic version detection.
Auto-detection
When STRAPI_API_VERSION is set to auto (the default), the server detects your Strapi version at startup by:
Fetching a content type entry and inspecting its response format
Checking the admin information endpoint for a version string
Defaulting to v5 if detection is inconclusive
Key differences handled automatically
Feature | Strapi v4 | Strapi v5 |
Entry format | Nested | Flat with |
Entry identifier | Numeric | String |
Publication status |
|
|
Draft discard | Not available |
|
You can force a specific version by setting STRAPI_API_VERSION=v4 or STRAPI_API_VERSION=v5.
Development
Setup
git clone https://github.com/alexzimmermann/strapi-mcp.git
cd strapi-mcp
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -e ".[dev]"Running tests
pytestRunning with coverage
pytest --cov=strapi_mcp --cov-report=term-missingCode style
ruff check .
ruff format .License
MIT License. See LICENSE for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alex2zimmermann-ux/strapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server