Directus 模型上下文协议 (MCP) 服务器
与 Directus 配合使用的 MCP 服务器。允许您的 AI 工具连接并代表您使用 Directus API。
这是本人 (@rijkvanzanten) 的一项实验。欢迎大家提出任何 PR :)
安装
此 MCP 服务器旨在与 NodeJS v22.12 或更新版本配合使用。
全局安装(推荐)
npm install -g @rijk/directus-mcp-server
然后配置 Claude AI 使用npm
包作为远程服务器:
本地/开发安装
- 克隆 repo
pnpm install && pnpm build
构建服务器- 像上面一样配置 Claude AI,但将其指向
dist
文件:
工具
阅读项目
read-items
工具允许您通过提供集合名称作为参数来读取任何 Directus 集合中的项目。
参数:
collection
:(必需)要读取的集合的名称fields
:(可选)要返回的字段名称数组sort
:(可选)排序依据的字段(前缀-
表示降序)limit
:(可选)返回的最大项目数
例子:
读取当前用户
获取当前用户的信息。实际上是/users/me
端点。
阅读收藏
返回系统中可用的集合/字段。在使用read-items
工具之前,请先使用此工具发现可用的集合。
执照
麻省理工学院
This server cannot be installed
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.
模型上下文协议服务器允许 AI 工具连接到您的 Directus API 并与之交互,从而实现对集合、项目和用户数据的自动访问。
Related MCP Servers
- AsecurityFlicenseAqualityA Node.js server that enables AI Clients to interact with the Directus CMS API through the Model Context Protocol, allowing for management of collections, items, files, users, and system information.Last updated -1815TypeScript
- -securityAlicense-qualityA server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.Last updated -28TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that provides AI models with structured access to external data and services, acting as a bridge between AI assistants and applications, databases, and APIs in a standardized, secure way.Last updated -1Python
- -securityAlicense-qualityAn extension that implements the Model Context Protocol for Directus, enabling AI tools and LLMs to interact with Directus content through natural language for content editing, data analysis, and asset management.Last updated -46TypeScriptMIT License