communication
BlandAI MCP Integration for LangChain
Connect BlandAI to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect BlandAI 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.
BlandAI MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-blandai": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=blandai",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=blandai --write=deny Why Use KosmoKrator Here
Expose only BlandAI 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.
BlandAI Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the BlandAI integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__blandai__blandai_make_call | blandai.blandai_make_call | Write | Initiate an AI-powered phone call via BlandAI. The AI agent will follow the provided task instructions and speak using the specified voice. |
integration__blandai__blandai_get_call | blandai.blandai_get_call | Read | Retrieve details for a specific BlandAI phone call, including status, transcript, duration, and metadata. |
integration__blandai__blandai_list_calls | blandai.blandai_list_calls | Read | List BlandAI phone calls with optional pagination. Returns call summaries including status, duration, and phone numbers. |
integration__blandai__blandai_analyze_call | blandai.blandai_analyze_call | Read | Analyze a BlandAI call transcript with a custom prompt. Extract insights, summarize the conversation, or evaluate call outcomes. |
integration__blandai__blandai_get_current_user | blandai.blandai_get_current_user | Read | Get the authenticated BlandAI user's account information. Useful for verifying credentials and checking account details. |