Directus
Connect to a Directus instance (self-hosted or Directus Cloud) to discover collections and fields, query items, and retrieve individual records through the read-only REST API.
7 天免费 · 无需信用卡 · EU 托管
问 Directus 任何事
通过 AnythingMCP 对 Directus 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 DirectusClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 Directus。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
Directus 指南
面向主流 AI 客户端的逐步设置。
配置 Directus
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
Set DIRECTUS_URL to the root URL of your Directus instance, for example https://directus.example.com. Directus Cloud and any other publicly reachable instance work as they are. A self-hosted instance on a private network or a private IP address must also be allowed through SSRF_ALLOWED_HOSTS, because the outbound guard blocks private address space by default. Set DIRECTUS_TOKEN to a Directus user's static access token; it is sent using the Authorization Bearer header and must never be placed in the query string. This adapter is read-only. Use directus_list_collections to discover available collections and directus_list_fields before constructing filters. The token needs separate read permission for the directus_fields system collection to use directus_list_fields. A token may be able to read items while receiving HTTP 403 from /fields/{collection}. Directus returns HTTP 403 with an intentionally ambiguous 'no permission or it does not exist' message for inaccessible collections, so this response does not prove that the collection is absent. Collection names and item ids are percent-encoded into the request path, so a value can only ever name one collection or one item. When directus_list_items is called with meta, the result is an object with data and meta (for example total_count or filter_count, useful for paging); without meta it is the list of items.