other
Mailer Send MCP Integration for LangChain
Connect Mailer Send to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Mailer Send 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.
Mailer Send MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-mailer-send": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=mailer-send",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=mailer-send --write=deny Why Use KosmoKrator Here
Expose only Mailer Send 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.
Mailer Send Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Mailer Send integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__mailer_send__mailer_send_list_messages | mailer-send.mailer_send_list_messages | Read | List email messages from your MailerSend account. Returns a paginated list of sent messages with their IDs, subjects, and statuses. |
integration__mailer_send__mailer_send_get_message | mailer-send.mailer_send_get_message | Read | Get detailed information about a specific email message by its ID. Returns the full message object including status, recipients, subject, and content. |
integration__mailer_send__mailer_send_send_email | mailer-send.mailer_send_send_email | Write | Send an email through the MailerSend API. Requires a sender (from), one or more recipients (to), and a subject. Optionally provide HTML and/or plain text content. |
integration__mailer_send__mailer_send_list_templates | mailer-send.mailer_send_list_templates | Read | List email templates available in your MailerSend account. Returns template IDs, names, and types for use when sending templated emails. |
integration__mailer_send__mailer_send_list_domains | mailer-send.mailer_send_list_domains | Read | List sending domains configured in your MailerSend account. Returns domain names, verification statuses, and related settings. |
integration__mailer_send__mailer_send_list_recipients | mailer-send.mailer_send_list_recipients | Read | List recipients (contacts) from your MailerSend account. Returns recipient emails, names, and subscription statuses. |
integration__mailer_send__mailer_send_get_current_user | mailer-send.mailer_send_get_current_user | Read | Verify MailerSend API connectivity by fetching a minimal list of domains. Use this as a health check to confirm the API token is valid and the service is reachable. |