AINative Strapi MCP服务器
](https://www.npmjs.com/package/ainative-strapi-mcp-server) 
Strapi CMS的自然语言博客发布和内容管理。用于AI助手的生产就绪MCP(模型上下文协议)集成。
特性
- 博客文章管理:使用markdown支持创建、阅读、更新、发布博客文章
- 导师制:创建具有难度级别和持续时间跟踪的分步教程
- 活动管理:管理网络研讨会、研讨会、聚会和会议
- 高级过滤:按类别、标签、作者、难度、事件类型搜索和筛选
- 元数据操作:列出作者、类别和标签
- 生产就绪:在综合测试套件中测试通过率为100%
安装
全球安装
npm install -g ainative-strapi-mcp-server适用于MCP兼容的AI助手
添加到MCP配置文件中:
{
"mcpServers": {
"ainative-strapi": {
"command": "ainative-strapi-mcp",
"args": [],
"env": {
"STRAPI_URL": "https://your-strapi-instance.com",
"STRAPI_ADMIN_EMAIL": "your-admin@example.com",
"STRAPI_ADMIN_PASSWORD": "your-secure-password"
}
}
}
}环境变量
| 变量 | 必填 | 描述 |
|---|---|---|
STRAPI_URL | 是 | 您的Strapi实例URL(例如。, https://cms.example.com) |
STRAPI_ADMIN_EMAIL | 是 | 用于身份验证的管理员电子邮件 |
STRAPI_ADMIN_PASSWORD | 是 | 用于身份验证的管理员密码 |
可用操作
博客文章操作(6)
- strapi_create_blog_post -创建新的博客文章
- strapi_list_blog_post -列出具有高级过滤功能的博客文章
- strapi_get_blog_post -通过文档ID获取特定的博客文章
- 带上最新博客SOST -更新现有博客文章
- strapi_publish_blog_post -发布或取消发布博客文章
- strapi_list_作者 -列出所有作者
- 表带_列表_类别 -列出所有博客类别
- strapi_list_tags -列出所有博客标签
教程操作(5)
- strapi_create_tutorial -创建分步教程
- 捷联列表教程 -列出带有过滤功能的教程
- strapi_get_tutorial -按文档ID获取特定教程
- Straft更新教程 -更新现有教程
- strapi_publish_教程 -发布或取消发布教程
活动操作(5)
- strapi_create_event -创建新事件
- strapi_list_事件 -使用筛选列出事件
- strapi_get_event -通过文档ID获取特定事件
- Straft更新活动 -更新现有事件
- strapi_publish_event -发布或取消发布事件
使用示例
创建博客文章
strapi_create_blog_post({
title: "Getting Started with AI Development",
content: "# Introduction\n\nLet's explore AI development...",
description: "A beginner's guide to AI development",
author_id: 1,
category_id: 2,
tag_ids: [1, 3, 5]
})列出带有过滤器的博客文章
strapi_list_blog_posts({
status: "published",
category_id: 2,
page: 1,
pageSize: 10,
sort: "publishedAt:desc"
})创建教程
strapi_create_tutorial({
title: "Building Your First AI Agent",
content: "# Step 1: Setup\n\nFirst, install the required packages...",
description: "Learn to build AI agents from scratch",
difficulty: "beginner",
duration: 30,
author_id: 1
})创建事件
strapi_create_event({
title: "AI Development Workshop",
description: "Hands-on workshop for building AI applications",
event_type: "workshop",
start_date: "2025-02-15T10:00:00Z",
end_date: "2025-02-15T16:00:00Z",
location: "Virtual - Zoom",
registration_url: "https://example.com/register",
max_attendees: 50
})版本历史
v1.0.0(2025-12-13)
- 初始版本
- 支持博客文章、教程和活动
- 18个具有完整CRUD功能的操作
- 高级过滤和搜索
- 生产准备就绪,经过全面测试
许可证
MIT许可证-有关详细信息,请参阅许可证文件
支持
对于问题、疑问或贡献:
- GitHub问题:https://github.com/AINative-Studio/ainative-strapi-mcp-server/issues
- 电子邮件:support@ainative.studio
- 网站:https://ainative.studio
贡献
欢迎投稿!请随时提交拉取请求。
致谢
由AINative Studio为模型上下文协议生态系统构建。
