marketing
Customer.io MCP, CLI, and Lua Integration for AI Agents
Customer.io integration docs for AI agents: MCP gateway setup, Customer.io CLI commands, Lua API reference, credentials, and function schemas.
7 functions 5 read 2 write API key auth
Customer.io for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
customerio- route_slug
customerio- package
customerio- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Customer.io CLIHeadless setup and direct function calls. Customer.io MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Customer.io MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Customer.io.
Claude Code Customer.io MCP setup for Claude Code. Cursor Customer.io MCP setup for Cursor. Codex Customer.io MCP setup for Codex. OpenAI Agents Customer.io MCP setup for OpenAI Agents SDK. Claude Agent SDK Customer.io MCP setup for Claude Agent SDK. Vercel AI SDK Customer.io MCP setup for Vercel AI SDK. LangChain Customer.io MCP setup for LangChain. LangGraph Customer.io MCP setup for LangGraph. CrewAI Customer.io MCP setup for CrewAI. MCP clients Customer.io MCP setup for Generic MCP Clients.
Customer.io CLI Matrix
Use these pages for direct Customer.io CLI workflows in scripts, CI, cron, and agent wrappers.
CI Customer.io CLI for CI. Cron Jobs Customer.io CLI for cron jobs. Shell Scripts Customer.io CLI for shell scripts. Headless Automation Customer.io CLI for headless automation. Coding Agents Customer.io CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
customerio.customerio_identify_customer | Write write | 4 | 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. |
customerio.customerio_track_event | Write write | 3 | Track a custom event for a customer in Customer.io. Events trigger campaign workflows and can be used to segment customers. |
customerio.customerio_list_segments | Read read | 0 | List all segments in the Customer.io workspace. Segments are dynamic groups of customers defined by conditions. |
customerio.customerio_list_campaigns | Read read | 0 | List all campaigns in the Customer.io workspace. Campaigns are automated message sequences triggered by events or segments. |
customerio.customerio_get_campaign | Read read | 1 | Get detailed information about a specific campaign in Customer.io, including its triggers, actions, and performance metrics. |
customerio.customerio_list_newsletters | Read read | 0 | List all newsletters in the Customer.io workspace. Newsletters are one-time broadcast messages sent to segments. |
customerio.customerio_get_current_user | Read read | 0 | Get the currently authenticated user and account information from Customer.io. Useful for verifying API credentials and checking workspace details. |