Pons
Open-source WhatsApp Business API bridge with MCP server
Installation
npx ponsAsk AI about Pons
Powered by Claude Β· Grounded in docs
I know everything about Pons. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
βββββββββββββββββββββββββββββββββββββββββββ
β β
β βββββββ βββββββ ββββ βββββββββββ β
β ββββββββββββββββββββββ βββββββββββ β
β βββββββββββ βββββββββ βββββββββββ β
β βββββββ βββ βββββββββββββββββββββ β
β βββ ββββββββββββ ββββββββββββββ β
β βββ βββββββ βββ βββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββ
WhatsApp in your terminal. Messages in your AI.
Bridge the WhatsApp Business Cloud API to any MCP-compatible client.
Send and receive messages from Claude, Cursor, or your own tools.
pons.chat Β· Docs Β· Report Bug Β· Request Feature
The Problem
WhatsApp Business has a powerful API, but it's locked behind REST calls, webhook plumbing, and token management. There's no way to plug it into the tools you actually use β AI assistants, dev environments, automation pipelines.
Pons (Latin for "bridge") connects WhatsApp to the Model Context Protocol, so your AI assistant can read, search, and send WhatsApp messages as naturally as it reads files or searches the web.
What It Does
- Full WhatsApp inbox β real-time web UI with conversations, media, delivery receipts
- MCP server β expose WhatsApp as tools for Claude Desktop, Cursor, or any MCP client
- Multi-tenant β multiple WhatsApp Business Accounts, multiple users per account
- Media handling β images, videos, documents auto-downloaded to Convex storage (Meta URLs expire in 5 min)
- 24h window tracking β know when you can send free-form vs. template-only messages
- API key management β scoped keys for different clients with expiration
Tech Stack
| Layer | Choice |
|---|---|
| Framework | Next.js 16 (App Router, Turbopack) |
| Backend | Convex (database, auth, file storage, scheduled actions) |
| Auth | Convex Auth (Google OAuth) |
| MCP | @modelcontextprotocol/sdk β Streamable HTTP transport |
| UI | shadcn/ui + Tailwind CSS v4 |
| Domain | pons.chat |
| Hosting | Vercel (FRA1) + Convex Cloud (eu-west-1) |
Quick Start
Prerequisites
- Node.js 18+, pnpm
- A Meta Business App with WhatsApp Cloud API access
1. Install & configure
git clone https://github.com/NicolaiSchmid/pons.git
cd pons
pnpm install
# Start Convex dev (opens browser for auth on first run)
npx convex dev
# In another terminal
pnpm run dev:next
2. Connect WhatsApp
- Create a Meta Business App β add WhatsApp product β get test phone number
- Sign in to Pons at
http://localhost:3000 - Create an Account with your WABA ID, Phone Number ID, Access Token, and App Secret
- Set webhook URL in Meta to
https://your-domain.com/api/webhook - Use the generated Webhook Verify Token to verify
3. Connect your AI
Go to API Keys in the dashboard, create a key, and add to your MCP config:
{
"mcpServers": {
"pons": {
"url": "https://your-pons-domain.com/api/mcp",
"headers": {
"Authorization": "Bearer pons_your_api_key_here"
}
}
}
}
MCP Tools
| Tool | Scope | Description |
|---|---|---|
list_conversations | read | List recent conversations with preview |
get_conversation | read | Get full conversation with messages |
search_messages | read | Search messages by content |
send_text | send | Send a text message |
send_template | send | Send a template message (for closed windows) |
list_templates | read | List available message templates |
mark_as_read | write | Mark conversation as read |
send_reaction | write | React to a message with emoji |
Scopes: read (view), write (mark read, react), send (send messages). Assign per key.
Architecture
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β β β β β β
β Claude / ββββββΆβ Pons MCP ββββββΆβ Convex β
β Cursor β MCP β Endpoint β β Backend β
β β β (Next.js) β β β
ββββββββββββββββ ββββββββ¬ββββββββ ββββββββ¬ββββββββ
β β
ββββββββ΄ββββββββ ββββββββ΄ββββββββ
β β β β
β Pons Web β β Meta Graph β
β Dashboard β β API v22.0 β
β β β β
ββββββββββββββββ ββββββββββββββββ
Data Model
Account (WhatsApp Business Account)
βββ AccountMember (owner / admin / member)
βββ Contact (customer phone numbers)
β βββ Conversation (thread with a contact)
β βββ Message (text, media, location, reaction...)
βββ Template (pre-approved message templates)
βββ ApiKey (scoped MCP authentication)
βββ WebhookLog (raw payloads for debugging)
Project Structure
pons/
βββ convex/ # Backend
β βββ schema.ts # Database schema
β βββ auth.ts # Convex Auth (Google OAuth)
β βββ accounts.ts # Account + member management
β βββ conversations.ts # Conversation queries
β βββ messages.ts # Message CRUD
β βββ mcp.ts # MCP queries + API key management
β βββ mcpNode.ts # Crypto operations (Node.js runtime)
β βββ webhook.ts # Webhook ingestion + media download
β βββ whatsapp.ts # Meta Graph API actions
βββ src/
β βββ app/
β β βββ api/mcp/ # MCP HTTP endpoint
β β βββ api/webhook/ # WhatsApp webhook handler
β β βββ page.tsx # Landing + auth gate
β βββ components/
β β βββ Dashboard.tsx # Main shell
β β βββ ConversationList.tsx # Sidebar
β β βββ MessageThread.tsx # Chat view
β β βββ AccountSettings.tsx # Settings + member management
β β βββ ApiKeyManager.tsx # API key CRUD
β β βββ AccountSelector.tsx # Account switcher
β β βββ SetupAccount.tsx # Onboarding
β βββ components/ui/ # shadcn/ui primitives
βββ middleware.ts # Auth middleware (webhook excluded)
βββ vercel.json # Vercel config (FRA1 region)
Development
pnpm dev # Convex + Next.js in parallel
pnpm run check:write # Biome lint + format (auto-fix)
pnpm run typecheck # TypeScript check
pnpm run build # Production build
Deployment
- Connect GitHub repo to Vercel
- Set environment variables:
NEXT_PUBLIC_CONVEX_URL,CONVEX_DEPLOY_KEY - Build command is pre-configured:
pnpm convex deploy --cmd 'pnpm run build' - Disable Vercel Deployment Protection for production (webhook needs unauthenticated access)
License
MIT
Built by nicolaischmid.com
