KosmoKrator

email

Amazon SES MCP Integration for LangChain

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

6 functions 4 read 2 write Bearer token auth

Connect Amazon SES 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.

Amazon SES MCP Config for LangChain

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

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

Run the Gateway Manually

kosmokrator mcp:serve --integration=amazon-ses --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Amazon SES 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.

Amazon SES Tools Visible to LangChain

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

MCP toolSource functionTypeDescription
integration__amazon_ses__amazonses_send_email amazon-ses.amazonses_send_email Write Send an email via Amazon SES. Specify the sender, recipient(s), subject, and body (HTML and/or plain text). Optionally reference a template or add reply-to addresses.
integration__amazon_ses__amazonses_get_template amazon-ses.amazonses_get_template Read Retrieve an email template from Amazon SES by its name. Returns the template subject, HTML body, and text body.
integration__amazon_ses__amazonses_list_templates amazon-ses.amazonses_list_templates Read List all email templates in Amazon SES. Returns template names and creation timestamps. Supports pagination.
integration__amazon_ses__amazonses_create_template amazon-ses.amazonses_create_template Write Create a new email template in Amazon SES. Templates can include HTML and plain text content with optional substitution variables (e.g., {{name}}).
integration__amazon_ses__amazonses_list_suppressions amazon-ses.amazonses_list_suppressions Read List email addresses on the suppression list for a specific configuration set in Amazon SES. Suppressed addresses will not receive emails.
integration__amazon_ses__amazonses_get_current_user amazon-ses.amazonses_get_current_user Read Get the currently authenticated user for the Amazon SES integration. Useful for verifying credentials and account information.

Related Amazon SES Pages