Wow!Full-featured sandbox for developers — free forever!Register Now
Developer Guide

Connect WhatsApp MCP to Cursor, VS Code & GitHub Copilot (2026)

Updated on April 20, 2026

This step-by-step guide from Whapi.Cloud -- a WhatsApp API provider -- shows developers how to connect whapi-mcp, a WhatsApp MCP server, to Cursor, VS Code Agent Mode, or GitHub Copilot in under 10 minutes. whapi-mcp exposes 165 WhatsApp tools to any MCP-compatible AI agent: messages, groups, channels, and contacts -- no custom code. Covers copy-paste JSON configs, connection verification, and token security for each IDE. Written for developers already using AI coding assistants.

Connect WhatsApp MCP to Cursor VS Code and GitHub Copilot with whapi-mcp in 10 minutes
About the Author
Jason Mitchell
Jason Mitchell
Product Owner at Whapi.Cloud
Building WhatsApp integrations since 2019. Always happy to connect — whether you want to discuss an API use case, share feedback, or just talk shop. Find me on LinkedIn.
Common Questions

Frequently Asked Questions About WhatsApp MCP

whapi-mcp works with any MCP-compatible client -- Cursor, VS Code Agent Mode, GitHub Copilot Chat (VS Code 1.99+ with eligible plan), Windsurf, and Claude Desktop. All clients use the same npm package. Only the config file path and the outer JSON key differ per IDE. The setup process described in this guide takes under 10 minutes for each client.
Register at whapi.cloud and connect a WhatsApp number to a channel by scanning a QR code in the Whapi dashboard. Once the number is connected, copy the API token from the channel settings. The token is available immediately after connection. Free trial channels are available for testing before committing to a paid subscription.
whapi-mcp is the MCP server -- it connects your AI agent to WhatsApp and provides the actual tool calls (send message, get chats, manage groups). The Whapi Agent Skill is a separate knowledge file you install in Cursor or VS Code that pre-loads WhatsApp Chat ID format rules and tool usage patterns into the agent's context. Without it, AI agents often guess incorrect Chat ID formats and the tool call fails. The Agent Skill solves this at the source by providing the agent with the format knowledge it needs before the first call.
Neither. whapi-mcp runs via npx, which downloads and executes the package on demand without a global install or a project dependency entry. Add the npx command to your IDE's MCP config JSON and the IDE starts the server automatically when the agent session opens. You only need Node.js 18 or later installed on your system.
Not if the file is committed to version control. The recommended practice is to reference an environment variable in the config (using ${WHAPI_TOKEN} syntax where supported) and set the actual value in your system environment or a .env file excluded from git. At minimum, add the mcp.json file to .gitignore if it contains a raw token. For team or CI environments, use a secrets manager rather than committing tokens to the repository.

See What Our Clients Built
with Whapi.Cloud

"Cart reminders with a 5% follow-up coupon lifted our recovery rate from 4% to 11%. Customers reply directly in WhatsApp — our team closes the sale right there."

Abandoned Cart Recovery

Hans M., Germany
"Managing 40+ segment groups became trivial — auto welcome messages, pinned updates, inactive member cleanup. Lead gen from WhatsApp groups grew 3x in two months."

Automated Group Management at Scale

Carlos S., Brazil
"Guests receive door codes, WiFi credentials, and a local guide automatically on arrival. Checkout is confirmed via a photo on WhatsApp. Front desk load dropped 40% in the first month."

Contactless Hotel Operations

Ana M., Romania
"Our deals channel has 12,000 subscribers. Whapi.Cloud scrapes competitors, filters duplicates, and auto-posts the top 5 daily. Channel growth tripled after switching to automated posting."

Automated Deal Channel Publishing

Katrin S., Germany
"We verified 93,000 active WhatsApp numbers from 180,000 contacts in 48 hours. Campaign open rates improved significantly by stopping spend on inactive numbers."

Large-Scale Audience Filtering

Sergio N., Spain
"Patients book appointments and check lab results on WhatsApp. The bot handles 200+ daily queries without staff. Appointment no-shows dropped 30% after automated 24h reminders."

Healthcare Bot — Scheduling & Results

Dr. Fernanda O., Brazil
"Post-purchase WhatsApp messages with a tailored discount at day 14. Birthday coupons see 45% redemption — far above our email rate. Repeat purchases via WhatsApp: 18% of total revenue."

WhatsApp Retention Campaigns

Lukas W., Germany
"Customers get a WhatsApp tracking link the moment their parcel ships. Support tickets dropped 35% in 3 months — mostly 'where is my order?' queries simply disappeared."

Automated Shipping Notifications

Matei P., Romania
Inhouse Developed & Managed

What is Whapi.Cloud?

Whapi.Cloud is an intuitive API that connects your business with WhatsApp -- directly and without complexity. Build support bots, schedule appointments, send notifications, manage groups and channels, automate order confirmations, and track everything with webhooks. Focus on growing your business while the API handles the messaging layer.

Our service provides full control and management of WhatsApp groups, communities and channels.

Add dynamics and new features: media, buttons, reactions, stories, orders and products. All of these are available to you for customer interaction.

Our care team will respond quickly and help you with any questions you may have!
Account screenshot
Account screenshot