EmailOctopus MCP Integration for LangChain
Connect EmailOctopus to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect EmailOctopus 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.
EmailOctopus MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-email-octopus": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=email-octopus",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=email-octopus --write=deny Why Use KosmoKrator Here
Expose only EmailOctopus 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.
EmailOctopus Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the EmailOctopus integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__email_octopus__emailoctopus_list_contacts | email-octopus.emailoctopus_list_contacts | Read | List contacts in an EmailOctopus mailing list. Returns contact email addresses, statuses, and pagination cursors. |
integration__email_octopus__emailoctopus_get_contact | email-octopus.emailoctopus_get_contact | Read | Get details of a specific contact in an EmailOctopus mailing list, including email address, status, and custom fields. |
integration__email_octopus__emailoctopus_create_contact | email-octopus.emailoctopus_create_contact | Write | Add a new contact to an EmailOctopus mailing list. Requires an email address. |
integration__email_octopus__emailoctopus_list_campaigns | email-octopus.emailoctopus_list_campaigns | Read | List all email campaigns in your EmailOctopus account, including their status, subject, and send dates. |
integration__email_octopus__emailoctopus_get_campaign | email-octopus.emailoctopus_get_campaign | Read | Get details of a specific EmailOctopus campaign, including status, subject, content, and delivery statistics. |
integration__email_octopus__emailoctopus_get_current_user | email-octopus.emailoctopus_get_current_user | Read | Get the authenticated EmailOctopus account details, including name and email address. |