MSG91 MCP server for AI agents

Live

API KEY

MESSAGING

Communication

MSG91 gives your agent multichannel messaging in your MSG91 account: send SMS, OTP, email, RCS, WhatsApp, and voice messages, manage templates and contacts, and read delivery logs, analytics, and balances.

  • 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.
MSG91
agent · Acme Q3
Run
How many SMS did we send and deliver this week?
S
msg91_sms_analytics_get
330ms
Messaging agent
This week MSG91 sent 18,240 SMS and delivered 17,960, a 98.5% delivery rate.
Sources: MSG91 SMS analytics, 7 days
msg91
18,240 SMS
18:29
Message Claude...

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

CALL ANY TOOL
67 tools for messaging in MSG91: send SMS, OTP, email, RCS, WhatsApp, and voice messages, manage templates, contacts, and WhatsApp groups, and read delivery logs, analytics, and balances.
msg91_campaign_run
Run campaign
Launch an existing MSG91 campaign for the recipients you pass, across the campaign's channels (SMS, email, WhatsApp, voice), now or at a scheduled time. Returns the campaign run request details. Use this to trigger a multi-channel campaign from your app. Use msg91_oneapi_flow_run for a One API flow.
Parameters
Name
Type
Required
Description
campaign_slug
string
Required
Campaign slug from the MSG91 Campaign panel. Example: order-confirmation
data
object
Required
Send data: sendTo is a list of groups, each with a to list (name, email, mobiles and per-recipient variables) and optional cc, bcc and shared variables; add attachments and reply_to when the campaign sends email. Example: {"sendTo": [{"to": [{"name": "John", "email": "john@example.com", "mobiles": "919876543210", "variables": {"order_id": {"type": "text", "value": "ORD-1042"}}}]}]}
schedule_for
string
Optional
Run later at this time, in YYYY-MM-DD H:i format. Example: 2026-11-20 10:30
timezone
string
Optional
Timezone for schedule_for. Defaults to Asia/Kolkata. Example: Asia/Kolkata
timezone_by
string
Optional
Whose timezone to use for scheduling. Example: company. One of: `company`, `contact`, `manual`.
msg91_contact_upsert
Upsert contact
msg91_contacts_delete
Delete contacts
msg91_contacts_search
Search contacts
msg91_email_analytics_get
Get email analytics
msg91_email_css_inline
Email css inline
msg91_email_logs_list
List email logs
msg91_email_send
Send email
msg91_email_template_create
Create email template
msg91_otp_analytics_get
Get otp analytics
msg91_otp_logs_list
List otp logs
msg91_otp_resend
Otp resend
msg91_otp_template_update
Update otp template
msg91_rcs_analytics_get
Get rcs analytics
msg91_rcs_message_send
Send rcs message
msg91_sms_analytics_get
Get sms analytics
msg91_sms_logs_list
List sms logs
msg91_sms_template_version_activate
Activate sms template version
msg91_voice_analytics_get
Get voice analytics
msg91_voice_call_logs_list
List voice call logs
msg91_voice_template_call
Call voice template
msg91_voice_template_create
Create voice template
msg91_whatsapp_analytics_get
Get whatsapp analytics
msg91_whatsapp_group_join_requests_approve
Approve whatsapp group join requests
msg91_whatsapp_group_join_requests_list
List whatsapp group join requests
msg91_whatsapp_group_participants_remove
Remove whatsapp group participants
msg91_whatsapp_interactive_message_send
Send whatsapp interactive message
msg91_whatsapp_logs_list
List whatsapp logs
msg91_whatsapp_text_message_send
Send whatsapp text message
msg91_widget_access_token_verify
Verify widget access token

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);

// MSG91 tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["msg91"], toolNames: [
    "msg91_otp_send",
    "msg91_otp_verify",
    "msg91_sms_logs_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Send an OTP to this number, verify the code the user enters, and show the SMS delivery logs" }] });
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: ["msg91"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Send an OTP to this number, verify the code the user enters, and show the SMS delivery logs" }],
  tools,
});

// Execute the tool call with the user's vaulted MSG91 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: ["msg91"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Send an OTP to this number, verify the code the user enters, and show the SMS delivery logs" }],
  tools,
});

// Tool call runs with the user's vaulted MSG91 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: ["msg91"] }, pageSize: 100,
});

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

await agent.run("Send an OTP to this number, verify the code the user enters, and show the SMS delivery logs");
Try these prompts
Copy any prompt into your agent. Each maps directly to a MSG91 tool. Click to copy, paste into your agent, done.
Send messages
Copy the prompt
Copied
Send my approved order-shipped SMS template to this number.
Copy the prompt
Copied
Send an approved WhatsApp template to these 50 customers.
Copy the prompt
Copied
Send an email from my welcome template to sam@example.com.
OTP
Copy the prompt
Copied
Send an OTP to this mobile number.
Copy the prompt
Copied
Verify the code 482910 for this number.
Copy the prompt
Copied
Resend the OTP by voice call.
Logs and analytics
Copy the prompt
Copied
Show SMS delivery logs from the last 3 days.
Copy the prompt
Copied
Show WhatsApp analytics for this month.
Copy the prompt
Copied
What is my prepaid WhatsApp balance?
SEE HOW AUTH WORKS
Each user connects their own MSG91 API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
MSG91
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
MSG91
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
MSG91
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
MSG91
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 connectors.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
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 connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
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 MSG91 API key looks fine in a demo. In production every message and template change 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.
MSG91 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 MSG91 as the user or through a shared key?
As the user. Each user connects their own MSG91 API key once, and Scalekit sends it with every call. Every message, OTP, and template change in your audit trail is attributed to that user, not a shared service account.
Where is the MSG91 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 MSG91?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the log, analytics, and balance tools without msg91_sms_send, msg91_otp_send, or msg91_whatsapp_text_message_send, or the delete tools such as msg91_contacts_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes MSG91 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 verify an OTP?
Yes. msg91_otp_send generates and sends an OTP by SMS, msg91_otp_verify checks the code the user entered, and msg91_otp_resend resends it by voice call or text.
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"": {
""msg91"": {
""url"": ""https://mcp.scalekit.com/msg91"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.msg91]
url = ""https://mcp.scalekit.com/msg91""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""msg91"": {
""url"": ""https://mcp.scalekit.com/msg91"",
""type"": ""http""
}
}
}