---
title: "Connect WhatsApp to VS Code and GitHub Copilot (MCP, personal account)"
description: "Add Kaption’s WhatsApp MCP server to VS Code for GitHub Copilot agent mode: MCP: Add Server › HTTP, one click, or .vscode/mcp.json. OAuth sign-in with a code on WhatsApp."
canonical: "https://kaptionai.com/mcp/vscode/"
lang: "en"
---

# Connect WhatsApp to VS Code and GitHub Copilot (MCP, personal account)

> Add Kaption’s WhatsApp MCP server to VS Code for GitHub Copilot agent mode: MCP: Add Server › HTTP, one click, or .vscode/mcp.json. OAuth sign-in with a code on WhatsApp.

Canonical: https://kaptionai.com/mcp/vscode/

In VS Code, click Add to VS Code above, or run MCP: Add Server from the Command Palette, choose HTTP and paste https://mcp.kaptionai.com/mcp. After you sign in with a code on WhatsApp, GitHub Copilot’s agent mode can search and summarize your WhatsApp chats.

## What you need

- VS Code with GitHub Copilot. Your organization’s policy may limit which MCP servers you can add.
- Kaption open on your computer: WhatsApp Web in Chrome or Edge with the Kaption extension, or the Kaption app for Mac or Windows. Every Kaption plan can connect an assistant: unlimited in your first 60 days, then with credits a month.

## How to connect

1. **Copy the address from Kaption.** Open WhatsApp Web with the Kaption extension, or the Kaption app. Go to AI Connectors (MCP) › Add an assistant › Another app and copy the server address (it’s also below). Under Connections, check that Through the cloud is on. Keep Kaption open while VS Code works: the tools reach WhatsApp only while Kaption runs.
2. **Add the server.** Click Add to VS Code above. Or open the Command Palette, run MCP: Add Server, choose HTTP (HTTP or Server-Sent Events), paste the address and name it whatsapp. Or add the entry below to .vscode/mcp.json.
3. **Sign in with a code on WhatsApp.** VS Code opens Kaption’s sign-in page. Enter your WhatsApp phone number, type the 6-digit code Kaption sends you on WhatsApp, and choose how long the connection lasts: while you use it (it ends after 90 days without use), 1 year, or until you disconnect it.
4. **Use it in agent mode.** Open Copilot Chat in agent mode and ask about your WhatsApp. VS Code asks you to approve tool calls; approve only what you understand, and check the text before a send.

MCP server address: `https://mcp.kaptionai.com/mcp` (Streamable HTTP, OAuth 2.1).

Config (.vscode/mcp.json):

```json
{
  "servers": {
    "whatsapp": {
      "type": "http",
      "url": "https://mcp.kaptionai.com/mcp"
    }
  }
}
```

## What VS Code can and can’t do with Kaption

### It can

- Bring a client’s WhatsApp message into your editor, or schedule a “deployed, please check” message when you ship.
- Search and read your chats, including voice-note transcripts.
- Summarize a conversation or a group.
- Look up contacts and groups, and export your contacts.
- Manage labels, reminders and chat lists.
- Schedule a message, or send one from your own WhatsApp while sending is on. Ask VS Code to show you the text and the recipient first.

### It can’t

- Get around your organization’s policy for MCP servers in Copilot.
- Send bulk or broadcast messages: Kaption has no mass-message tool.
- See chats you locked in WhatsApp.
- Reach WhatsApp while Kaption is closed on your computer.

## How Kaption protects your WhatsApp account

- Your personal WhatsApp, not the Business API: Kaption works through WhatsApp Web or the Kaption app on your own computer, signed in to your own account. No number migration and no Meta Business account.
- No bulk sending: there is no broadcast or mass-message tool. Each send is one message to a chat you already have, within Kaption’s safe limits on how many messages go out an hour and how far apart. WhatsApp may restrict accounts that send automated messages, so use it for your own messages to people who know you.
- You decide about sending: Kaption shows a notice the first time an assistant sends. To stop every send from your WhatsApp, turn off “Let assistants send messages from this computer” in Kaption › AI Connectors (MCP) › Messaging; VS Code can’t turn it back on.
- Revocable at any time: disconnect VS Code in Kaption › AI Connectors (MCP) › Connections, or remove the connector in VS Code.
- Locked chats stay hidden: VS Code never sees chats you locked in WhatsApp.
- No chats stored on the relay: mcp.kaptionai.com checks your sign-in and passes each request to Kaption on your computer, which answers from your WhatsApp. VS Code keeps your conversation with it under its own terms.

[How Kaption keeps your WhatsApp account safe](https://kaptionai.com/whatsapp-mcp-safety/)

## Questions

### Where does VS Code keep the server?

In .vscode/mcp.json for one workspace, or in your user profile’s mcp.json for every workspace. The entry goes under "servers" with "type": "http".

### Do I need an API key or a client ID?

No. VS Code uses OAuth with automatic client registration, so it opens Kaption’s sign-in page and you enter the code Kaption sends on WhatsApp.

### Does it work with my personal WhatsApp or only the WhatsApp Business API?

With your personal WhatsApp, and with the WhatsApp Business app. Kaption connects VS Code to the WhatsApp you already use in WhatsApp Web or the Kaption app on your computer. There is no Business API, no Meta approval and no number migration.

### Can VS Code read my WhatsApp messages?

Only when you ask, and only through Kaption on your computer. VS Code calls Kaption’s tools to search or read the chats a request needs, and Kaption answers from your WhatsApp. Locked chats are never visible, and you can disconnect VS Code at any time.

### Can VS Code send WhatsApp messages without asking me?

Sending from your computer is on by default, within Kaption’s safe limits, and Kaption shows a notice the first time an assistant sends. Ask VS Code to confirm the text and the recipient before it sends. To stop sends from your WhatsApp, turn off “Let assistants send messages from this computer” in Kaption › AI Connectors (MCP) › Messaging; VS Code can’t turn it back on. With it off, VS Code can still schedule a message through the Kaption bot, which sends from Kaption’s own number.

### Does Kaption store my chats on its servers?

No. The relay at mcp.kaptionai.com checks your sign-in and passes each request to Kaption on your computer, which runs it against your WhatsApp and sends back only the answer.

### What does “Extension not connected” mean?

Kaption is closed, or its cloud connection is off. Open WhatsApp Web with the Kaption extension, or the Kaption app, and check that Through the cloud is on in AI Connectors (MCP) › Connections.

## Related

- [Kaption’s WhatsApp MCP server](https://kaptionai.com/mcp/)
- [Kaption plans](https://kaptionai.com/pricing/)
- https://kaptionai.com/mcp/claude/summarize-whatsapp-chats/
- https://kaptionai.com/mcp/chatgpt/search-whatsapp-messages/
- VS Code: https://code.visualstudio.com/docs/copilot/customization/mcp-servers · https://code.visualstudio.com/docs/copilot/reference/mcp-configuration
