Send RCS using an Infobip MCP server and an AI client
This tutorial will show you how to send an RCS message using AI prompts. We use Claude Desktop but you can use any AI client that supports an MCP integration.
Prerequisites
- Infobip account (opens in a new tab). If you do not have one, create a free trial account (opens in a new tab).
- If using API key authorization, an Infobip API key with the
rcs:message:sendscope. Find out more about API keys and scopes. Skip this step for OAuth. - An AI client (e.g., Claude Desktop) with the capability to integrate an Infobip RCS MCP server. For details, see the MCP integration guide.
- RCS Sender. Request it through your Infobip account (opens in a new tab) or use the Create RCS Sender (opens in a new tab) endpoint.
- RCS Destination - a phone number to which the message will be sent. When testing, make sure that the device has the RCS option enabled in its messaging settings.
Integrate the Infobip RCS MCP server with your AI client
Navigate to your AI client's MCP settings and add the Infobip RCS MCP server.
{
"mcpServers": {
"infobip-rcs": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.infobip.com/rcs",
"--header",
"Authorization: App ${INFOBIP_API_KEY}"
],
"env": {
"INFOBIP_API_KEY": "<Your Infobip API Key here>"
}
}
}
}{
"mcpServers": {
"infobip-rcs": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.infobip.com/rcs"
]
}
}
}Once you restart your AI client, you should see the Infobip RCS MCP server on the list of available tools. For more integration details, see the MCP integration guide.
Send an RCS message
In your AI client, write a prompt to send an RCS message.
Key points about the prompt:
- Specify the sender and destination(s).
- Specify additional features you wish to include, e.g. buttons, media sending and managing, tracking, scheduling, etc. The more details you provide the better context AI will have to create the correct API request. Check out RCS (opens in a new tab) API reference.
- Describe your use case so that the AI can craft an adequate message.
- Include limitations (e.g., one message, specific delivery window) and personalized details (e.g., specific URL, image, etc.); otherwise, the AI will use made-up details to fill in the gaps.
send a card message from DemoSender to 447415774332.
1. the message should briefly introduce Infobip RCS solution and its capabilities.
2. the message should use this img: __https://i.postimg.cc/QdpVWNsd/Infobip-Demo.png__ and some title and description. Orientation should be HORIZONTAL and and alignment LEFT
3. the message should include a url to: __https://www.infobip.com/rcs__ for the reader to find out more about RCS. The URL should open in the webview window taking half of the mobile screen.The AI will create a request that you can then review and change if need be. Once you approve the message, the AI will send it.
{
"messages": [
{
"sender": "DemoSender",
"content": {
"type": "CARD",
"content": {
"media": {
"file": {
"url": "https://i.postimg.cc/QdpVWNsd/Infobip-Demo.png"
},
"height": "MEDIUM"
},
"title": "Discover Infobip RCS",
"description": "Transform your customer communications with Rich Communication Services. Send interactive messages with rich media, suggested actions, and verified business branding to create engaging mobile experiences.",
"suggestions": [
{
"url": "https://www.infobip.com/rcs",
"text": "Learn More",
"type": "OPEN_URL",
"application": "WEBVIEW",
"postbackData": "RCS_LEARN_MORE",
"webviewViewMode": "HALF"
}
]
},
"alignment": "LEFT",
"orientation": "HORIZONTAL"
},
"destinations": [
{
"to": "447415774432"
}
]
}
]
}{
"bulkId": "17528356386858989599978",
"messages": [
{
"messageId": "17528356386858989599979",
"status": {
"groupId": 1,
"groupName": "PENDING",
"id": 26,
"name": "PENDING_ACCEPTED",
"description": "Message sent to next instance"
},
"destination": "447415774332"
}
]
}Report status
Once the AI sends the message, it will return a summary of what it did and if prompted will retrieve a delivery report, if available.
Perfect! Your RCS card message has been successfully sent. Here are the details:
Message Status: ✅ Accepted and queued for delivery
Message ID: 17639864224703538899059
Bulk ID: 17639864224703538899058
Destination: 447415774332
Sender: DemoSender
Message Content:
Title: "Discover Infobip RCS"
Description: Brief introduction to RCS capabilities and benefits
Image: Your specified demo image with horizontal orientation and left alignment
Interactive Button: "Learn More" button that opens the RCS page in a half-screen webview
The message is now in the delivery queue and should reach the recipient shortly. The card format will provide an engaging introduction to Infobip's RCS solution with the rich media and interactive elements you requested.
Would you like me to check the delivery status or send any additional messages?That's it! You have successfully sent an RCS using AI and an Infobip MCP server.