strapi-mcp-connect

v1.1.1
strapi-mcp-connect Checked 7 hours ago Published 1 month ago

Model Context Protocol (MCP) server for Strapi CMS.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

test_connection Test Strapi Connection

Checks that this MCP server can reach your Strapi instance. Always run this first.

get_entries Get Strapi Entries

Fetch a list of entries for a collection type. Use the PLURAL API ID (e.g. 'articles', 'pages', 'products'). Supports pagination, filters, populate, sorting, and draft/published status.

ParameterTypeDescription
pluralApiId *stringPlural API ID of the collection type, e.g. 'pages', 'articles'
filtersstringOptional raw Strapi filter query string, e.g. 'filters[title][$contains]=hello'
pageintegerPage number (pagination)
pageSizeintegerResults per page
populatestringOptional relations/media to populate, e.g. '*' for all, or 'author,image'
sortstringOptional sort string, e.g. 'createdAt:desc' or 'title:asc'
statusstringStrapi v5 draft and publish status: 'draft' or 'published' (default is published)

get_entry Get Single Strapi Entry

Fetch a single collection entry by its numeric ID or documentId (Strapi v5).

ParameterTypeDescription
id *stringThe entry's id or documentId
pluralApiId *stringPlural API ID, e.g. 'pages', 'articles'
populatestringOptional relations/media to populate, e.g. '*'
statusstringStrapi v5 draft status: 'draft' or 'published'

get_single_type Get Strapi Single Type

Fetch data for a Single Type (e.g. 'homepage', 'navigation', 'footer', 'global').

ParameterTypeDescription
singularApiId *stringSingular API ID of the single type, e.g. 'homepage', 'footer'
populatestringOptional populate parameter, e.g. '*'
statusstringStrapi v5 status: 'draft' or 'published'

update_single_type Update Strapi Single Type

Update data for a Single Type (e.g. 'homepage', 'navigation', 'footer').

ParameterTypeDescription
data *Field values to update as a JSON object
singularApiId *stringSingular API ID of the single type, e.g. 'homepage', 'footer'

create_entry Create Strapi Entry

Create a new entry in a collection type. 'data' must be a JSON object matching that content type's fields.

ParameterTypeDescription
data *Field values as a JSON object, e.g. { "title": "Hello", "body": "..." }
pluralApiId *stringPlural API ID, e.g. 'pages', 'articles'
statusstringStrapi v5 draft and publish status (default: 'published' or draft)

update_entry Update Strapi Entry

Update fields on an existing collection entry by documentId or id.

ParameterTypeDescription
data *Only the fields you want to change, as a JSON object
id *stringThe entry's documentId (or numeric ID)
pluralApiId *stringPlural API ID, e.g. 'pages', 'articles'

delete_entry Delete Strapi Entry

Permanently delete an entry by id or documentId. This cannot be undone.

ParameterTypeDescription
id *stringThe entry's id or documentId
pluralApiId *stringPlural API ID, e.g. 'pages', 'articles'

get_content_types_schema Get Content Types Schema

Retrieve the schema definitions of all Strapi content types (collections and single types). This helps you understand the required fields and structure before creating or updating entries.

get_components_schema Get Components Schema

Retrieve the schema definitions of all Strapi components. This is crucial for understanding the structure of dynamic zones and nested components before data entry.

raw_query Raw Strapi API Request

Execute a direct GET, POST, PUT, or DELETE request against any Strapi API endpoint (e.g. '/users', '/custom-route').

ParameterTypeDescription
endpoint *stringThe API path relative to /api, e.g. '/users' or '/pages?populate=*'
bodyOptional JSON payload for POST/PUT requests
methodstring

upload_media Upload Media to Strapi

Upload a local file to Strapi's Media Library. Use this to upload images/documents and get their ID to link them to entries.

ParameterTypeDescription
filePath *stringThe absolute path to the local file (e.g., C:/images/hero.jpg)