Directus MCP 服务器
一个为 Directus CMS 实现模型上下文协议 (MCP) 的 Node.js 服务器。允许 AI 客户端通过模型上下文协议 (MCP) 与Directus API进行交互。
ℹ 先决条件
▶️ 快速入门
获取您的 Directus API 凭证
转到您的 Directus 实例
创建静态访问令牌或获取您的电子邮件和密码
确保这些凭证的安全
添加到您的 AI 编辑器
或者,您可以使用电子邮件/密码验证:
对于光标:
前往“设置”→“光标设置”→“MCP”
点击
+ Add New Global MCP Server
粘贴配置
使用您的 Directus 凭证替换占位符值
保存并重新启动Cursor
对于 Claude 桌面:
打开“设置”→“开发者”
单击
Edit Config
在代码编辑器中打开
claude_desktop_config.json
并粘贴配置使用您的 Directus 凭证替换占位符值
保存并重新启动Claude
❓ 故障排除
如果您在 MCP 客户端(例如 Cursor 或 Claude Desktop)中启动服务器时遇到问题,请尝试以下操作。
确保您拥有有效的 Directus 凭证
验证您的 Directus URL 是否正确且可访问
检查您的访问令牌或电子邮件/密码凭证是否有效
替换 MCP 客户端配置中的凭据
保存并重启MCP 客户端
确保已安装 Node 和 NPM
运行以下命令确认您已安装 Node 和 NPM:
清除 NPM 缓存
有时清除NPM 缓存可以解决npx
的问题。
🛠️ 可用工具
收藏品和物品
文件
用户和权限
系统
🚧 开发模式
如果您想以开发模式运行服务器:
克隆并安装:
将您的凭证添加到
.env
:启动开发服务器:
📄 Directus 开发者资源
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Node.js 服务器使 AI 客户端能够通过模型上下文协议与 Directus CMS API 交互,从而可以管理集合、项目、文件、用户和系统信息。
Related MCP Servers
- AsecurityAlicenseAqualityA comprehensive Model Context Protocol server that provides advanced Node.js development tooling for automating project creation, component generation, package management, and documentation with AI-powered assistance.Last updated -75MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI models to interact with both MySQL and MongoDB databases through a standardized interface, supporting comprehensive database operations including queries, schema management, and CRUD operations.Last updated -146MIT License
- -securityFlicense-qualityA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.Last updated -331
- -securityFlicense-qualityA Model Context Protocol server that extends AI capabilities by providing file system access and management functionalities to Claude or other AI assistants.Last updated -2096