marketing
Brevo MCP Integration for LangChain
Connect Brevo to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Brevo 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.
Brevo MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-brevo": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=brevo",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=brevo --write=deny Why Use KosmoKrator Here
Expose only Brevo 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.
Brevo Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Brevo integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__brevo__brevo_list_contacts | brevo.brevo_list_contacts | Read | List contacts in your Brevo account. Supports pagination and filtering by email or search term. |
integration__brevo__brevo_get_contact | brevo.brevo_get_contact | Read | Get details of a specific contact in Brevo by their email address. Returns contact attributes, list memberships, and creation date. |
integration__brevo__brevo_create_contact | brevo.brevo_create_contact | Write | Create a new contact in Brevo. You can set attributes like first name and last name, and add the contact to one or more lists. |
integration__brevo__brevo_list_lists | brevo.brevo_list_lists | Read | List all contact lists in your Brevo account. Supports pagination with limit and offset. |
integration__brevo__brevo_get_list | brevo.brevo_get_list | Read | Get details of a specific contact list in Brevo by its ID. Returns the list name, total subscribers, and other metadata. |
integration__brevo__brevo_send_email | brevo.brevo_send_email | Write | Send a transactional email via Brevo. Specify sender, recipients, subject, and HTML or text content. |
integration__brevo__brevo_get_account | brevo.brevo_get_account | Read | Get information about the connected Brevo account, including email, plan details, and account statistics. |