TopSMS

v1.1.2
io.github.topsms-ghb/topsms-mcp Checked 2 days ago Published 16 days ago

TopSMS SMS gateway (topsms.eu / topsms.cz): send SMS, OTP codes, delivery status and credit.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

send_sms

Send one SMS message via the TopSMS SMS gateway (topsms.eu / topsms.cz). Costs credit: 160 GSM-7 chars = 1 SMS, 70 with other diacritics/emoji. Returns message id, number of segments and price in your account currency (field currency: EUR for topsms.eu accounts, CZK for topsms.cz).

ParameterTypeDescription
text *stringMessage text.
to *stringPhone number in international format, e.g. +420601234567 (Czech numbers without prefix are accepted).
fromstringApproved Sender ID (max 11 chars). Omit to use the default sender "TopSMS".
idempotencyKeystringOptional Idempotency-Key (e.g. a UUID). Repeating a call with the same key never sends the SMS twice; the original response is returned.
send_atstringSchedule for later: ISO 8601 with timezone, e.g. 2026-10-01T09:00:00+02:00 (max 30 days ahead). Omit to send now. Scheduled sends return a jobId that can be cancelled with cancel_scheduled.

send_bulk_sms

Send the same SMS text to up to 500 recipients. Batches over 50 recipients are queued (HTTP 202) and return a jobId; use get_bulk_job to follow progress.

ParameterTypeDescription
text *stringCommon message text.
to *arrayPhone numbers in international format.
fromstringApproved Sender ID (max 11 chars). Omit to use the default sender "TopSMS".
idempotencyKeystringOptional Idempotency-Key (e.g. a UUID). Repeating a call with the same key never sends the SMS twice; the original response is returned.
send_atstringSchedule for later: ISO 8601 with timezone, e.g. 2026-10-01T09:00:00+02:00 (max 30 days ahead). Omit to send now. Scheduled sends return a jobId that can be cancelled with cancel_scheduled.

get_message_status

Get delivery status of a sent message (queued, sent, delivered, failed, expired) with timestamps, errorMessage and machine-readable errorCode (expired, undelivered, rejected, deleted, unknown, repeated_failure, not_sent), by message id or external id.

ParameterTypeDescription
id *stringMessage id or externalId returned when sending.

get_bulk_job

Get progress of a queued bulk send (status, sent, failed, queued counts and per-message results).

ParameterTypeDescription
jobId *stringjobId returned by send_bulk_sms.
resultsbooleanInclude per-message results (default true).

cancel_scheduled

Cancel a scheduled send (or a queued bulk job that has not started yet). Unsent messages are removed and their price is returned to credit.

ParameterTypeDescription
jobId *stringjobId returned by send_sms / send_bulk_sms with send_at.

verify_send

Send a one-time verification code (OTP) by SMS for login, registration or payment confirmation. TopSMS generates and stores the code; returns a verification id. Limits: 5 codes per number per hour, 30 s between codes.

ParameterTypeDescription
to *stringPhone number in international format, e.g. +420601234567 (Czech numbers without prefix are accepted).
brandstringYour app or company name shown in the SMS ("MyShop: your verification code is ...").
fromstringApproved Sender ID (max 11 chars). Omit to use the default sender "TopSMS".
lengthintegerCode length 4-8 digits (default 6).
localestringSMS language (default cs).
ttlintegerValidity in seconds, 60-1800 (default 300).

verify_check

Check a verification code the user entered. Returns valid true/false, status (approved, pending, expired, failed, canceled) and attempts left (max 5 attempts per code).

ParameterTypeDescription
code *stringCode entered by the user.
idstringVerification id returned by verify_send (preferred).
tostringAlternatively the phone number; checks the latest code sent to it.

get_credit

Get the current TopSMS credit balance and the price per SMS, both in your account currency (field currency: EUR for topsms.eu accounts, CZK for topsms.cz accounts).

get_pricing

Get the current public TopSMS price list (prices per destination zone, volume tiers, sender name fee, billing rules). Does not require credentials. Use it instead of quoting prices from memory.