KosmoKrator

messaging

MessageBird MCP Integration for LangChain

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

6 functions 5 read 1 write API key auth

Connect MessageBird 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.

MessageBird MCP Config for LangChain

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

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

Run the Gateway Manually

kosmokrator mcp:serve --integration=messagebird --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only MessageBird 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.

MessageBird Tools Visible to LangChain

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

MCP toolSource functionTypeDescription
integration__messagebird__messagebird_send_sms messagebird.messagebird_send_sms Write Send an SMS message to one or more recipients via MessageBird. Specify a sender (originator), one or more phone numbers, and the message body.
integration__messagebird__messagebird_get_message messagebird.messagebird_get_message Read Retrieve details of a specific MessageBird message by its ID, including status, recipient info, and delivery timestamps.
integration__messagebird__messagebird_list_messages messagebird.messagebird_list_messages Read List sent and received messages from MessageBird. Supports filtering by status and direction, with pagination.
integration__messagebird__messagebird_list_balance messagebird.messagebird_list_balance Read Check your MessageBird account balance. Returns the available amount and payment type (prepaid or postpaid).
integration__messagebird__messagebird_list_numbers messagebird.messagebird_list_numbers Read List purchased phone numbers in your MessageBird account. Supports filtering by country code and number type.
integration__messagebird__messagebird_get_current_user messagebird.messagebird_get_current_user Read Get the current MessageBird account information, including balance and payment type.

Related MessageBird Pages