marketing
Customer.io MCP Integration for Claude Agent SDK
Connect Customer.io to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Customer.io 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.
Customer.io MCP Config for Claude Agent SDK
Use a narrow integration list so the agent does not load unrelated tools.
{
"mcpServers": {
"kosmokrator-customerio": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=customerio",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=customerio --write=deny Why Use KosmoKrator Here
Expose only Customer.io 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.
Customer.io Tools Visible to Claude Agent SDK
Claude Agent SDK sees stable MCP tool names generated from the Customer.io integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__customerio__customerio_identify_customer | customerio.customerio_identify_customer | Write | Create or update a customer profile in Customer.io. Use this to add new customers or update existing customer attributes like email, name, and custom properties. |
integration__customerio__customerio_track_event | customerio.customerio_track_event | Write | Track a custom event for a customer in Customer.io. Events trigger campaign workflows and can be used to segment customers. |
integration__customerio__customerio_list_segments | customerio.customerio_list_segments | Read | List all segments in the Customer.io workspace. Segments are dynamic groups of customers defined by conditions. |
integration__customerio__customerio_list_campaigns | customerio.customerio_list_campaigns | Read | List all campaigns in the Customer.io workspace. Campaigns are automated message sequences triggered by events or segments. |
integration__customerio__customerio_get_campaign | customerio.customerio_get_campaign | Read | Get detailed information about a specific campaign in Customer.io, including its triggers, actions, and performance metrics. |
integration__customerio__customerio_list_newsletters | customerio.customerio_list_newsletters | Read | List all newsletters in the Customer.io workspace. Newsletters are one-time broadcast messages sent to segments. |
integration__customerio__customerio_get_current_user | customerio.customerio_get_current_user | Read | Get the currently authenticated user and account information from Customer.io. Useful for verifying API credentials and checking workspace details. |