Directus Content MCP

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

Local serverstdioMIT

What is the Directus Content MCP Server?

Directus Content MCP is an MCP project maintained in the directus/mcp repository. The maintainer describes its purpose as “The Model Context Protocol (MCP) is a standard for helping AI tools and LLMs talk to applications and services like Directus”. Read the project documentation for the complete scope.

Installation

The documented npm package is @directus/content-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares DIRECTUS_URL, DIRECTUS_TOKEN. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
DIRECTUS_PROMPTS_COLLECTION_ENABLEDSet to "true" to enable prompt functionality
DIRECTUS_PROMPTS_COLLECTIONThe name of the collection containing prompts
DIRECTUS_PROMPTS_NAME_FIELDField name for the prompt name (default: "name")
DIRECTUS_PROMPTS_DESCRIPTION_FIELDField name for the prompt description (default: "description")
DIRECTUS_PROMPTS_SYSTEM_PROMPT_FIELDField name for the system prompt text (default: "system_prompt")
DIRECTUS_PROMPTS_MESSAGES_FIELDField name for the messages array (default: "messages")
system-promptProvides context to the LLM assistant about its role
users-meGet current user information
read-collectionsRetrieve the schema of all collections
read-itemsFetch items from any collection
create-itemCreate new items in collections
update-itemModify existing items
delete-itemRemove items from collections
read-filesAccess file metadata or raw content
import-fileImport files from URLs
update-filesUpdate file metadata
read-fieldsGet field definitions for collections
read-fieldGet specific field information
create-fieldAdd new fields to collections
update-fieldModify existing fields
read-flowsList available automation flows
trigger-flowExecute automation flows
read-commentsView comments on items
upsert-commentAdd or update comments
markdown-toolConvert between markdown and HTML
get-promptsList available prompts
get-promptExecute a stored prompt

How to install the Directus Content MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
DIRECTUS_URLDeclared in the maintainer’s client configuration.Check documentation
DIRECTUS_TOKENDeclared in the maintainer’s client configuration.Check documentation