This is a Model Context Protocol (MCP) server for SMS.ir messaging services. It allows AI assistants like Claude to send SMS messages via the SMS.ir API.
You can install the MCP server directly from npm using npx:
# No installation needed; npx will run it on demand
This method is preferred as it allows you to use the server without downloading it manually, and it's easy to update.
If you prefer to manually install and customize the server:
git clone https://github.com/your-username/mcp-sms-ir.git
cd mcp-sms-ir
bun install
# or
npm install
npm run build
npm link
Add the SMS.ir server to your Cline MCP settings file:
{
"mcpServers": {
"sms-ir": {
"command": "npx",
"args": ["-y", "mcp-sms-ir"],
"env": {
"SMS_IR_API_KEY": "your-api-key-from-sms-ir"
}
}
}
}
{
"mcpServers": {
"sms-ir": {
"command": "node",
"args": ["/path/to/mcp-sms-ir/build/index.js"],
"env": {
"SMS_IR_API_KEY": "your-api-key-from-sms-ir"
}
}
}
}
Replace /path/to/mcp-sms-ir
with the actual path to this repository on your system, and your-api-key-from-sms-ir
with your actual API key from SMS.ir.
Add the SMS.ir server to your Claude desktop app configuration file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"sms-ir": {
"command": "npx",
"args": ["-y", "mcp-sms-ir"],
"env": {
"SMS_IR_API_KEY": "your-api-key-from-sms-ir"
}
}
}
}
{
"mcpServers": {
"sms-ir": {
"command": "node",
"args": ["/path/to/mcp-sms-ir/build/index.js"],
"env": {
"SMS_IR_API_KEY": "your-api-key-from-sms-ir"
}
}
}
}
To make this package available via npx, you need to publish it to npm. Here's how:
Make sure you have an npm account. If not, create one at npmjs.com.
Log in to npm from your terminal:
npm login
Update the package.json file with your information:
Prepare your package for publication:
npm run build
Publish the package:
npm publish
If this is your first time publishing this package, use:
npm publish --access=public
Once published, anyone can use your MCP server by adding it to their MCP settings using npx as shown in the configuration sections above.
send_sms
- Send a Single SMSSend an SMS message to a single recipient.
Parameters:
mobile
(required): Recipient mobile number (e.g., "09121234567")message
(required): Message contentlineNumber
(optional): Sender line numbersendDateTime
(optional): Scheduled date and time for sending the message (ISO format)Example:
{
"mobile": "09121234567",
"message": "Hello from SMS.ir MCP!",
"lineNumber": "3000xxxx"
}
send_bulk_sms
- Send Bulk SMSSend the same SMS message to multiple recipients.
Parameters:
mobiles
(required): Array of recipient mobile numbersmessageText
(required): Message content to send to all recipientslineNumber
(optional): Sender line numbersendDateTime
(optional): Scheduled date and time for sending the message (ISO format)Example:
{
"mobiles": ["09121234567", "09123456789"],
"messageText": "Hello from SMS.ir MCP!",
"lineNumber": "3000xxxx"
}
send_verification_code
- Send Verification CodeSend a verification code SMS using a template.
Parameters:
mobile
(required): Recipient mobile numbertemplateId
(required): Template ID from SMS.ir panelparameters
(required): Array of parameters to substitute in the templateExample:
{
"mobile": "09121234567",
"templateId": "100000",
"parameters": [
{
"name": "CODE",
"value": "123456"
}
]
}
check_credit
- Check Account CreditCheck the remaining credit in your SMS.ir account.
Parameters: None
Once the MCP server is properly configured, you can ask Claude to use it:
You: "Can you send an SMS to 09121234567 saying 'Hello from Claude'?"
Claude will use the send_sms
tool to send the message.
You: "Send a verification code to 09121234567 using template ID 100000 with code 123456"
Claude will use the send_verification_code
tool with the template and parameters.
You: "Check my SMS.ir account credit balance"
Claude will use the check_credit
tool to retrieve and report your current balance.
MIT
Seamless access to top MCP servers powering the future of AI integration.