Configuration

AI

Configuration for AI Chat and Model Context Protocol (MCP) features.
Environment Variables
Environment variables are configurable for Directus Enterprise Cloud projects via our Customer Success team. You can also set environment variables in self-hosted projects.

AI Chat

VariableDescriptionDefault Value
AI_ENABLEDWhether AI Chat features are available. Set to false to completely disable AI Chat across the entire instance, hiding the sidebar and settings from all users.true
When AI_ENABLED is set to false:
  • The /ai/chat API route is not mounted
  • AI Chat sidebar is hidden from all users
  • AI settings form displays a disabled notice
This is useful for compliance requirements where AI features must be completely hidden.

Model Context Protocol

VariableDescriptionDefault Value
MCP_ENABLEDWhether the Model Context Protocol server is available for system administrators to enable in project settings. Set to false to completely disable MCP functionality across the entire instance.true
When MCP_ENABLED is set to false, the MCP server cannot be enabled through Settings → AI → Model Context Protocol in the admin interface, providing system administrators with complete control over AI integration features. See the MCP Server guide for more information.

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