Skip to main content
Glama

Strapi MCP Server

A Model Context Protocol (MCP) server that connects AI assistants to your Strapi CMS. Enables AI to browse, create, edit, publish, and manage content through natural conversation.

Features

  • Full CRUD — Create, read, update, delete content entries

  • Schema introspection — AI discovers your content types, fields, and relations automatically

  • Publish workflow — Publish and unpublish entries directly

  • Media management — Browse, upload, and update media files (alt text, captions)

  • i18n support — Work with multiple locales

  • Secure auth — Login with Strapi admin credentials, role-based permissions

  • Single & Collection types — Handles both seamlessly

  • Zero config on CMS side — Uses Strapi's built-in admin API, no plugins required

Related MCP server: AINative Strapi MCP Server

Tools

Tool

Description

login

Authenticate with Strapi admin credentials

get_session

Check current user and role

list_content_types

Discover all content types and their structure

describe_content_type

Get detailed field definitions for a content type

list_entries

Browse entries with pagination

get_entry

Fetch a single entry with all fields

create_entry

Create new content

update_entry

Update existing content

delete_entry

Delete content

publish_entry

Make content live on the website

unpublish_entry

Revert to draft

list_media

Browse Media Library

upload_media

Upload files to Media Library

update_media

Update file metadata (alt text, caption, name)

Quick Start

Install

npm install -g github:devels-ai/strapi-mcp-server

Configure

Add to your AI client's MCP configuration:

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "strapi": {
      "command": "strapi-mcp-server",
      "env": {
        "STRAPI_URL": "https://your-strapi-instance.com"
      }
    }
  }
}

Claude Code (~/.claude/settings.json):

{
  "mcpServers": {
    "strapi": {
      "command": "strapi-mcp-server",
      "env": {
        "STRAPI_URL": "https://your-strapi-instance.com"
      }
    }
  }
}

Cursor: Settings → MCP Servers → Add the same configuration.

Use

After restarting your AI client:

  1. AI will ask for your Strapi admin email and password

  2. Once authenticated, ask it to help with content — e.g.:

    • "Show me all content types"

    • "Create a new news article about our product launch"

    • "Update the home page hero title"

    • "List all unpublished drafts"

    • "Upload this image and set the alt text"

How It Works

The MCP server connects to Strapi's admin API using your credentials. It inherits your role's permissions — if your Strapi account can't delete content, the AI can't either.

AI Client ←→ MCP Server ←→ Strapi Admin API
              (local)        (your server)
  • MCP server runs locally on your machine

  • Communicates with AI via stdio (standard MCP transport)

  • Calls Strapi's admin REST API over HTTPS

  • JWT token stored in memory only (per session)

Requirements

  • Node.js 18+

  • Strapi v5

  • A Strapi admin account

Environment Variables

Variable

Description

Default

STRAPI_URL

Your Strapi instance URL

http://localhost:1337

Security

  • Credentials are sent directly to your Strapi instance — never to third parties

  • JWT tokens are stored in memory only, never persisted to disk

  • The MCP server respects your Strapi role permissions

  • No data leaves your infrastructure

License

MIT

Available Tools

14 tools
create_entryA

Create a new entry in a collection type (e.g. a new News Article or Product). Pass field values as a JSON string in the 'data' parameter. Use describe_content_type first to know the exact field names. Cannot be used for single types — those already exist, use update_entry instead.

Inputs: data (required), content_type (required).

delete_entryA

Permanently delete an entry from a collection type. Requires the document_id. Cannot delete single type entries. This action cannot be undone — confirm with the user before deleting.

Inputs: document_id (required), content_type (required).

describe_content_typeA

Get the complete field structure of a content type — field names, types, whether required, component details, and relation targets. Also shows CMS labels and descriptions that content managers see. ALWAYS call this before creating or updating entries to know the exact field names and types expected.

Inputs: uid (required).

get_entryA

Fetch a single entry with all its field data. For collection types, provide the document_id (get it from list_entries). For single types, omit document_id — there is only one entry. Returns the full entry including nested components and relations.

Inputs: content_type (required), locale, document_id.

get_sessionA

Check who is currently logged in and their role/permissions. Use this to verify authentication status or to remind yourself of the current user context.

Inputs: no named parameters.

list_content_typesA

Discover all content types in this Strapi CMS. Returns each type's UID (needed for other tools), kind (singleType or collectionType), display name, and field count. Call this after login to understand what content is available to manage.

Inputs: no named parameters.

list_entriesA

List entries for a content type. For collection types (News Articles, Products, Categories), returns a paginated list with document IDs. For single types (Home Page, About Page), returns the single entry directly. Use this to browse existing content or find document IDs for get/update/delete operations.

Inputs: content_type (required), page, locale, page_size.

list_mediaA

Browse files in the Strapi Media Library (images, documents, etc.). Returns file names, IDs, dimensions, MIME types, and alt text. Use this to find existing media files or verify uploads.

Inputs: page, page_size.

loginA

Authenticate with Strapi CMS. Call this FIRST before any other tool. Requires the user's admin email and password. On success, stores a session token for subsequent requests. If the user hasn't provided credentials, ask them for their Strapi admin email and password.

Inputs: email (required), password (required).

publish_entryA

Publish an entry to make it live on the website. Content in Strapi is draft by default after creation or update. Call this after creating or updating content when the user wants changes to appear on the live site. For collection types, provide the document_id.

Inputs: content_type (required), locale, document_id.

unpublish_entryA

Revert a published entry to draft status — removes it from the live website but keeps the content for editing. Use when the user wants to temporarily hide content without deleting it.

Inputs: content_type (required), locale, document_id.

update_entryA

Update an existing entry's fields. For collection types, provide the document_id. For single types (Home Page, Global, etc.), omit document_id. Pass only the fields you want to change as a JSON string. Note: updates are saved as drafts — use publish_entry afterward to make changes live.

Inputs: data (required), content_type (required), locale, document_id.

update_mediaA

Update metadata for a media file — change the display name, alt text (for accessibility/SEO), or caption. Does not replace the file itself, only its metadata.

Inputs: id (required), name, caption, alternative_text.

upload_mediaA

Upload a new file to the Strapi Media Library. Provide the file as base64-encoded data with a filename and MIME type. After uploading, the file can be referenced in content entries via its ID.

Inputs: file_name (required), mime_type (required), base64_data (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 14 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: authentication/session, content-type discovery, entry CRUD/publishing, and media management. The descriptions clarify edge cases such as single types vs collection types and draft vs published state, leaving no meaningful overlap.

    Naming Consistency4/5

    Almost all tools use a clean snake_case verb_noun pattern (list_entries, create_entry, upload_media). The only deviation is the bare verb 'login', which is a minor but understandable exception.

    Tool Count5/5

    Fourteen tools are well-scoped for a Strapi CMS integration, covering auth, schema discovery, entry lifecycle, and media management without obvious filler. Each tool has a clear role in the workflow.

    Completeness4/5

    The entry lifecycle is fully covered with create, read, update, delete, publish, and unpublish, plus content-type discovery. Media management is close but lacks a delete_media operation, which leaves a small gap in the media lifecycle.

    Related MCP Connectors

    Related MCP Servers