DM

directus/mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

87 stars 18 forks 품질 74 트렌드 15MIT

Directus Content MCP Server는 Directus 사용자의 인터페이스로 LLM의 데이터와 상호 작용합니다.

개요

Model Context Protocol (MCP)은 AI 도구와 LLMs가 Directus와 같은 애플리케이션 및 서비스에 대해 이야기하는 데 필요한 표준입니다. Directus Content MCP Server는 Directus 사용자의 인터페이스로 LLM의 데이터와 상호 작용합니다. 몇몇 좋은 사용 케이스는: - : 사용자 정의 페이지를 구축, 블로그 게시물을 작성, 콘텐츠 업데이트, 자산을 구성하고 당신의 Directus 프로젝트 내부. - : 쿼리 수집, 보고서 생성, 동향 분석, 자연 언어를 사용하여 다이렉트 데이터의 통찰력을 추출. 그것은 의도적으로는 deleting 필드 또는 deleting 컬렉션에서 데이터 손실과 같은 정말 나쁜 결과를 결과로 파괴적인 작업을 제한합니다. 우리는 향후 출시 및 잠재적으로 데이터 손실을 방지하기 위해 별도의 패키지로 로컬 / 개발 Directus 프로젝트와 협력하는 개발자를위한 더 많은 도구를 제공 할 계획입니다. 기존 Directus 프로젝트가 없다면, Directus Cloud에서 무료 평가판으로 시작될 수 있습니다. https://directus.]

개요(AI 번역)

Model Context Protocol (MCP)은 AI 도구를 돕는 표준이며 LLMs는 Directus와 같은 애플리케이션 및 서비스에 대해 이야기합니다.

Directus Content MCP Server는 Directus 사용자의 인터페이스로 LLM의 데이터와 상호 작용합니다. 좋은 사용 사례:

-Content Editors: 사용자 지정 페이지를 구축하고, 블로그 게시물을 작성, 콘텐츠 업데이트, 자산 구성 및 더 많은 내부 Directus 프로젝트.

  • Data Analysts: 쿼리 수집, 보고서 생성, 동향 분석, 그리고 당신의 Directus 데이터에서 통찰력 추출 자연적인 언어 사용.

그것은 의도적으로 deleting 분야에서 데이터 손실과 같은 정말 나쁜 결과를 결과로 파괴적인 작업을 제한 또는 삭제 컬렉션.

우리는 미래의 로컬 / 개발 Directus 프로젝트와 함께 일하는 개발자를위한 더 많은 도구를 제공 할 계획 데이터 손실을 방지하기 위해 별도의 패키지로 출시 및 잠재적으로.

설치

# 필수품

  • 기존 Directus 프로젝트

기존 Directus 프로젝트가 없다면 무료 평가판으로 시작할 수 있습니다. [T0]] https://directus.cloud/register]에서 Directus Cloud 사용

이름 *

당신은 다음과 같은 터미널 명령으로 로컬 샘플 다이렉서 인스턴스를 회전 할 수 있습니다.

단계 1.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Directus Content MCP Server

The Model Context Protocol (MCP) is a standard for helping AI tools and LLMs talk to applications and services like Directus.

The Directus Content MCP Server is an interface for Directus users to interact with their data in LLMs. Some good use cases are:

  • Content Editors: build custom pages, write blog posts, update content, organize assets and more inside your Directus project.
  • Data Analysts: query collections, generate reports, analyze trends, and extract insights from your Directus data using natural language.

It intentionally limits destructive actions that would result in really bad outcomes like data loss from deleting fields or deleting collections.

We plan to provide more tools for developers who are working with local / development Directus projects in future releases and potentially as a separate package to help further prevent data loss.

Installation

Prerequisites

  • An existing Directus project

If you don’t have an existing Directus project, you can get started with a free trial on Directus Cloud at https://directus.cloud/register

OR

You can spin up a sample Directus instance locally with the following terminal command.

npx directus-template-cli@latest init

Step 1. Get Directus Credentials

You can use email and password or generate a static token to connect the MCP to your Directus instance.

To get a static access token:

  1. Login to your Directus instnace
  2. Go to the User Directory and choose your own user profile
  3. Scroll down to the Token field
  4. Generate token and copy it
  5. Save the user (do NOT forget to save because you’ll get an error that shows Invalid token!)

Step 2. Configure the MCP in your AI Tool

Claude Desktop

  1. Open Claude Desktop and navigate to Settings.

  2. Under the Developer tab, click Edit Config to open the configuration file.

  3. Add the following configuration:

    {
    	"mcpServers": {
    		"directus": {
    			"command": "npx",
    			"args": ["@directus/content-mcp@latest"],
    			"env": {
    				"DIRECTUS_URL": "https://your-directus-url.com",
    				"DIRECTUS_TOKEN": "your-directus-token>"
    			}
    		}
    	}
    }
    

    or if you’re using email and password

    {
    	"mcpServers": {
    		"directus": {
    			"command": "npx",
    			"args": ["@directus/content-mcp@latest"],
    			"env": {
    				"DIRECTUS_URL": "https://your-directus-url.com",
    				"DIRECTUS_USER_EMAIL": "[email protected]",
    				"DIRECTUS_USER_PASSWORD": "your-password"
    			}
    		}
    	}
    }
    

    Make sure you replace the placeholder values with your URL and credentials.

  4. Save the configuration file and restart Claude desktop.

  5. From the new chat screen, you should see an icon appear with the Directus MCP server.

Cursor

GitHub에서 전체 README 보기

설치

npx @directus/content-mcp@latest
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "directus": { "command": "npx", "args": ["@directus/content-mcp@latest"], "env": { "DIRECTUS_URL": "https://your-directus-url.com", "DIRECTUS_TOKEN": "your-directus-token>" } } } }