This project is not covered by Drupal’s security advisory policy.
Connect your Drupal site to AI assistants such as Claude, ChatGPT and Gemini, so they can read and edit your content, media, menus and Drupal Commerce data, with permissions you approve.
The AI client connects through the solution25 MCP gateway (mcp.solution25.com). The AI client shows a one-time code, an administrator pastes it into Drupal, reviews the requested permissions and approves the connection.
Features
- Content: search and read content, including its recent revisions and moderation state; change the title, body, summary, URL alias and references; publish, unpublish or move content through its Content Moderation workflow. New content is always saved unpublished, and every change is saved as a new revision with a log message.
- Taxonomy: search and add taxonomy terms.
- Media: search media and add images from a public https address (JPEG, PNG, GIF or WebP, up to 10 MB).
- Menus: read menus, add menu links, and change, show or hide them.
- SEO: change Metatag titles and meta descriptions.
- Drupal Commerce (optional):
- Products: search, read, add and change products, prices and SKUs, add variations and images.
- Orders: read orders and payments, move orders through their workflow (for example fulfil or cancel), add order comments.
- Customers: read customers with their addresses, orders and totals.
- Promotions: read promotions and coupons, switch promotions on or off, add coupon codes.
- Sales report.
- Permissions per connected client: each area has View, Edit and/or Create levels, which can be changed or revoked at any time. Each client gets its own Drupal user and role, so Drupal's access checks, validation and revision history apply to everything it does.
External service and data
This module requires the solution25 MCP gateway, an external service operated by solution25.
- When connecting, the site sends the gateway its name, URL, API address, Drupal and module version, and an API token for the module's site API.
- While connected, the gateway calls the site API on behalf of the AI client. Data the connection is allowed to read, such as content, products, orders and customer details including email addresses, passes through the gateway to the AI client. Only grant the permissions the AI client needs.
Requirements
- Drupal 10.3 or 11, PHP 8.1 or newer.
- Core modules: Node, User.
- An AI client that supports custom (MCP) connectors.
Recommended modules
The module detects these and offers the matching features when they are enabled:
- Core: Content Moderation, Taxonomy, Media, Custom Menu Links, Path.
- Metatag: SEO titles and meta descriptions.
- Drupal Commerce 3.x (needs Drupal 10.3+): Commerce Product for products, Commerce Order for orders, customers and the sales report, Commerce Promotion for promotions, and Commerce Log for order comments.
Installation
- Download the module with Composer:
composer require drupal/solution25_ai_connector - Enable it on the Extend page, or with Drush:
drush en solution25_ai_connector - Administrators have access automatically. To let another role connect AI clients, give it the Administer the AI connector permission. This is a trusted permission, because it decides what AI clients may do on the site.
Connecting an AI client
- In your AI client, add a custom connector with the address
https://mcp.solution25.com/drupal. To use shops and sites of other platforms in the same connection, usehttps://mcp.solution25.com/mcp. - Sign in there and choose what the AI client may do. The page shows a connection code such as
S25-K7QM-4XTD. - In Drupal, go to Configuration → Web services → AI connector, paste the code and click Check code.
- Review the requested permissions and click Approve and connect.
The same page lists every connected client, with Change permissions and Disconnect. Disconnecting blocks the client's Drupal user and removes its access. Content it created stays and remains attributed to that user. Connecting, listing, changing and disconnecting are also available as Drush commands (drush ai-connector:connect, ai-connector:list, ai-connector:permissions, ai-connector:disconnect).
See the README for the full permission table and configuration options.
Similar projects
- AI focuses on using AI inside Drupal, calling AI providers from the site. This module is for the opposite direction: external AI assistants working with the site.
- MCP Server runs an MCP server on your own site, with access controlled by roles and optional OAuth scopes. This module uses the hosted solution25 gateway instead: no server setup on the site, each AI client is paired with a one-time code and its permissions are approved per client in Drupal, and it includes Drupal Commerce tools.
Project information
- Project categories: Artificial Intelligence (AI)
- Created by erman.cibo on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
First stable release: connect Drupal to AI assistants through the solution25 MCP gateway.
