strapi-plugin-mcp
Strapi plugin that integrates Model Context Protocol (MCP) functionality, enabling AI models to interact with your Strapi content and system information through a standardized protocol
Install / Use
claude mcp add Sensinum -- npx -y github:Sensinum/strapi-plugin-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of strapi-plugin-mcp
strapi-plugin-mcp scores 83/100 on our quality scale, 657th of 955 AI & Machine Learning skills we index.
Its MCP Server is 17 KB long, well organised into 53 sections with 15 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 3 days ago, so strapi-plugin-mcp is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
strapi-plugin-mcp compared with similar skills
All 4 of these similar skills score higher than strapi-plugin-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| strapi-plugin-mcp (this skill)by Sensinum | 83 | 3 | 3d ago | MCP Server |
| claude-memby thedotmack | 100 | 113.9k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 109.6k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 91.1k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.0k | today | CLAUDE.md |
Frequently asked questions
- How do I install strapi-plugin-mcp?
- Run
claude mcp add Sensinum -- npx -y github:Sensinum/strapi-plugin-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does strapi-plugin-mcp work with?
- It is written for Claude Code, Claude Desktop and Zed, as a MCP Server file. Other agents that read the same format can often use it too.
- Is strapi-plugin-mcp safe to use?
- It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is strapi-plugin-mcp still maintained?
- The repository was last updated 3 days ago, so strapi-plugin-mcp is actively maintained.
Skill content
View source on GitHubA Strapi v5 plugin that integrates Model Context Protocol (MCP) functionality, enabling AI models to interact with your Strapi content and system information through a standardized protocol.
⚠️ SECURITY WARNING: This plugin exposes internal Strapi functionality and should NEVER be enabled in production environments. It is designed for development and local use only. Always disable this plugin before deploying to production.
- 📖 Overview
- 📋 Prerequisites
- ⏳ Installation
- 🔌 Integration Guide
- 🔧 Configuration
- 🚀 Usage
- 🛠️ Available MCP Tools
- 💡 Usage Examples
- 👨💻 Development
- 📝 License
📖 Overview
This plugin provides MCP (Model Context Protocol) integration for Strapi, allowing AI assistants and other MCP clients to:
- Access Content Types: Query and introspect your Strapi content type schemas and relationships
- Retrieve System Information: Get Strapi version, configuration details, and plugin status
- Interact with Services: Access Strapi service methods and functionality
- Session Management: Support for both in-memory and Redis-based session storage
The plugin exposes MCP tools through a streamable HTTP transport, making it easy to integrate with Claude Desktop, Cursor, and other MCP-compatible clients.
📋 Prerequisites
Before installing this plugin, ensure your environment meets the following requirements:
- Strapi: v5.0.0 or higher
- Node.js: v18.0.0 or higher (recommended: v20 LTS)
- Package Manager: npm, yarn, or pnpm
- Redis (optional): v6.0.0 or higher (only required if using Redis session management)
Note: After installation, you may need to restart your Strapi server for the plugin to be fully initialized.
Table of Contents
- 📖 Overview
- 📋 Prerequisites
- ⏳ Installation
- 🔌 Integration Guide
- 🔧 Configuration
- 🚀 Usage
- 🛠️ Available MCP Tools
- 💡 Usage Examples
- 👨💻 Development
- 📝 License
⏳ Installation
Install the plugin using your preferred package manager:
# Using npm
npm install @sensinum/strapi-plugin-mcp
# Using yarn
yarn add @sensinum/strapi-plugin-mcp
# Using pnpm
pnpm add @sensinum/strapi-plugin-mcp
After installation, the plugin will be automatically discovered by Strapi v5. No additional registration steps are required.
🔌 Integration Guide
MCP Client Configuration
The plugin exposes a streamable HTTP endpoint for MCP communication:
http://localhost:1337/api/mcp/streamable
Claude Desktop Configuration
Add the following to your Claude Desktop MCP configuration:
{
"mcpServers": {
"strapi": {
"type": "streamable-http",
"url": "http://localhost:1337/api/mcp/streamable",
"note": "For Streamable HTTP connections, add this URL directly in your MCP Client"
}
}
}
Cursor Configuration
For Cursor, create or update your .cursor/mcp.json file:
{
"mcpServers": {
"strapi": {
"type": "streamable-http",
"url": "http://localhost:1337/api/mcp/streamable",
"note": "For Streamable HTTP connections, add this URL directly in your MCP Client"
}
}
}
Endpoint Details
The plugin provides the following HTTP endpoints:
- GET
/api/mcp/streamable- Initialize MCP connection - POST
/api/mcp/streamable- Handle MCP requests - DELETE
/api/mcp/streamable- Close MCP session
All endpoints support session-based communication with automatic session management.
🔧 Configuration
The plugin supports flexible session management through Strapi's configuration system. Add configuration to your config/plugins.js (or config/plugins.ts) file:
Memory Session Management
For development or single-instance deployments, use in-memory session storage:
// config/plugins.js
module.exports = {
// ... other plugins
mcp: {
enabled: true,
config: {
session: {
type: "memory"
}
}
}
};
// config/plugins.ts
export default {
// ... other plugins
mcp: {
enabled: true,
config: {
session: {
type: "memory"
}
}
}
};
Memory session options:
type: Must be"memory"max: Maximum number of sessions to keep in memory (default: 20)ttlMs: Session timeout in milliseconds (default: 600000 - 10 minutes)updateAgeOnGet: Whether to reset TTL on session access (default: true)
Redis Session Management
For production or multi-instance deployments, use Redis for session persistence:
Option 1: Redis Connection Object
// config/plugins.js
module.exports = {
// ... other plugins
mcp: {
enabled: true,
config: {
session: {
type: "redis",
connection: {
host: "localhost",
port: 6379,
// Optional Redis auth
username: "default",
password: "your-redis-password",
db: 0
},
ttlMs: 600000, // 10 minutes
keyPrefix: "mcp:session"
}
}
}
};
Option 2: Redis Connection URL
// config/plugins.js
module.exports = {
// ... other plugins
mcp: {
enabled: true,
config: {
session: {
type: "redis",
connection: "redis://localhost:6379"
}
}
}
};
Option 3: Redis with Custom Port
// config/plugins.js
module.exports = {
// ... other plugins
mcp: {
enabled: true,
config: {
session: {
type: "redis",
connection: {
host: "localhost",
port: 8899
}
}
}
}
};
Or using connection URL format:
// config/plugins.js
module.exports = {
// ... other plugins
mcp: {
enabled: true,
config: {
session: {
type: "redis",
connection: "redis://localhost:8899"
}
}
}
};
Redis session options:
type: Must be"redis"connection: Redis connection configuration (object or URL string)ttlMs: Session timeout in milliseconds (default: 600000 - 10 minutes)keyPrefix: Redis key prefix for sessions (default: "mcp:session")
IP Allowlist
For enhanced security, you can restrict access to the MCP endpoints by IP address. Add the allowedIPs array to your configuration:
// config/plugins.js
module.exports = {
// ... other plugins
mcp: {
enabled: true,
config: {
session: {
type: "memory"
},
allowedIPs: ["127.0.0.1", "::1", "192.168.1.100"]
}
}
};
// config/plugins.ts
export default {
// ... other plugins
mcp: {
enabled: true,
config: {
session: {
type: "memory"
},
allowedIPs: ["127.0.0.1", "::1", "192.168.1.100"]
}
}
};
IP Allowlist options:
allowedIPs: Array of IP addresses allowed to access the MCP endpoints (default:["127.0.0.1", "::1"])- Supports both IPv4 and IPv6 addresses
- If not configured, only localhost connections are allowed by default
- Requests from IPs not in the allowlist will receive a 403 Forbidden response
Environment Variables
You can also use environment variables in your configuration:
// config/plugins.js
module.exports = {
mcp: {
enabled: true,
config: {
session: {
type: "redis",
connection: {
host: process.env.REDIS_HOST || "localhost",
port: parseInt(process.env.REDIS_PORT) || 6379,
password: process.env.REDIS_PASSWORD,
}
}
}
}
};
🚀 Usage
Once configured, the plugin automatically exposes MCP tools that clients can discover and use. The plugin provides tools for:
- Content Type Introspection - Query available content types and their schemas
- Strapi System Information - Access instance details, version info, and configuration
- Service Methods - Interact with Strapi services and their methods
MCP clients can discover available tools through the standard MCP protocol and invoke them as needed.
🛠️ Available MCP Tools
The plugin exposes several categories of tools:
Content Types Tools
content-types- List all available content typescontent-type-by-name- Get detailed information about a specific content typecomponents- List all available componentscomponent-by-name- Get detailed information about a specific component
Strapi Info Tools
instance-info- Get Strapi instance information including version and configuration
Services Tools
services- List all available servicesservice-methods- Get methods available on a specific service
All tools follow MCP protocol standards and provide comprehensive error handling and validation.
Custom Tools
The plugin supports registering custom MCP tools through the custom service. This allows developers to extend the plugin's functionality by adding domain-specific tools that integrate with their Strapi application. Custom tools are registered using the registerTool method and become available to MCP clients alongside the built-in tools.
The registerTool method accepts a McpToolDefinition object with the following TypeScript interface: name (string) for the tool identifier, callback (ToolCallback) for the execution function that returns MCP-formatted content, optional argsSchema (ZodRawShape) for argument validation, optional description (string) for tool documentation, and optional annotations (ToolAnnotations) for additional metadata. The callback function receives validated arguments and must return content in MCP format with a content array containing text, image, or other supported content types.
const mcpCustomService = strapi.plugin("mcp").service("custom");
mcpCustomService.registerTool({
name: "custom-mango",
description: "Mango tool",
argsSchema: {},
callback: async () => ({
content: [
{
type: "text",
text: JSON.stringify({
success: true,
message: "Mango tool",
}),
},
],
}),
});
💡 Usage Examples
Once your MCP client is connected, you can interact with your Strapi instance using natural language. Here are comprehensive examples of how to use the plugin's capabilities:
Content Type Exploration
Discovering Available Content Types
Ask
Truncated for display — read the full file on GitHub.
Related Skills
claude-mem
113.9kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
109.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
91.1kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
79.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
