marketing
Mautic MCP Integration for Claude Agent SDK
Connect Mautic to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Mautic to Claude Agent SDK
Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.
Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with
--write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.
Mautic MCP Config for Claude Agent SDK
Use a narrow integration list so the agent does not load unrelated tools.
{
"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 Claude Agent SDK
Claude Agent SDK 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. |