Directus MCP Server

by rijkvanzanten
Verified

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.

Integrations

  • Connects to a Directus API instance, allowing AI tools to read items from collections, access current user information, and view available collections and fields in the system.

Directus 모델 컨텍스트 프로토콜(MCP) 서버

Directus와 함께 사용할 수 있는 MCP 서버입니다. AI 도구가 사용자를 대신하여 Directus API에 연결하고 사용할 수 있도록 지원합니다.

이건 저(@rijkvanzanten)가 직접 실험한 거예요. 모든 홍보는 환영합니다 :)

설치

이 MCP 서버는 NodeJS v22.12 이상에서 작동하도록 제작되었습니다.

글로벌 설치(권장)

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

그런 다음 Claude AI가 npm 패키지를 원격 서버로 사용하도록 구성합니다.

지엑스피1

로컬/개발자 설치

  1. 저장소를 복제합니다
  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 도구를 사용하기 전에 이 도구를 사용하여 사용 가능한 컬렉션을 먼저 확인하세요.

특허

MIT

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

AI 도구가 Directus API에 연결하고 상호 작용할 수 있도록 하는 모델 컨텍스트 프로토콜 서버로, 컬렉션, 항목 및 사용자 데이터에 자동으로 액세스할 수 있습니다.

  1. Installation
    1. Global Installation (Recommended)
    2. Local / Dev Installation
  2. Tools
    1. Read Items
    2. Read Current User
    3. Read Collections
  3. License
    ID: x5946s4sco