ClickSend MCP Server
ClickSend MCP Server
A Model Context Protocol (MCP) server that provides SMS messaging and Text-to-Speech (TTS) call capabilities through ClickSend's API. This server enables AI models to send SMS messages and initiate voice calls programmatically.
<a href="https://glama.ai/mcp/servers/6nj3h62i6b"><img width="380" height="200" src="https://glama.ai/mcp/servers/6nj3h62i6b/badge" alt="ClickSend Server MCP server" /></a>
Features
- SMS Messaging: Send SMS messages to any phone number worldwide
- Text-to-Speech Calls: Make voice calls with customizable text-to-speech messages
- Rate Limiting: Built-in protection with 5 actions per minute limit
- Input Validation: Comprehensive validation for phone numbers and message content
- Error Handling: Detailed error messages and proper error propagation
Installation
Prerequisites
- Node.js (v16 or higher)
- ClickSend account with API credentials
- MCP-compatible Client
Setup
- Clone the repository:
- Install dependencies:
- Build the project:
Setting up the MCP Client
Add the following sections into your cline_mcp_settings.json
file or claude_desktop_config.json
file.
Be sure to replace the directory with the correct path to the build folder, as shown in the example below, as well as the username and API key with your own.
Usage
Available Tools
1. send_sms
Send SMS messages to specified phone numbers.
Parameters:
to
: Phone number in E.164 format (e.g., +61423456789)message
: Text content to send
Example:
2. make_tts_call
Initiate Text-to-Speech calls.
Parameters:
to
: Phone number in E.164 formatmessage
: Text content to convert to speechvoice
: Voice type ('female' or 'male', defaults to 'female')
Example:
Rate Limiting
The server implements a rate limit of 5 actions per minute to prevent abuse. Requests exceeding this limit will receive an error response with a retry delay suggestion.
Development
Available Scripts
npm run build
: Compile TypeScript and make the output executablenpm run start
: Start the MCP servernpm run dev
: Run TypeScript compiler in watch mode
Project Structure
Error Handling
The server provides detailed error messages for various scenarios:
- Invalid phone numbers
- Message content validation failures
- Rate limit exceeded
- API authentication errors
- Network connectivity issues
Error responses include appropriate error codes and descriptive messages to help diagnose issues.
TODO
- Multiple Recepients
- Configure Sender IDs
- SMS
- TTS
- Media Uploading
- Email Attachments
- MMS
- Letters
- Postcards
- Fax
- Cost Calculation and Confirmation
- Statistics
- History
- Contacts
- Automations
License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
You must be authenticated.
This server enables AI models to send SMS messages and initiate Text-to-Speech calls programmatically using ClickSend's API with built-in rate limiting and input validation.