strapi-mcp-capabilities
Installation
SKILL.md
Strapi MCP Capabilities
Register custom MCP tools/prompts/resources so AI clients can trigger plugin-specific actions on a running Strapi instance. Strapi 5.47.0+. API source of truth: @strapi/types, search mcp.
Hard rules
- Enable the server:
config/server.tsmust setmcp: { enabled: true }. Endpoint isPOST /mcp. - Register only in the
register()phase. The capability list is locked once the MCP server starts (during bootstrap). Registering later throws. - Use Zod from
@strapi/utils(import { z } from '@strapi/utils'), not standalonezod. - Never use global
strapiat module top-level. Either register inline (havestrapi) or useai.mcp.defineTool(...)to define at module scope, then register with the injectedstrapi.
Two registration patterns
Inline — when strapi is in scope (a function called from register()):
// mcp/tools/get-store-kpis.ts
import type { Core } from '@strapi/strapi';
import { z } from '@strapi/utils';