AI Plugins Configuration
This guide explains how to configure AI plugins for the MCP module, enabling AI function call capabilities in your Drupal MCP server.
Prerequisites
Before configuring AI plugins, ensure you have:
- Installed and configured the MCP module as described in the Setup & Configure guide
- Installed the required Drupal AI modules:
- The Drupal AI module
- The AI Agents module
- An AI provider module (e.g., OpenAI)
# Install the required AI modules, version is important to be 1.1.xddev composer require 'drupal/ai:1.1.x-dev@dev'ddev composer require 'drupal/ai_agents:1.1.x-dev@dev'
# Install an AI provider module (OpenAI example)ddev composer require 'drupal/ai_provider_openai:1.1.x-dev@dev'
# Enable the MCP extra submoduleddev drush en mcp_extra -y
# Enable the AI modulesddev drush en ai ai_agents ai_agents_extra -y
# Enable the AI provider moduleddev drush en ai_provider_openai -y
Note: You can choose any AI provider module that’s compatible with the Drupal AI module. OpenAI is used as an example here.
Configuring AI and MCP Modules
After installing the required modules, you need to configure both the AI module and the MCP module:
- First, configure your AI provider (e.g., OpenAI) at
/admin/config/ai/providers
- Set your configured provider as the default provider at
/admin/config/ai/settings
and save the configuration - After the provider is configured, check that the MCP plugins
AI Agent Calling
andAI Function Calling
are available and enabled at/admin/config/mcp
Next Steps
After configuring AI plugins, you might want to:
- Connect your MCP server to LLMs
- Explore other MCP capabilities