Skip to main content
Glama

Directus MCP Server

Directus 模型上下文协议 (MCP) 服务器

与 Directus 配合使用的 MCP 服务器。允许您的 AI 工具连接并代表您使用 Directus API。

这是本人 (@rijkvanzanten) 的一项实验。欢迎大家提出任何 PR :)

安装

此 MCP 服务器旨在与 NodeJS v22.12 或更新版本配合使用。

全局安装(推荐)

npm install -g @rijk/directus-mcp-server

然后配置 Claude AI 使用npm包作为远程服务器:

{ "mcpServers": { "directus": { "command": "directus-mcp-server", "env": { "DIRECTUS_URL": "<your Directus instance URL>", "DIRECTUS_TOKEN": "<your Directus user token>" } } } }

本地/开发安装

  1. 克隆 repo
  2. pnpm install && pnpm build构建服务器
  3. 像上面一样配置 Claude AI,但将其指向dist文件:
{ "mcpServers": { "directus": { "command": "node", "args": ["/path/to/directus-mcp-server/dist/index.js"] } } }

工具

阅读项目

read-items工具允许您通过提供集合名称作为参数来读取任何 Directus 集合中的项目。

参数:

  • collection :(必需)要读取的集合的名称
  • fields :(可选)要返回的字段名称数组
  • sort :(可选)排序依据的字段(前缀-表示降序)
  • limit :(可选)返回的最大项目数

例子:

{ "collection": "articles", "fields": ["id", "title", "date_published"], "sort": "-date_published", "limit": 10 }

读取当前用户

获取当前用户的信息。实际上是/users/me端点。

阅读收藏

返回系统中可用的集合/字段。在使用read-items工具之前,请先使用此工具发现可用的集合。

执照

麻省理工学院

-
security - not tested
A
license - permissive license
-
quality - not tested

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 并与之交互,从而实现对集合、项目和用户数据的自动访问。

  1. 安装
    1. 全局安装(推荐)
    2. 本地/开发安装
  2. 工具
    1. 阅读项目
    2. 读取当前用户
    3. 阅读收藏
  3. 执照

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      A Model Context Protocol server that allows AI assistants to interact with Appwrite's API, providing tools to manage databases, users, functions, teams, and other resources within Appwrite projects.
      Last updated -
      84
      39
      Python
      MIT License
      • Linux
      • Apple
    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol server that provides seamless interaction with Workato's API through custom AI tools, enabling management of recipes, connections, connectors, folders, and activity logs.
      Last updated -
      TypeScript
      MIT License
      • Apple
      • Linux
    • -
      security
      F
      license
      -
      quality
      A Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.
      Last updated -
      46
      2
      Python
      • Linux
      • Apple
    • -
      security
      F
      license
      -
      quality
      A Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.
      Last updated -
      275
      JavaScript
      • Apple

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/rijkvanzanten/directus-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server