Strapi 5 MCP Server (God Mode)
# ๐ Strapi 5 MCP Server (God Mode)
[](https://opensource.org/licenses/MIT)
[](https://strapi.io/)
[](https://modelcontextprotocol.io/)
A zero-dependency **Model Context Protocol (MCP)** server tailored for **Strapi 5**. This server empowers AI agents (like Cursor, Claude Desktop, or custom LLM apps) with "God Mode" access to your Strapi CMSโenabling them to understand your schema, query content with deep population, manage media, and even explore plugin architectures.
---
## โจ Features
- ๐ **Deep Schema Discovery**: Directly reads your local `src/api/*/content-types/*/schema.json` to give AI full context of your data structures.
- ๐ ๏ธ **Full CRUD Operations**: Create, Read, Update, and Delete entries across Collection and Single Types.
- ๐ **Deep Population**: Built-in support for `populate=deep` and complex API queries.
- ๐ผ๏ธ **Media Intelligence**: List media files and even globally replace media URLs (perfect for migrations or staging syncs).
- ๐งฉ **Developer Toolbox**: Explore custom plugins and discover available components in the Strapi Design System.
- โก **Zero Dependencies**: Lightweight and fast. Runs natively with Node.js 18+ using standard `fetch`.
---
## ๐ Quick Start
You can run the server directly from GitHub without cloning the code:
```bash
npx -y github:thinhnd028/strapi-mcp-server
```
---
## โ๏ธ Configuration
The server requires the following environment variables to function correctly:
| Variable | Description | Default |
| :--- | :--- | :--- |
| `PROJECT_ROOT` | Path to your Strapi backend folder (where `src/` lives). | Current working directory |
| `STRAPI_URL` | The base URL of your Strapi instance. | `http://localhost:1337` |
| `STRAPI_TOKEN` | A Full Access API Token (needed for CRUD ops). | (Optional if API is public) |
### Integration with Cursor / Claude Desktop
Add this to your MCP settings (`claude_desktop_config.json` or Cursor MCP settings):
```json
{
"mcpServers": {
"strapi": {
"command": "npx",
"args": ["-y", "github:thinhnd028/strapi-mcp-server"],
"env": {
"PROJECT_ROOT": "/Users/yourname/projects/my-strapi-app",
"STRAPI_URL": "http://localhost:1337",
"STRAPI_TOKEN": "your_long_api_token_here"
}
}
}
}
```
---
## ๐งฐ Available Tools
### ๐ฆ Content Management
- `strapi_list_apis`: List all available Content Types.
- `strapi_get_schema`: Retrieve the internal JSON schema for a specific API.
- `strapi_list_components`: List shared components available in the project.
- `strapi_query`: Perform complex queries with filters and pagination.
- `strapi_get_entry`: Fetch a specific entry by ID (with deep auto-population).
- `strapi_get_page_by_slug`: Find entries by slug (ideal for frontend developers).
- `strapi_get_single`: Fetch content from Single Types.
- `strapi_create_entry`: Create a new entry.
- `strapi_update_entry`: Update an existing entry.
- `strapi_delete_entry`: Delete an entry.
### ๐ผ๏ธ Media & Assets
- `strapi_list_media`: List and filter media library assets.
- `strapi_replace_media_urls`: Bulk replace media URLs (useful for staging -> production sync).
### ๐ ๏ธ Developer Essentials
- `strapi_list_plugins`: Discover custom plugins in `src/plugins`.
- `strapi_get_plugin_structure`: Map out the file structure of a specific plugin.
- `strapi_get_design_system_info`: List available modules in `@strapi/design-system`.
---
## ๐ License
Distributed under the MIT License. See `LICENSE` for more information.
---
Developed with โค๏ธ for the Strapi Community.
TDQS
Scored across 16 tools
Most tools have clearly distinct purposes: entry CRUD, query, slug lookup, single-type retrieval, media, plugins, and design-system introspection. The main overlap is between strapi_query and strapi_get_entry, but the advanced-query wording helps distinguish them.
All tools use a consistent strapi_ prefix with predictable verb_noun naming such as strapi_get_entry, strapi_create_entry, and strapi_list_media. strapi_whoami is the only stylistic exception but is a conventional command name.
16 tools is slightly above the typical 3-15 range but remains reasonable for a Strapi 'God Mode' server spanning content, media, plugins, and design-system inspection. Each area has a small set of tools rather than excessive fragmentation.
Core entry CRUD, querying, schema/component listing, media listing, and plugin inspection are covered. However, notable gaps exist: single types only have read access, and media has list/replace but no upload or delete operations, limiting full lifecycle coverage.