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.
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
| Variable | Description | Default Value |
|---|---|---|
AI_ENABLED | Whether AI Chat features are available. Set to false to completely disable AI Chat across the entire instance, hiding the sidebar for all users and disabling the settings for administrators. | true |
When
AI_ENABLED is set to false:- The
/ai/chatAPI route is not mounted - AI Chat sidebar is hidden from all users
- AI settings form displays a disabled notice
Model Context Protocol
| Variable | Description | Default Value |
|---|---|---|
MCP_ENABLED | Whether 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. 🐰