Skip to content
VS Code

mcp whatsapp cloud for VS Code

io.github.codespar/mcp-whatsapp-cloud

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

client:VS Code transport:stdio runtime:npm

Install mcp whatsapp cloud in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "whatsapp-access-token",
      "description": "WHATSAPP_ACCESS_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "whatsapp-phone-number-id",
      "description": "WHATSAPP_PHONE_NUMBER_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "whatsapp-business-account-id",
      "description": "WHATSAPP_BUSINESS_ACCOUNT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "whatsapp-graph-version",
      "description": "WHATSAPP_GRAPH_VERSION",
      "password": true
    }
  ],
  "servers": {
    "mcp-whatsapp-cloud": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-whatsapp-cloud"
      ],
      "env": {
        "WHATSAPP_ACCESS_TOKEN": "${input:whatsapp-access-token}",
        "WHATSAPP_PHONE_NUMBER_ID": "${input:whatsapp-phone-number-id}",
        "WHATSAPP_BUSINESS_ACCOUNT_ID": "${input:whatsapp-business-account-id}",
        "WHATSAPP_GRAPH_VERSION": "${input:whatsapp-graph-version}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp whatsapp cloud in other clients