marketing
Mautic MCP Integration for LangGraph
Connect Mautic to LangGraph through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Mautic to LangGraph
Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.
Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with
--write=deny so LangGraph can inspect read-capable tools without receiving write access by default.
Mautic MCP Config for LangGraph
Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.
{
"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 LangGraph
LangGraph 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. |