KosmoKrator

other

Sendy MCP Integration for LangChain

Connect Sendy to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

5 functions 2 read 3 write API key auth

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

Sendy MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Sendy Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Sendy integration catalog.

MCP toolSource functionTypeDescription
integration__sendy__sendy_subscribe sendy.sendy_subscribe Write Subscribe an email address to a Sendy mailing list. Optionally provide a name and custom fields.
integration__sendy__sendy_unsubscribe sendy.sendy_unsubscribe Write Unsubscribe an email address from a Sendy mailing list.
integration__sendy__sendy_list_subscribers sendy.sendy_list_subscribers Read Get the total number of subscribers for a Sendy mailing list.
integration__sendy__sendy_create_campaign sendy.sendy_create_campaign Write Create a new email campaign in Sendy. You can create a draft or send immediately. Requires a list ID, subject, HTML content, and sender details.
integration__sendy__sendy_get_current_user sendy.sendy_get_current_user Read Get the current brand/account information from Sendy. Useful for verifying credentials and retrieving brand details.

Related Sendy Pages