
Deploy whatsapp mcp
Deploy and Host whatsapp mcp with Railway
mcp-server
hawkaii/annapurna
Just deployed
Postgres
railwayapp-templates/postgres-ssl:16
Just deployed
/var/lib/postgresql/data
Deploy and Host WhatsApp MCP on Railway
What is WhatsApp MCP?
WhatsApp MCP (Model Context Protocol) is a Python-based backend template for building AI-powered WhatsApp bots and assistants. It connects WhatsApp users to custom AI tools—such as chatbots, automation agents, and data processors—via the Puch AI platform. The template processes messages, images, and commands, enabling seamless, secure, and scalable AI-powered conversations directly from WhatsApp.
About Hosting WhatsApp MCP
Hosting WhatsApp MCP involves running your AI assistant’s backend in the cloud, ensuring it’s always online and ready to serve users. With Railway, you can deploy your MCP server in minutes—no DevOps headaches required. Simply connect your GitHub repository, set up environment variables (such as API keys and database URLs), and Railway takes care of building, deploying, and scaling your app. This makes it easy to integrate with WhatsApp via Puch AI, providing fast, reliable responses 24/7, without worrying about server maintenance or downtime.
Common Use Cases
- AI-powered customer support bots: Automate FAQs, handle support tickets, and provide instant responses to users on WhatsApp.
- Automated WhatsApp notification systems: Send reminders, alerts, or personalized updates to users based on triggers or schedules.
- Conversational data collection: Gather feedback, run surveys, or collect structured data from users via chat.
- AI chat companions: Build custom conversational agents for entertainment, productivity, or education.
- Workflow automation: Integrate with external APIs to automate business processes or personal tasks through WhatsApp.
Example Implementation
- AI Kitchen Assistant: Users can scan grocery bills, manage pantry inventory, and receive recipe suggestions—all through WhatsApp.
- Personal Nutrition Tracker: Users log meals, track nutrition, and view daily summaries via chat, making healthy eating easy and interactive.
- Custom WhatsApp Bots: Rapidly build and deploy any AI-powered WhatsApp bot (reminders, Q&A, productivity tools) with secure, scalable cloud hosting.
Dependencies for WhatsApp MCP Hosting
- Python 3.11+ (runtime for the MCP server)
- PostgreSQL (database for persistent user, inventory, and nutrition data)
- Puch AI Account (for WhatsApp integration)
- API Keys for external services (e.g., Google Gemini, Azure Vision)
Deployment Dependencies
- Railway – Cloud hosting platform
- Puch AI – WhatsApp AI platform
- Google Gemini – For nutrition and recipe AI
- Azure AI Vision – For OCR/grocery bill scanning
Implementation Details
Example: Setting Environment Variables in Railway
AUTH_TOKEN=your_secret_token
VISION_KEY=your_azure_vision_key
VISION_ENDPOINT=your_azure_vision_endpoint
GEMINI_API_KEY=your_gemini_api_key
DATABASE_URL=postgresql+asyncpg://username:password@host:port/dbname
Example: Deploying on Railway
- Push your code to GitHub.
- Create a new Railway project and link your repo.
- Add the required environment variables in the Railway dashboard.
- Add a PostgreSQL plugin and copy the
DATABASE_URL
. - Deploy! Watch the logs for
🚀 Starting MCP server...
Why Deploy WhatsApp MCP on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying WhatsApp MCP on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
mcp-server
hawkaii/annapurna