Part of the AI ecosystem · 343 projects
This project provides AI tools that allow AI agents to interact with your Mautic instance. It enables AI to find, create, and update contacts, manage segment membership, and modify tags and points. The tools are exposed through the AI module, making them available to any AI agent or chatbot.
AI Mautic lets an AI agent on your site, or an MCP client on a marketer's computer, look up and change what is in Mautic: contacts, segments, campaigns, tags and points. It uses the Mautic connection the site already has in Advanced Mautic Integration, and two Drupal permissions decide who may only look things up and who may change them.
Features
- ๐งฐ Twelve tools for Mautic. Find contacts with Mautic's own search syntax, read one contact in full with its segments, campaigns and recent activity, create and update contacts, add contacts to and remove them from segments and campaigns, add or remove tags, and add or subtract points with a reason kept on the contact's timeline.
- ๐ Looking up and changing are two permissions. Use Mautic AI tools allows the four lookups, Change Mautic data with AI tools allows the eight changes, and both are checked inside the module on every call, so an agent, an MCP client and custom code are held to the same rule.
- ๐ค A ready-made Mautic agent. With AI Agents installed, an agent named Mautic comes with the twelve tools and instructions to look an id up before every change, to ask which contact is meant when several match, and to report exactly what it changed. Use it on its own, as a sub-agent of an orchestrating agent, or add its tools to agents of your own.
- ๐งฉ AI Mautic MCP sub-module. Offers the same tools to any MCP client through MCP Server, with JSON schemas, read-only and destructive annotations, and structured results. A client sees only the tools its account may use.
- ๐ A service for site code.
ai_mautic.operationsruns the same operations from an event subscriber, a Webform handler or a scheduled job, with the same permission check, and throws a named exception for a missing permission, an unknown item, a bad argument or an unreachable Mautic. - โ๏ธ The connection you already have. No second set of Mautic credentials: the tools use the API URL, user and password of Advanced Mautic Integration, and the status report warns while the URL is empty.
Quick start
composer require drupal/ai_mautic drush en ai_mautic
- At Configuration > Web services > Advanced Mautic Integration, fill in Mautic API URL, Mautic API user and Mautic API password, if the site does not have them yet.
- At People > Permissions, grant Use Mautic AI tools to the roles that may look things up, and Change Mautic data with AI tools to the roles that may change them.
- With AI Agents installed, open Configuration > AI > Tools & Automation > AI Agents: the Mautic agent is listed, with its twelve tools ticked.
- For MCP clients, run
drush en ai_mautic_mcp: the MCP Server lists the tools asai_mautic_find_contacts,ai_mautic_get_contactand so on.
Good to know
- Nothing is sent and nothing is deleted. Emails, SMS and notifications are not among the tools, and segments, campaigns, forms and emails are not created or edited. Companies, notes, stages and do-not-contact flags are not covered.
- Every call reaches Mautic as the one API user set in Advanced Mautic Integration. Mautic does not know which Drupal user asked; the two permissions of this module are what tell them apart.
- With an AI agent, what the tools return, such as a contact's email, name, fields and activity, is sent to the AI provider the site uses, as part of the conversation.
- Over HTTP, MCP tools run as the authenticated Drupal user. Over STDIO,
drush mcp:server <account>runs them as the account given, which needs the permissions of this module. find_contactsreturns identified contacts only, at most 50 per call, with an offset to page through the rest.
Additional requirements
- Drupal 10.5 or 11.
- AI (Artificial Intelligence) 1.4 or later, with a provider that supports function calling.
- Advanced Mautic Integration 1.0 or later, connected to your Mautic.
- For the agent: AI Agents 1.3 or later.
- For MCP clients: MCP Server 2.0.0-beta5 or later.
Recommended modules/libraries
- Mautic Audiences: lets the segments and tags a visitor has in Mautic decide what that visitor sees on the site, including the segments the agent fills.
- Commerce Mautic Connect: syncs Commerce cart contents and customer metrics to Mautic.
- AI Agents: for the ready-made Mautic agent, and to build agents that call these tools.
- MCP Server: for MCP clients, together with the AI Mautic MCP sub-module.
Community documentation
- README: every tool and its arguments, the search syntax, the agent, MCP clients, the service with code examples, and the known limitations.
Supporting this module
Developed and maintained by Bloomidea. Bloomidea offers support and custom development for this module.
Ask your assistant about AI Mautic
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the AI ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | 10โ11 | Sep 29, 2026 | ||
| 1.0.0-beta1 | Pre-release | 10โ11 | Sep 14, 2026 | ||
| 1.0.x-dev | Dev | 10โ11 | Sep 14, 2026 |