Kaleyra MCP server for AI agents

Live

API KEY

BUSINESS MESSAGING

Communication

Kaleyra gives your agent business messaging in your Kaleyra account: send SMS, WhatsApp, and RCS messages, place voice calls, run OTP verification, and manage consent, sender IDs, and WhatsApp templates.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Kaleyra
agent · Acme Q3
Run
Was my SMS to +14155550123 delivered?
S
kaleyra_sms_status_get
228ms
Messaging agent
The SMS to +14155550123 shows a Delivered status.
Sources: Kaleyra SMS status, 1 message
kaleyra
1 message
18:29
Message Claude...

Tools your messaging agent reaches for on Kaleyra, scoped per user.

CALL ANY TOOL
60 tools for messaging in Kaleyra: send SMS, WhatsApp, and RCS messages, place voice calls, run OTP checks, manage consent and sender IDs, and read logs, templates, and analytics.
kaleyra_balance_get
Get balance
Get your Kaleyra account's balance and usage details. Returns the current balance and currency. Use this before large sends.
Parameters
Name
Type
Required
Description
sid
string
Required
Your Kaleyra account SID (Security Identifier), shown with your API key in the Kaleyra console under Developers > API Keys. It goes in every request path. Example: HXAP16XXXXXX97IN
kaleyra_consent_list
List consent
kaleyra_consent_update
Update consent
kaleyra_consent_validate
Validate consent
kaleyra_rcs_message_send
Send rcs message
kaleyra_rcs_template_create
Create rcs template
kaleyra_rcs_template_delete
Delete rcs template
kaleyra_rcs_template_get
Get rcs template
kaleyra_rcs_template_update
Update rcs template
kaleyra_sender_ids_list
List sender ids
kaleyra_sms_status_get
Get sms status
kaleyra_sms_templates_list
List sms templates
kaleyra_verify_otp_send
Send verify otp
kaleyra_verify_otp_validate
Validate verify otp
kaleyra_voice_outbound_call
Call voice outbound
kaleyra_whatsapp_blocked_users_list
List whatsapp blocked users
kaleyra_whatsapp_flow_create
Create whatsapp flow
kaleyra_whatsapp_flow_delete
Delete whatsapp flow
kaleyra_whatsapp_flow_get
Get whatsapp flow
kaleyra_whatsapp_flow_publish
Publish whatsapp flow
kaleyra_whatsapp_group_join_requests_accept
Whatsapp group join requests accept
kaleyra_whatsapp_group_join_requests_list
List whatsapp group join requests
kaleyra_whatsapp_group_message_pin
Whatsapp group message pin
kaleyra_whatsapp_group_message_send
Send whatsapp group message
kaleyra_whatsapp_group_participants_remove
Remove whatsapp group participants
kaleyra_whatsapp_message_mark_read
Read whatsapp message mark
kaleyra_whatsapp_phone_number_get
Get whatsapp phone number
kaleyra_whatsapp_phone_numbers_list
List whatsapp phone numbers
kaleyra_whatsapp_template_delete
Delete whatsapp template
kaleyra_whatsapp_template_message_send
Send whatsapp template message

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Kaleyra tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["kaleyra"], toolNames: [
    "kaleyra_consent_validate",
    "kaleyra_sms_send",
    "kaleyra_sms_status_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Check consent for +14155550123, send the shipping update SMS, and check its delivery status" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["kaleyra"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Check consent for +14155550123, send the shipping update SMS, and check its delivery status" }],
  tools,
});

// Execute the tool call with the user's vaulted Kaleyra API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["kaleyra"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Check consent for +14155550123, send the shipping update SMS, and check its delivery status" }],
  tools,
});

// Tool call runs with the user's vaulted Kaleyra API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["kaleyra"] }, pageSize: 100,
});

const agent = new Agent({
  name: "messaging_agent",
  model: "gemini-2.5-pro",
  instruction: "Kaleyra tools scoped to this user",
  tools,
});

await agent.run("Check consent for +14155550123, send the shipping update SMS, and check its delivery status");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Kaleyra tool. Click to copy, paste into your agent, done.
Send messages
Copy the prompt
Copied
Send an SMS from my approved sender ID to +14155550123.
Copy the prompt
Copied
Send the approved shipping_update WhatsApp template to this number.
Copy the prompt
Copied
Send an RCS message to this number.
Verify and consent
Copy the prompt
Copied
Send an OTP to +14155550123.
Copy the prompt
Copied
Validate the OTP 482913 for this request.
Copy the prompt
Copied
Check the consent status of this number for SMS.
Logs and analytics
Copy the prompt
Copied
List my recent SMS logs.
Copy the prompt
Copied
Show the daily WhatsApp analytics for my approved templates.
Copy the prompt
Copied
Get my Kaleyra account balance.
SEE HOW AUTH WORKS
Each user connects their own Kaleyra API key once; Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Kaleyra
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Kaleyra
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Kaleyra
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Kaleyra
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other communication and marketing connectors.
Engineering Teams
Slack triage
Polls Slack for new messages, classifies bugs and support requests with a LangGraph router, files GitHub issues or Zendesk tickets, and confirms in the thread.
Test other agents
See the same per-user auth pattern across other communication and marketing connectors.
ENGINEERING
Slack triage agent
Classify new Slack messages as bugs or support requests, file the GitHub issue or Zendesk ticket, and reply in the thread.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Kaleyra API key looks fine in a demo. In production every SMS and WhatsApp send looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Kaleyra today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Kaleyra as the user or through a shared API key?
As the user. Each user connects their own Kaleyra API key once, and Scalekit sends it with every call. Audit logs attribute every SMS, WhatsApp, and voice send to that user, not a shared service account.
Where is the Kaleyra API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Kaleyra?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without kaleyra_whatsapp_templates_bulk_delete, which deletes many WhatsApp templates at once, or kaleyra_whatsapp_group_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Kaleyra access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent check consent before it sends?
Yes. kaleyra_consent_validate checks the current consent status of one or more mobile numbers for a channel and sender ID, and kaleyra_consent_update records an opt-in or opt-out.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""kaleyra"": {
""url"": ""https://mcp.scalekit.com/kaleyra"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.kaleyra]
url = ""https://mcp.scalekit.com/kaleyra""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""kaleyra"": {
""url"": ""https://mcp.scalekit.com/kaleyra"",
""type"": ""http""
}
}
}