Strapi MCP Server

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.

Input Schema

NameRequiredDescriptionDefault
formatNoTarget format for the image. Use 'original' to keep the source format.original
metadataNo
qualityNoImage quality (1-100). Only applies when converting formats.
serverYesThe name of the server to connect to
urlYesURL of the image to upload
userAuthorizedNoREQUIRED for media upload operations. Client MUST obtain explicit user authorization before setting this to true.

Input Schema (JSON Schema)

{ "properties": { "format": { "default": "original", "description": "Target format for the image. Use 'original' to keep the source format.", "enum": [ "jpeg", "png", "webp", "original" ], "type": "string" }, "metadata": { "properties": { "alternativeText": { "description": "Alternative text for accessibility", "type": "string" }, "caption": { "description": "Caption for the image", "type": "string" }, "description": { "description": "Detailed description of the image", "type": "string" }, "name": { "description": "Name of the file", "type": "string" } }, "type": "object" }, "quality": { "default": 80, "description": "Image quality (1-100). Only applies when converting formats.", "maximum": 100, "minimum": 1, "type": "number" }, "server": { "description": "The name of the server to connect to", "type": "string" }, "url": { "description": "URL of the image to upload", "type": "string" }, "userAuthorized": { "default": false, "description": "REQUIRED for media upload operations. Client MUST obtain explicit user authorization before setting this to true.", "type": "boolean" } }, "required": [ "server", "url" ], "type": "object" }