How to send SMS from Claude Code
This guide walks you through sending an SMS message directly from Claude Code using the Ozeki SMS MCP server. By following this tutorial, you will learn how to launch Claude Code, ask it to send an SMS in plain language, confirm the tool use, and verify that the message was delivered through the gateway logs.
What is an MCP tool call?
An MCP (Model Context Protocol) tool call is how an AI model communicates with external systems. When the AI needs to perform an action or retrieve data, such as querying a database, calling an API, or reading a file, it sends a structured request to the appropriate MCP server, which processes it and returns the result.
Example prompt
Send an SMS to +36301111111, the message should be "Message from Claude Code".
Steps to follow
We assume Ozeki SMS Gateway is already installed on your system, you have created an MCP user account with an API key, and you have already configured the Ozeki SMS MCP server in Claude Code.
How to send SMS from Claude Code video
The following video shows how to send an SMS message from Claude Code using the Ozeki SMS MCP server step-by-step.
Step 1 - Launch Claude Code
Open a terminal window and navigate to your working directory. Type claude
and press Enter to start Claude Code (Figure 1).
Step 2 - Use the Send SMS Tool
In the Claude Code prompt, type your SMS request in plain language and press Enter. Claude Code will interpret the request and select the appropriate MCP tool to fulfill it (Figure 2).
Send an SMS to +36301111111, the message should be "Message from Claude Code".
Claude Code will ask for your permission before invoking the SMS tool. Review the proposed tool call then confirm to allow Claude Code to proceed (Figure 3).
Once the tool has been executed, Claude Code will display the result returned by the Ozeki SMS MCP server. A successful response confirms that the message was submitted to the gateway and handed off for delivery (Figure 4).
Step 3 - Verify the transaction in logs
Open Ozeki SMS Gateway in your browser and navigate to the event log of your MCP user. You should see a log entry for the outgoing message, including the recipient number and message text, confirming that it was successfully processed by the gateway (Figure 5).
Conclusion
You have successfully sent an SMS message from Claude Code using the Ozeki SMS MCP server. Claude Code can now deliver SMS messages to any phone number simply by being asked to do so in plain language, making it easy to add mobile messaging to any Claude Code workflow.