communication
ClickSend MCP Integration for LangChain
Connect ClickSend to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect ClickSend 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.
ClickSend MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-clicksend": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=clicksend",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=clicksend --write=deny Why Use KosmoKrator Here
Expose only ClickSend 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.
ClickSend Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the ClickSend integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__clicksend__clicksend_get_account_balance | clicksend.clicksend_get_account_balance | Read | Get the current ClickSend account balance. |
integration__clicksend__clicksend_get_email_history | clicksend.clicksend_get_email_history | Read | Get email message history from ClickSend with pagination. |
integration__clicksend__clicksend_get_sms_history | clicksend.clicksend_get_sms_history | Read | Get SMS message history from ClickSend. Supports date range filtering and pagination. |
integration__clicksend__clicksend_get_sms_price | clicksend.clicksend_get_sms_price | Read | Get pricing for SMS messages before sending. Uses the same message format as send SMS but returns cost estimates only. |
integration__clicksend__clicksend_get_voice_history | clicksend.clicksend_get_voice_history | Read | Get voice message history from ClickSend with pagination. |
integration__clicksend__clicksend_list_contact_lists | clicksend.clicksend_list_contact_lists | Read | List all contact lists from ClickSend with pagination. |
integration__clicksend__clicksend_send_email | clicksend.clicksend_send_email | Write | Send an email message via ClickSend. Requires recipient, subject, and body. |
integration__clicksend__clicksend_send_post_letter | clicksend.clicksend_send_post_letter | Write | Send a post letter via ClickSend. Provide a file URL or template ID with recipient details. |
integration__clicksend__clicksend_send_sms | clicksend.clicksend_send_sms | Write | Send one or more SMS messages via ClickSend. Each message requires a "to" phone number and "body" text. |
integration__clicksend__clicksend_send_voice | clicksend.clicksend_send_voice | Write | Send one or more voice messages via ClickSend. Each message requires a "to" phone number and "body" text. |