omnigapai/android-sms-gateway-mcp
3.2
If you are the rightful owner of android-sms-gateway-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Android SMS Gateway MCP Server is a microservice designed to integrate with the Android SMS Gateway app, enabling SMS sending and receiving capabilities with AI-enhanced message processing.
Android SMS Gateway MCP Server
A microservice that integrates with Android SMS Gateway app to provide SMS sending/receiving capabilities with AI-powered message processing.
Features
- Send SMS messages with coach name formatting
- Receive SMS via webhooks or polling
- LLM processing for intent detection and urgency classification
- Message transfer between coaches
- Real-time gateway health monitoring
Prerequisites
-
Android SMS Gateway App
- Install from: https://github.com/capcom6/android-sms-gateway
- Configure on your Android device
- Note the gateway URL (usually your phone's IP:8080)
-
Node.js 18+
-
OpenAI API Key (optional, for AI features)
Setup
- Install dependencies:
npm install
- Create
.env
file:
cp .env.example .env
- Configure
.env
:
# Your Android device's gateway URL
GATEWAY_URL=http://192.168.1.100:8080
GATEWAY_USERNAME=admin
GATEWAY_PASSWORD=your_password
# For AI message processing
OPENAI_API_KEY=sk-...
# Server port
PORT=3005
- Start the server:
npm start
API Endpoints
Send SMS
POST /api/sms/send
{
"to": "+1234567890",
"message": "Hello!",
"coachLastName": "Smith"
}
Receive Messages
GET /api/sms/received?limit=50&processed=true
Transfer Message
POST /api/sms/transfer
{
"messageId": "123",
"toCoachPhone": "+1234567890",
"toCoachLastName": "Johnson"
}
Health Check
GET /health
GET /api/gateway/status
Webhook Configuration
Configure your Android SMS Gateway to send webhooks to:
https://your-server.com/webhook/sms-received
Deployment to Railway
- Push to GitHub
- Connect repo to Railway
- Set environment variables in Railway dashboard
- Deploy!
Message Flow
Android Phone → SMS Gateway App → MCP Server → LLM Processing → Coach Dashboard
LLM Features
When OPENAI_API_KEY is configured, incoming messages are analyzed for:
- Intent (registration, payment, scheduling, etc.)
- Urgency level (high, medium, low)
- Suggested responses
- Key entities extraction
- Recommended coach actions
Troubleshooting
Gateway not connecting
- Check GATEWAY_URL is correct
- Ensure Android device is on same network
- Verify username/password
Messages not receiving
- Enable polling in .env:
ENABLE_POLLING=true
- Check webhook configuration in Android app
- Verify port forwarding if using external access
LLM not processing
- Verify OPENAI_API_KEY is valid
- Check API quota/limits
- Review server logs for errors