Strapi MCP
Strapi ships a built-in Model Context Protocol server (Strapi 5.47+) that lets an MCP-capable agent read content types and read/write content over a single endpoint.
In this starter it is enabled by default in development and disabled by default elsewhere. mcp.enabled lives in apps/strapi/config/server.ts, can be toggled with STRAPI_MCP_ENABLED, and exposes http://localhost:1337/mcp authenticated with a Strapi API token.
Connect an agent (Claude Code)
-
Make sure Strapi is running locally:
pnpm dev:strapi. -
Create an API token in admin → Settings → API Tokens — full access for local development, or scoped to limit which MCP tools are exposed. Treat it as a secret; never commit it.
-
Register the server with the Claude Code CLI:
claude mcp add strapi-local --transport http http://localhost:1337/mcp \-H "Authorization: Bearer <token>" -
Restart the session so the tools load, then approve the
mcp__strapi-local__*tools (or pre-allow them in.claude/settings.local.json).
Other MCP clients (Cursor, Windsurf, Claude Desktop) use the same URL and Bearer header — see the official docs for client-specific config.
Troubleshooting
/mcpreturns 404 — MCP is disabled; checkmcp.enabled/STRAPI_MCP_ENABLEDand restart Strapi. Outside development, setSTRAPI_MCP_ENABLED=trueto opt in.- 401 Unauthorized — the API token is invalid, expired, or under-scoped.
- Tools missing after config — restart the agent session.
- Connection refused — Strapi isn't running on
:1337.
Seeding content over MCP
Once connected, the seed-content skill can create pages, navbar, and footer content through the MCP tools.