StrapiSAFE
An MCP server for your Strapi CMS
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
An MCP server for Strapi CMS, providing access to content types and entries through the Model Context Protocol.
Overview
This MCP server integrates with any Strapi CMS instance to provide:
- Access to Strapi content types as resources
- Tools to create and update content types in Strapi
- Tools to manage content entries (create, read, update, delete)
- Support for Strapi in development mode
- Robust error handling with clear diagnostics and troubleshooting guidance
- Configuration validation to prevent common setup issues
Setup
Environment Variables
It's recommended to use a .env file in the project root to store your credentials.
STRAPI_URL: The URL of your Strapi instance (default:http://localhost:1337)STRAPI_ADMIN_EMAIL: The email address for a Strapi admin user (Recommended for full functionality, especially schema access).STRAPI_ADMIN_PASSWORD: The password for the Strapi admin user (Recommended).STRAPI_API_TOKEN: (Optional Fallback) An API token. Can be used if admin credentials are not provided, but may have limited permissions.STRAPI_DEV_MODE: Set to"true"to enable development mode features (defaults tofalse).
Example `.env` file:
STRAPI_URL=http://localhost:1337 [email protected] STRAPI_ADMIN_PASSWORD=your_admin_password # STRAPI_API_TOKEN=your_api_token_here # Optional
Important:
- Add
.envto your.gitignorefile to avoid committing credentials - Avoid placeholder values like
"strapi_token"- the server validates and rejects common placeholders
Installation
Install from npm (Recommended)
npm install strapi-mcp
Install from source (Development)
For the latest development features:
git clone https://github.com/l33tdawg/strapi-mcp.git cd strapi-mcp npm install npm run build
Running
Recommended Method (using Cursor MCP Configuration):
For Cursor users
4697e7917d9fOBSERVED · 2026-10-09Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add strapi-mcp --env STRAPI_ADMIN_PASSWORD=${STRAPI_ADMIN_PASSWORD} --env STRAPI_API_TOKEN=${STRAPI_API_TOKEN} -- npx -y [email protected]{
"mcpServers": {
"strapi-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"STRAPI_ADMIN_PASSWORD": "${STRAPI_ADMIN_PASSWORD}",
"STRAPI_API_TOKEN": "${STRAPI_API_TOKEN}"
}
}
}
}Exposed tools (20)
9 read · 9 write · 2 destructive. Blast radius: 2 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
connect_relation | read | Connects related entries to a relation field. |
create_component | write | Create a new component |
create_content_type | write | Creates a new content type (Admin privileges required). |
create_entry | write | Create a new entry for a content type |
delete_content_type | destructive | Deletes a content type (Admin privileges required). |
delete_entry | destructive | Deletes a specific entry. |
disconnect_relation | read | Disconnects related entries from a relation field. |
get_component_schema | read | Get the schema for a specific component |
get_content_type_schema | read | Get the schema (fields, types, relations) for a specific content type. |
get_entries | read | Get entries for a specific content type with optional filtering, pagination, sorting, and population of relations |
get_entry | read | Get a specific entry by ID |
list_components | read | List all available components in Strapi |
list_content_types | read | List all available content types in Strapi |
publish_entry | write | Publishes a specific entry. |
unpublish_entry | read | Unpublishes a specific entry. |
update_component | write | Update an existing component |
update_content_type | write | Updates a content type attributes (Admin privileges required). |
update_entry | write | Update an existing entry |
upload_media | write | Upload a media file to the Strapi Media Library. Maximum size: ~750KB file (1MB base64). For larger files, use upload_media_from_path. |
upload_media_from_path | write | Upload a media file from a local file path. Avoids context window overflow issues. Maximum size: 10MB. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (5)
delete_content_type, delete_entry
axios, dotenv, form-data, @types/form-data, @types/node, canvas, dotenv-cli, typescript
4. Set a name, description, and token type (preferably "Full access")
- Verify your API token has proper permissions (preferably "Full access")
- If using API token, ensure it has "Full access" permissions
Gates applied: no_behavioural_pass.
4697e7917d9ffull audit observations/trust-audit/mcp-server/l33tdawg__strapi.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | 4697e7917d9f | SAFE | B | 89 | first audit |
Questions
What is the Strapi MCP server?
An MCP server for your Strapi CMS
What tools does Strapi expose?
20 in total: 9 read-only, 9 that write, and 2 that can delete or overwrite (delete_content_type, delete_entry). Every one is listed on this page with its risk.
Is Strapi safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Strapi need?
It reads STRAPI_ADMIN_PASSWORD and STRAPI_API_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Strapi run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as strapi-mcp at 0.2.3.
How current is this page?
The grade is for one exact copy of the source (4697e7917d9f), read on 2026-10-09. The repository is watched and re-audited when it changes.