MSG91 MCP by usefulapi
v1.1.0Read SMS templates, delivery logs and analytics; send SMS and OTP codes, verify OTPs in MSG91.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
msg91_list_sms_templates List SMS templates
List the SMS templates (flows) in the account with their flow_id and name. Use the flow_id as template_id in msg91_send_sms. MSG91 API: GET /api/v5/flows.
msg91_get_sms_template_versions Get SMS template versions
Get every version of one SMS template, including which version is the default. MSG91 API: POST /api/v5/sms/getTemplateVersions.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The SMS template id (from msg91_list_sms_templates). |
msg91_get_sms_logs Get SMS delivery logs
Get per-message SMS delivery logs (status, delivery time, recipient) for a window of at most 3 days that starts within the last 3 days. Filter by request_id (from msg91_send_sms) for one send. MSG91 API: POST /api/v5/report/logs/p/sms.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date yyyy-mm-dd (at most 3 days after start_date). |
start_date * | string | Start date yyyy-mm-dd (within the last 3 days). |
fields | string | Comma-separated list of log fields to return (smaller payload). |
limit | integer | Maximum recipients to return (default 1000). |
request_id | string | Only the messages of this send request id. |
msg91_get_sms_analytics Get SMS analytics
Get aggregated SMS statistics for a date range of at most 31 days: totals, delivered, failed, rejected and credits. Dates from 1 Jan 2024 onward. MSG91 API: GET /api/v5/report/analytics/p/sms.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date yyyy-mm-dd (at most 31 days after start_date). |
start_date * | string | Start date yyyy-mm-dd (2024-01-01 or later). |
msg91_get_otp_logs Get OTP logs
Get per-message OTP delivery logs for a window of at most 3 days that starts within the last 3 days. MSG91 API: GET /api/v5/report/logs/p/otp.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date yyyy-mm-dd (at most 3 days after start_date). |
start_date * | string | Start date yyyy-mm-dd (within the last 3 days). |
msg91_get_otp_analytics Get OTP analytics
Get aggregated OTP statistics for a date range (verified, failed and sent counts). Use it for dashboards and delivery monitoring. MSG91 API: GET /api/v5/report/analytics/p/otp.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date yyyy-mm-dd. |
start_date * | string | Start date yyyy-mm-dd. |
msg91_send_sms Send SMS (paid)
SEND SMS messages to real phone numbers using an approved SMS template; each message is billed. Confirm the recipients and template first. MSG91 API: POST /api/v5/flow.
| Parameter | Type | Description |
|---|---|---|
recipients * | array | Recipients, each with its own template variables. |
template_id * | string | The SMS template id (from msg91_list_sms_templates). |
schedule_time | string | Send later at this time, format YYYY-MM-DD HH:MM:SS (optional). |
short_url | boolean | Shorten links in the message (true = on). |
msg91_send_otp Send OTP (paid)
SEND a one-time code by SMS to a real phone number using an OTP template; billed per message. MSG91 generates and stores the code. MSG91 API: POST /api/v5/otp.
| Parameter | Type | Description |
|---|---|---|
mobile * | string | Recipient in international format without '+', digits only (for example 919876543210). |
template_id * | string | The OTP template id from the MSG91 OTP section (must contain ##OTP##). |
otp_expiry | integer | Expiry in minutes, 1 to 10080 (default 15). |
otp_length | integer | Code length, 4 to 9 digits (default 4). |
variables | object | Other template variables (Param1, Param2, ...), case sensitive. |
msg91_resend_otp Resend OTP (paid)
RESEND the last one-time code to a phone number by SMS or voice call; billed per message. MSG91 API: GET /api/v5/otp/retry.
| Parameter | Type | Description |
|---|---|---|
mobile * | string | Recipient in international format without '+', digits only (for example 919876543210). |
retry_type | string | Send as text (SMS) or voice call (default voice). |
msg91_verify_otp Verify OTP
CHECK a code a user typed against the code MSG91 sent to that number. A used or expired code cannot be checked again. Returns type success or error with the reason. MSG91 API: GET /api/v5/otp/verify.
| Parameter | Type | Description |
|---|---|---|
mobile * | string | Recipient in international format without '+', digits only (for example 919876543210). |
otp * | string | The code the user entered. |