Mailjet MCP Integration for OpenAI Agents SDK
Connect Mailjet to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Mailjet 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.
Mailjet MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-mailjet": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=mailjet",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=mailjet --write=deny Why Use KosmoKrator Here
Expose only Mailjet 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.
Mailjet Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Mailjet integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__mailjet__mailjet_send_email | mailjet.mailjet_send_email | Write | Send an email via Mailjet. Specify sender, one or more recipients, subject, and HTML body. |
integration__mailjet__mailjet_list_contacts | mailjet.mailjet_list_contacts | Read | List contacts in the Mailjet account. Returns paginated contact data including email addresses and metadata. |
integration__mailjet__mailjet_get_contact | mailjet.mailjet_get_contact | Read | Get details for a single Mailjet contact by ID or email address. |
integration__mailjet__mailjet_create_contact | mailjet.mailjet_create_contact | Write | Create a new contact in Mailjet. Provide the email address to add. |
integration__mailjet__mailjet_list_campaigns | mailjet.mailjet_list_campaigns | Read | List email campaigns in the Mailjet account. Returns campaign IDs, subjects, and status. |
integration__mailjet__mailjet_get_campaign | mailjet.mailjet_get_campaign | Read | Get details for a single Mailjet email campaign by ID. |
integration__mailjet__mailjet_list_templates | mailjet.mailjet_list_templates | Read | List email templates available in the Mailjet account. |
integration__mailjet__mailjet_get_stats | mailjet.mailjet_get_stats | Read | Get email statistics from the Mailjet statcounters endpoint. Returns send, delivery, open, click, and bounce counts. |
integration__mailjet__mailjet_get_current_user | mailjet.mailjet_get_current_user | Read | Get the authenticated Mailjet user profile information. |