KosmoKrator

email

EmailOctopus MCP Integration for Claude Agent SDK

Connect EmailOctopus to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

6 functions 5 read 1 write API key auth

Connect EmailOctopus 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.

EmailOctopus MCP Config for Claude Agent SDK

Use a narrow integration list so the agent does not load unrelated tools.

{
  "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

Scoped tools

Expose only EmailOctopus instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

EmailOctopus Tools Visible to Claude Agent SDK

Claude Agent SDK sees stable MCP tool names generated from the EmailOctopus integration catalog.

MCP toolSource functionTypeDescription
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.

Related EmailOctopus Pages