Strapi MCP Server
Provides tools for browsing, creating, updating, deleting, publishing, and unpublishing content entries, schema introspection, media management, i18n support, and authentication with Strapi admin credentials.
Click on "Deploy 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 MCP Server Show me all content types"
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
A Model Context Protocol (MCP) server that connects AI assistants to your Strapi CMS. Enables AI to browse, create, edit, publish, and manage content through natural conversation.
Features
Full CRUD — Create, read, update, delete content entries
Schema introspection — AI discovers your content types, fields, and relations automatically
Publish workflow — Publish and unpublish entries directly
Media management — Browse, upload, and update media files (alt text, captions)
i18n support — Work with multiple locales
Secure auth — Login with Strapi admin credentials, role-based permissions
Single & Collection types — Handles both seamlessly
Zero config on CMS side — Uses Strapi's built-in admin API, no plugins required
Related MCP server: AINative Strapi MCP Server
Tools
Tool | Description |
| Authenticate with Strapi admin credentials |
| Check current user and role |
| Discover all content types and their structure |
| Get detailed field definitions for a content type |
| Browse entries with pagination |
| Fetch a single entry with all fields |
| Create new content |
| Update existing content |
| Delete content |
| Make content live on the website |
| Revert to draft |
| Browse Media Library |
| Upload files to Media Library |
| Update file metadata (alt text, caption, name) |
Quick Start
Install
npm install -g github:devels-ai/strapi-mcp-serverConfigure
Add to your AI client's MCP configuration:
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"strapi": {
"command": "strapi-mcp-server",
"env": {
"STRAPI_URL": "https://your-strapi-instance.com"
}
}
}
}Claude Code (~/.claude/settings.json):
{
"mcpServers": {
"strapi": {
"command": "strapi-mcp-server",
"env": {
"STRAPI_URL": "https://your-strapi-instance.com"
}
}
}
}Cursor: Settings → MCP Servers → Add the same configuration.
Use
After restarting your AI client:
AI will ask for your Strapi admin email and password
Once authenticated, ask it to help with content — e.g.:
"Show me all content types"
"Create a new news article about our product launch"
"Update the home page hero title"
"List all unpublished drafts"
"Upload this image and set the alt text"
How It Works
The MCP server connects to Strapi's admin API using your credentials. It inherits your role's permissions — if your Strapi account can't delete content, the AI can't either.
AI Client ←→ MCP Server ←→ Strapi Admin API
(local) (your server)MCP server runs locally on your machine
Communicates with AI via stdio (standard MCP transport)
Calls Strapi's admin REST API over HTTPS
JWT token stored in memory only (per session)
Requirements
Node.js 18+
Strapi v5
A Strapi admin account
Environment Variables
Variable | Description | Default |
| Your Strapi instance URL |
|
Security
Credentials are sent directly to your Strapi instance — never to third parties
JWT tokens are stored in memory only, never persisted to disk
The MCP server respects your Strapi role permissions
No data leaves your infrastructure
License
MIT
Available Tools
14 toolscreate_entryA
Create a new entry in a collection type (e.g. a new News Article or Product). Pass field values as a JSON string in the 'data' parameter. Use describe_content_type first to know the exact field names. Cannot be used for single types — those already exist, use update_entry instead.
Inputs: data (required), content_type (required).
delete_entryA
Permanently delete an entry from a collection type. Requires the document_id. Cannot delete single type entries. This action cannot be undone — confirm with the user before deleting.
Inputs: document_id (required), content_type (required).
describe_content_typeA
Get the complete field structure of a content type — field names, types, whether required, component details, and relation targets. Also shows CMS labels and descriptions that content managers see. ALWAYS call this before creating or updating entries to know the exact field names and types expected.
Inputs: uid (required).
get_entryA
Fetch a single entry with all its field data. For collection types, provide the document_id (get it from list_entries). For single types, omit document_id — there is only one entry. Returns the full entry including nested components and relations.
Inputs: content_type (required), locale, document_id.
get_sessionA
Check who is currently logged in and their role/permissions. Use this to verify authentication status or to remind yourself of the current user context.
Inputs: no named parameters.
list_content_typesA
Discover all content types in this Strapi CMS. Returns each type's UID (needed for other tools), kind (singleType or collectionType), display name, and field count. Call this after login to understand what content is available to manage.
Inputs: no named parameters.
list_entriesA
List entries for a content type. For collection types (News Articles, Products, Categories), returns a paginated list with document IDs. For single types (Home Page, About Page), returns the single entry directly. Use this to browse existing content or find document IDs for get/update/delete operations.
Inputs: content_type (required), page, locale, page_size.
list_mediaA
Browse files in the Strapi Media Library (images, documents, etc.). Returns file names, IDs, dimensions, MIME types, and alt text. Use this to find existing media files or verify uploads.
Inputs: page, page_size.
loginA
Authenticate with Strapi CMS. Call this FIRST before any other tool. Requires the user's admin email and password. On success, stores a session token for subsequent requests. If the user hasn't provided credentials, ask them for their Strapi admin email and password.
Inputs: email (required), password (required).
publish_entryA
Publish an entry to make it live on the website. Content in Strapi is draft by default after creation or update. Call this after creating or updating content when the user wants changes to appear on the live site. For collection types, provide the document_id.
Inputs: content_type (required), locale, document_id.
unpublish_entryA
Revert a published entry to draft status — removes it from the live website but keeps the content for editing. Use when the user wants to temporarily hide content without deleting it.
Inputs: content_type (required), locale, document_id.
update_entryA
Update an existing entry's fields. For collection types, provide the document_id. For single types (Home Page, Global, etc.), omit document_id. Pass only the fields you want to change as a JSON string. Note: updates are saved as drafts — use publish_entry afterward to make changes live.
Inputs: data (required), content_type (required), locale, document_id.
update_mediaA
Update metadata for a media file — change the display name, alt text (for accessibility/SEO), or caption. Does not replace the file itself, only its metadata.
Inputs: id (required), name, caption, alternative_text.
upload_mediaA
Upload a new file to the Strapi Media Library. Provide the file as base64-encoded data with a filename and MIME type. After uploading, the file can be referenced in content entries via its ID.
Inputs: file_name (required), mime_type (required), base64_data (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct resource and action: authentication/session, content-type discovery, entry CRUD/publishing, and media management. The descriptions clarify edge cases such as single types vs collection types and draft vs published state, leaving no meaningful overlap.
Almost all tools use a clean snake_case verb_noun pattern (list_entries, create_entry, upload_media). The only deviation is the bare verb 'login', which is a minor but understandable exception.
Fourteen tools are well-scoped for a Strapi CMS integration, covering auth, schema discovery, entry lifecycle, and media management without obvious filler. Each tool has a clear role in the workflow.
The entry lifecycle is fully covered with create, read, update, delete, publish, and unpublish, plus content-type discovery. Media management is close but lacks a delete_media operation, which leaves a small gap in the media lifecycle.
Related MCP Connectors
Gives AI agents direct access to your Sanity projects and guidance for working with them
Connect AI assistants to Plain customer support data and workflows.
Manage your WordPress site from your AI assistant: posts, pages, media, comments and WooCommerce.
Connect assistants to your workspace knowledge, skills, and work tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Strapi CMS instances through REST API operations. Supports content management, media uploads, schema introspection, and multiple server configurations with JWT authentication.MIT
- AlicenseAqualityDmaintenanceEnables natural language content management for Strapi CMS, supporting creation and management of blog posts, tutorials, and events with advanced filtering and metadata operations.18128 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.375 npm1MIT
- FlicenseNot gradedqualityNot gradedmaintenanceProvides AI agents with full access to Strapi 5.x CMS for managing content types, entries, media, and schemas. It supports full CRUD operations, relation management, and secure authentication for comprehensive content administration.-