home / mcp / puch ai whatsapp mcp server
MCP server for integrating Puch AI with WhatsApp, enabling AI-powered messaging, product search, and web content fetching.
Configuration
View docs{
"mcpServers": {
"alok-ahirrao-puch-ai-whatsapp-integration-mcp-server": {
"url": "http://127.0.0.1:8085/mcp",
"headers": {
"TOKEN": "YOUR_SECURE_BEARER_TOKEN",
"MY_NUMBER": "919876543210",
"SERPAPI_API_KEY": "YOUR_SERPAPI_KEY"
}
}
}
}You can run an authenticated MCP API server that lets Puch AI fetch web content, search for products, and integrate with WhatsApp. This server exposes a secure endpoint you call with a tool name and arguments, returning structured results that your AI can use to respond to users or automate tasks.
You use the MCP server by sending a POST request to its endpoint with a tool name and the needed arguments. The server validates your request with a Bearer token and, once authenticated, executes the requested tool and returns a structured JSON response. For example, you can fetch web content to summarize an article or search for products to present up-to-date recommendations. You can chain tool results into natural language replies for WhatsApp or other interfaces.
Prerequisites: Python 3.11 or higher, pip, Git.
1. Install Python dependencies and run the server locally using the provided setup.
You protect the MCP API with a Bearer token. Include the token in the Authorization header of every request. Example header: Authorization: Bearer YOUR_SECURE_BEARER_TOKEN.
Environment variables youβll configure in your local setup include: SERPAPI_API_KEY for product searches, MY_NUMBER for WhatsApp integration, and TOKEN for API authentication.
- Fetch web content from any URL and extract text for summaries or data extraction.
- Search for products using a query to obtain up-to-date shopping results.
If you receive a 401 Unauthorized error, verify that you are sending the correct Bearer token in the Authorization header. Check that the server is running and reachable at the configured URL.
Fetches and parses the textual content of a given URL. Useful for summarizing articles, extracting data, or reading documentation.
Searches Google Shopping for products based on a query using SerpApi and returns structured results with title, price, link, and rating.