KosmoKrator

email

MailerLite MCP Integration for OpenAI Agents SDK

Connect MailerLite to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

8 functions 4 read 4 write API key auth

Connect MailerLite to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

MailerLite MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-mailerlite": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=mailerlite",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=mailerlite --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only MailerLite 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.

MailerLite Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the MailerLite integration catalog.

MCP toolSource functionTypeDescription
integration__mailerlite__mailerlite_list_subscribers mailerlite.mailerlite_list_subscribers Read List subscribers from MailerLite. Supports pagination and filtering by status (active, unsubscribed, etc.).
integration__mailerlite__mailerlite_get_subscriber mailerlite.mailerlite_get_subscriber Read Get details for a single MailerLite subscriber by their ID.
integration__mailerlite__mailerlite_create_subscriber mailerlite.mailerlite_create_subscriber Write Add a new subscriber to MailerLite. Provide an email address and optionally a name and custom fields.
integration__mailerlite__mailerlite_update_subscriber mailerlite.mailerlite_update_subscriber Write Update an existing subscriber in MailerLite. Provide the subscriber ID and fields to update.
integration__mailerlite__mailerlite_delete_subscriber mailerlite.mailerlite_delete_subscriber Write Delete a subscriber from MailerLite by their ID. This action is permanent.
integration__mailerlite__mailerlite_list_groups mailerlite.mailerlite_list_groups Read List subscriber groups (segments) from MailerLite. Supports pagination.
integration__mailerlite__mailerlite_add_subscriber_to_group mailerlite.mailerlite_add_subscriber_to_group Write Add a subscriber to a MailerLite group by providing the group ID and subscriber email.
integration__mailerlite__mailerlite_get_current_user mailerlite.mailerlite_get_current_user Read Get the currently authenticated MailerLite account information. Useful for verifying API credentials.

Related MailerLite Pages