marketing
Mautic MCP Integration for OpenAI Agents SDK
Connect Mautic to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Mautic to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Mautic MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-mautic": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=mautic",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=mautic --write=deny Why Use KosmoKrator Here
Expose only Mautic instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Mautic Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Mautic integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__mautic__mautic_list_contacts | mautic.mautic_list_contacts | Read | List contacts in Mautic. Supports search, filtering, pagination, and ordering. Returns contact details including email, name, and custom fields. |
integration__mautic__mautic_get_contact | mautic.mautic_get_contact | Read | Get detailed information about a single Mautic contact by ID, including all fields and tags. |
integration__mautic__mautic_create_contact | mautic.mautic_create_contact | Write | Create a new contact in Mautic. Provide at least an email address; additional fields like first name, last name, phone, company, and tags are optional. |
integration__mautic__mautic_update_contact | mautic.mautic_update_contact | Write | Update an existing Mautic contact. Provide the contact ID and the fields to update (e.g. email, firstname, lastname, phone, company, tags). |
integration__mautic__mautic_delete_contact | mautic.mautic_delete_contact | Write | Delete a contact from Mautic by ID. This action is permanent and cannot be undone. |
integration__mautic__mautic_list_emails | mautic.mautic_list_emails | Read | List marketing emails from Mautic. Returns email details including name, subject, and publish status. |
integration__mautic__mautic_list_segments | mautic.mautic_list_segments | Read | List contact segments (also known as lists or filters) from Mautic. Returns segment names, aliases, and contact counts. |
integration__mautic__mautic_list_forms | mautic.mautic_list_forms | Read | List forms from Mautic. Returns form names, aliases, submission counts, and publish status. |
integration__mautic__mautic_get_current_user | mautic.mautic_get_current_user | Read | Get details of the currently authenticated Mautic user — useful to verify credentials and identify which user the integration is acting as. |