Strapi MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
api_keyYesYour JWT token from the Strapi admin panel
api_urlYesThe URL of your Strapi instance, e.g. 'http://localhost:1337'http://localhost:1337
versionNoOptional: Specify Strapi version (e.g., '5.*', '4.1.5', 'v4')

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
strapi_list_servers

List all available Strapi servers from the configuration.

strapi_get_content_types

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

strapi_get_components

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

strapi_rest

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
strapi_upload_media

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.