MojaWave MCP server — connect Claude, ChatGPT, Gemini and any MCP-compatible AI to the MojaWave SMS Gateway
Project description
mojawave-mcp
MojaWave MCP server — connect any MCP-compatible AI assistant to the MojaWave SMS Gateway.
Works with Claude (Desktop & Code), ChatGPT (via OpenAI Agents SDK), Gemini (via Google ADK), Cursor, Windsurf, and any other tool that speaks the Model Context Protocol.
Every tool maps to a documented endpoint of the MojaWave public API — nothing undocumented is exposed.
Available tools
| Tool | API endpoint | What it does |
|---|---|---|
send_sms |
POST /sms/send |
Send a single SMS, optionally scheduled (schedule_at) |
send_bulk_sms |
POST /sms/bulk |
Start an async bulk SMS job for up to 10,000 recipients — returns a job_id |
get_bulk_sms_job |
GET /sms/bulk/{id} |
Poll the status and progress of a bulk SMS job |
get_message |
GET /messages/{id} |
Get full details and delivery timeline for a single message |
get_credit_balance |
GET /credits |
Check current SMS and email credit balances |
verify_webhook_signature |
— | Verify a webhook's X-MojaWave-Signature (HMAC-SHA256) |
Inputs are validated before any request is made (E.164 phone numbers, 1–11-char
sender IDs, message length, recipient count, ISO-8601 schedule times), and the
client retries 429/5xx responses with backoff that honours Retry-After.
Installation
pip install mojawave-mcp
Or for local development:
git clone https://github.com/mojawave/mojawave-mcp
cd mojawave-mcp
pip install -e ".[dev]"
Configuration
Copy .env.example to .env and add your API key:
cp .env.example .env
MOJAWAVE_API_KEY=sk_live_mw_xxxxxxxxxxxxxxxxxxxx
Get your API key from the MojaWave dashboard under Settings → API Keys.
Use a test key (sk_test_mw_…) during development — it returns synthetic
responses without sending real messages or charging credits.
Connecting to AI assistants
Claude Desktop
Add this block to ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"mojawave": {
"command": "mojawave-mcp",
"env": {
"MOJAWAVE_API_KEY": "sk_live_mw_xxxxxxxxxxxxxxxxxxxx"
}
}
}
}
Restart Claude Desktop. You will see a MojaWave tool icon in the chat interface.
Claude Code (CLI)
claude mcp add mojawave -- env MOJAWAVE_API_KEY=sk_live_mw_xxx mojawave-mcp
Cursor / Windsurf / any stdio MCP client
Point the client at the mojawave-mcp command with your API key as an
environment variable. Most clients use the same JSON config format as Claude
Desktop above — refer to your client's MCP documentation.
OpenAI Agents SDK (ChatGPT / GPT-4o)
Start the server in SSE mode so OpenAI can reach it over HTTP:
MOJAWAVE_API_KEY=sk_live_mw_xxx mojawave-mcp --transport sse --port 8080
Then connect from Python:
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
server = MCPServerSse(url="http://localhost:8080/sse")
async with server:
agent = Agent(
name="MojaWave Agent",
model="gpt-4o",
mcp_servers=[server],
)
result = await Runner.run(
agent, "Send an SMS to +255712345678 saying Hello from AI"
)
print(result.final_output)
Google Gemini (Google ADK)
Start the server in SSE mode:
MOJAWAVE_API_KEY=sk_live_mw_xxx mojawave-mcp --transport sse --port 8080
Then connect from Python:
from google.adk.agents import LlmAgent
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset, SseServerParams
mojawave_tools = MCPToolset(
connection_params=SseServerParams(url="http://localhost:8080/sse")
)
agent = LlmAgent(
model="gemini-2.0-flash",
name="mojawave_agent",
instruction="You can send SMS and check credits via MojaWave.",
tools=[mojawave_tools],
)
Hosted deployment (Docker)
For production, run the SSE server behind a reverse proxy:
FROM python:3.12-slim
RUN pip install mojawave-mcp
ENV MOJAWAVE_API_KEY=""
EXPOSE 8080
CMD ["mojawave-mcp", "--transport", "sse", "--port", "8080"]
docker build -t mojawave-mcp .
docker run -e MOJAWAVE_API_KEY=sk_live_mw_xxx -p 8080:8080 mojawave-mcp
Running locally (stdio)
MOJAWAVE_API_KEY=sk_live_mw_xxx mojawave-mcp
The server reads JSON-RPC from stdin and writes to stdout — the standard MCP stdio transport used by Claude Desktop and most IDE extensions.
Bulk SMS workflow
Bulk sends are asynchronous. send_bulk_sms returns a job_id immediately;
use get_bulk_sms_job to poll until the job completes:
1. send_bulk_sms(recipients=[...], message="...", sender_id="MYAPP")
→ { "job_id": "ec0fb57c-...", "status": "scheduled", "total_recipients": 500 }
2. get_bulk_sms_job(job_id="ec0fb57c-...")
→ { "status": "processing", "progress_percent": 42, "sent_count": 210 }
3. get_bulk_sms_job(job_id="ec0fb57c-...")
→ { "status": "completed", "total_recipients": 500, "total_credits_cost": 500 }
Security notes
- Never commit your API key. Use environment variables or a secrets manager.
- Use test keys (
sk_test_mw_…) in CI/CD and development — no real messages are sent and no credits are charged. - Scope API keys to only the permissions they need from the MojaWave dashboard.
- Webhook payloads are signed with
X-MojaWave-Signature(HMAC-SHA256) — verify signatures on your server before trusting delivery events.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mojawave_mcp-0.2.0.tar.gz.
File metadata
- Download URL: mojawave_mcp-0.2.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9ef9b481489b3102625c9eeb5421709d8e910ad8bf834a3bc2a91688aab6397
|
|
| MD5 |
d802bd18773f70adcefc53f660ca00c5
|
|
| BLAKE2b-256 |
5d18d2756336813a8aae16c64ad930c4809258e680d5dcf2740775df508f76da
|
Provenance
The following attestation bundles were made for mojawave_mcp-0.2.0.tar.gz:
Publisher:
release.yml on mojawave/mojawave-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mojawave_mcp-0.2.0.tar.gz -
Subject digest:
d9ef9b481489b3102625c9eeb5421709d8e910ad8bf834a3bc2a91688aab6397 - Sigstore transparency entry: 1804774378
- Sigstore integration time:
-
Permalink:
mojawave/mojawave-mcp@2177610178b103286b01ae4f632a24ebf04a1176 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/mojawave
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2177610178b103286b01ae4f632a24ebf04a1176 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mojawave_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mojawave_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43371b39196b28e157069ac72f69fd3067c1a064756f1b80e45537efb71c0e59
|
|
| MD5 |
d7f4d4382bb7dbff173d4c1b537874b2
|
|
| BLAKE2b-256 |
bfaf61422c59c07eeb21bf983eabf8198fda33c0e80a9f92f1f93f4e5439799f
|
Provenance
The following attestation bundles were made for mojawave_mcp-0.2.0-py3-none-any.whl:
Publisher:
release.yml on mojawave/mojawave-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mojawave_mcp-0.2.0-py3-none-any.whl -
Subject digest:
43371b39196b28e157069ac72f69fd3067c1a064756f1b80e45537efb71c0e59 - Sigstore transparency entry: 1804774399
- Sigstore integration time:
-
Permalink:
mojawave/mojawave-mcp@2177610178b103286b01ae4f632a24ebf04a1176 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/mojawave
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2177610178b103286b01ae4f632a24ebf04a1176 -
Trigger Event:
push
-
Statement type: