MCP.so
登录

Strapi MCP Server

@MCP-Mirror

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

MCP-Mirror

关于 Strapi MCP Server

Mirror of

Strapi MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "strapi": {
      "command": "npx",
      "args": [
        "-y",
        "@bschauer/strapi-mcp-server@2.4.0"
      ]
    }
  }
}

Strapi MCP Server 工具

5

List all available Strapi servers from the configuration.

Get all content types from Strapi. Returns the complete schema of all content types.

Get all components from Strapi with pagination support. Returns both component data and pagination metadata (page, pageSize, total, pageCount).

Execute REST API requests against Strapi endpoints. IMPORTANT: All write operations (POST, PUT, DELETE) require explicit user authorization via the userAuthorized parameter. 1. Reading components: params: { populate: ['SEO'] } // Populate a component params: { populate: { SEO: { fields: ['Title', 'seoDescription'] } } } // With field selection 2. Updating components (REQUIRES USER AUTHORIZATION): body: { data: { // For single components: componentName: { Title: 'value', seoDescription: 'value' }, // For repeatable components: componentName: [ { field: 'value' } ] } } userAuthorized: true // Must set this to true for POST/PUT/DELETE after getting user permission 3. Other parameters: - fields: Select specific fields - filters: Filter results - sort: Sort results - pagination: Page through results

Upload media to Strapi's media library from a URL with format conversion, quality control, and metadata options. IMPORTANT: This is a write operation that REQUIRES explicit user authorization via the userAuthorized parameter.

概览

What is Strapi MCP Server?

A Model Context Protocol server for interacting with Strapi CMS. It enables AI assistants to interact with a Strapi instance through a standardized interface, supporting content types and REST API operations.

How to use Strapi MCP Server?

Install via npx in your Claude Desktop configuration. Create a configuration file at ~/.mcp/strapi-mcp-server.config.json with your Strapi instance's API URL and JWT token. Use the provided tools (e.g., strapi_rest, strapi_get_content_types, strapi_upload_media) to perform operations.

Key features of Strapi MCP Server

  • Schema introspection
  • REST API support with validation
  • Media upload handling with format conversion
  • JWT authentication
  • Content type management
  • Version compatibility management (v4 & v5)
  • Write protection policy

Use cases of Strapi MCP Server

  • Query and manage Strapi content types via an AI assistant
  • Create, read, update, and delete content using the REST API
  • Upload media with automatic format conversion and optimization
  • Explore schema before performing operations to validate fields

常见问题

1

What Strapi versions are supported?

Both Strapi v4 and v5 are supported. Version can be specified in the config (e.g., "5.*", "4.1.5", "v4") and the server handles API differences automatically.

2

How do I authenticate with my Strapi instance?

Authentication is done using a JWT token. You must create an API token in your Strapi admin panel and add it to the configuration file.

3

Can I use this server with multiple Strapi instances?

Yes. You can configure multiple Strapi instances by adding multiple entries to the configuration file at `~/.mcp/strapi-mcp-server.config.json`.

4

How does write protection work?

The server implements a strict write protection policy. All write operations (POST, PUT, DELETE, media upload) require explicit authorization. Each operation is logged and validated.

5

What are the main differences between Strapi v4 and v5 handled automatically?

v4 uses numeric IDs and nested attribute structures with a data wrapper, while v5 uses document-based IDs, flat data direct attribute access, and enhanced JWT security with integrated i18n.

评论

其他 分类下的更多 MCP 服务器