Send SMS using an Infobip MCP server and an AI client
This tutorial will show you how to send an SMS message using AI prompts. In this example, we use Claude Desktop but you can use any AI client that supports MCP integrations.
Prerequisites
- Infobip account. If you do not have one, you can create a free trial account.
- If using API key authorization, an Infobip API key with the
sms:message:sendscope. Find out more about API keys and scopes. Skip this step for OAuth. - An AI client (e.g., Claude Desktop) with the Infobip SMS MCP server. For integration details, see the MCP integration guide.
- Sender. If in free trial, the Infobip test sender,
ServiceSMS. If you want to configure your custom sender, request a new number or an alphanumeric sender through the Infobip account or using Infobip Numbers API. - Destination - a phone number to which the message will be sent. If in free trial, you can only send messages to a verified phone number.
Integrate the Infobip SMS MCP server with your AI client
Navigate to your AI client's MCP settings and add the Infobip SMS MCP server.
Once you restart your AI client, you should see the Infobip SMS MCP server on the list of available tools. For more integration details, see the MCP integration guide.
Use an AI prompt to send an SMS message
In your AI client, write a prompt to send an SMS message.
Key points:
- Specify the sender and destination(s).
- Specify additional features you wish to include, e.g. URL shortening, tracking, scheduling etc. Check out SMS API reference for more details.
- Describe your use case so that the AI can craft an adequate message.
- Include limitations (e.g., one SMS) and personalized details (e.g., URL); otherwise, the AI will use made up details to fill in the gaps.
SMS prompt process workflow
This workflow outlines the step-by-step process AI uses for sending an SMS message with the Infobip SMS MCP server enabled. This is to help you determine how to best work with this tool.
Preview
Once you send the prompt. The AI will send you a preview of the SMS using the sms/1/preview endpoint.
Send
Once preview's approved, the AI will send the SMS and apply requested features, e.g., schedule.
Report status
Once the AI sends the SMS, it will return a summary of what it did and if prompted will retrieve a delivery report, when available.
That's it! You have successfully sent an SMS message using AI and an Infobip MCP server.