marketing
Customer.io MCP Integration for LangChain
Connect Customer.io to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Customer.io to LangChain
Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.
Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with
--write=deny so LangChain can inspect read-capable tools without receiving write access by default.
Customer.io MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"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 LangChain
LangChain 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. |