Tools

Learn about the tools available in the Directus remote MCP server and how they enable AI-powered content management.

The Directus remote MCP server provides a set of tools that allow AI assistants to interact with your Directus instance. These tools enable various operations while respecting your existing permissions and security settings.

Note: The remote MCP server uses unified tools compared to the local MCP server. For example, it has a single items tool that handles all CRUD operations, while the local MCP has separate read-items, create-item, update-item, and delete-item tools.

Tool Modes

MCP clients receive tool names, descriptions, and input schemas from the server. Clients that put every definition into the model prompt spend part of the context window on tools the model may never use. Directus offers two modes to control that cost.

Default Mode

Connect to /mcp to expose each Directus tool separately. This mode preserves the complete MCP interface, including individual tool names, descriptions, annotations, and client approval settings.

Use default mode when your client searches or loads MCP tools on demand. Client-side discovery solves the context-window problem while keeping direct calls to tools such as items, files, and collections.

Registry Mode

Connect to /mcp?tool_mode=registry to expose three root tools:

ToolDescription
searchSearches the available Directus tools or loads full details for selected tool names
executeRuns a tool selected through search
schemaReads collection and field schema information directly

Registry mode moves discovery into Directus and follows this sequence:

  1. Call search with a query to discover relevant tools.
  2. Call search with the selected tool names to load their instructions and input types.
  3. Call execute with the tool name and input.

The schema tool stays available directly because models commonly need the data model before working with content. Only the selected inner tool details enter the conversation through search, while the underlying operation still uses the connected user's Directus permissions and the project's MCP settings.

Use registry mode when the client loads all MCP tool definitions upfront, lacks tool search, or reaches a tool-count limit. The smaller initial tool surface leaves more context for your prompt, conversation history, schema, and results.

ConsiderationDefault modeRegistry mode
Initial Directus tool surfaceAll individual toolssearch, execute, and schema
Context usageDepends on the client's loading behaviorBounded initial tool definitions
Tool callsCalls the selected tool directlyUsually searches, loads details, then calls execute
Client approvals and allow listsCan target individual toolsCan target only the root tools
Client tool UI and call historyShows individual Directus toolsShows execute with the inner tool in its input
CompatibilityWorks with existing MCP configurationsRequires adding tool_mode=registry to the URL
Use the default mode when your client already provides tool search. Registry mode duplicates that discovery step and replaces individual client approval rules with a single execute policy.

Default Mode Tools

The remote MCP server provides the following tools:

ToolDescriptionUse Cases
system-promptProvides context about Directus and your instanceStart of session, understanding capabilities
itemsComplete CRUD operations on collection itemsContent management, data operations
schemaRead collection and field schema informationUnderstanding data structure, exploring collections
collectionsManage Directus collections (database tables)Creating/modifying collections, database structure
fieldsManage collection fields and their configurationAdding/modifying fields, changing data types
relationsCreate and manage relationships between collectionsSetting up relationships, data modeling
filesFile management and metadata operationsManaging uploads, organizing media
assetsRetrieve file content as base64 for AI processingImage analysis, content processing
flowsAutomation workflow managementCreating automations, workflow design
operationsManage individual operations within flowsBuilding automation logic, flow operations
trigger-flowExecute manual flows programmaticallyRunning automations, bulk operations
foldersManage file organization structureOrganizing files, creating folder structures

System Prompt Tool

The system-prompt tool provides the AI assistant with specialized knowledge about Directus and your instance configuration. It should typically be called at the beginning of each session.

This tool works like a system prompt for LLMs, but it's delivered as a tool call instead of being built into the conversation. The AI is instructed to call this tool first to load Directus-specific knowledge into the conversation context. It won't override any system prompts or instructions from your MCP client.

View the current system prompt on GitHub to see exactly what instructions the AI receives about working with Directus.

You can customize the system prompt or disable it entirely in Settings → AI → Model Context Protocol.

Best Practices

When working with the Directus MCP server tools:

  1. Reference your Directus instance: Mention my Directus instance or my Directus project to help the AI understand it should use tools.
  2. AI handles context automatically: The AI should call system prompt and schema tools as needed based on your requests.
  3. Use scoped permissions: Create dedicated MCP users with minimal required permissions.
  4. Test in development: Try operations in a development environment first.
  5. Review AI actions: Always check what the AI is doing before approving tool calls.

Get once-a-month release notes & real‑world code tips...no fluff. 🐰