Official Meta Business Partner

WhatsApp MCP server
on the official API

Use Claude Code, Codex, Cursor, or any MCP client with streamable HTTP to work with WhatsApp Business numbers. Kapso uses Meta’s Cloud API. Connect your MCP client without a WhatsApp Web session or QR scan.

Add it to Claude Code, then run /mcp to sign in
claude mcp add --transport http kapso https://api.kapso.ai/mcp

What you can ask

Any MCP client can call these tools: Claude Code, Codex, Cursor, or your own agent. They run against your Kapso project, so answers come from your real numbers and conversations.

agent · ~/acme-support

>Which conversations have been open longer than a day?

  • kapso · list_whatsapp_conversations status: active

Two conversations have been open for more than 24 hours without a reply from you.

-Diego Morales: invoice question (31h)

-Sofía Herrera: warranty claim (26h)

>Close the ones that are resolved

kapso · set_whatsapp_conversation_status status: ended

Setup

Paste the prompt into your agent, or run the commands yourself.

Paste a prompt

Your agent follows the setup guide for its own client and asks before creating keys.

Paste this into your agent

>Set up WhatsApp for this project with Kapso. Follow the steps at kapso.com/whatsapp-mcp-server and ask me before creating any keys.

  • Reads this page and the Kapso docs
  • Adds the Kapso MCP server to its client
  • Waits for you to set your API key

Add it yourself

Connect with a project API key. For browser sign-in, see the MCP docs.

  1. 1. Get a project API key

    Create a key in your Kapso dashboard and set it in your environment.

    export KAPSO_API_KEY="your_project_api_key"
  2. 2. Add the server to your client

    Follow the setup instructions for your client.

    Claude Code

    Keep the single quotes and start Claude Code from the shell where you exported the key.

    claude mcp add --transport http kapso https://api.kapso.ai/mcp \
      --header 'Authorization: Bearer ${KAPSO_API_KEY}'
    Codex

    After registering the server, start or restart Codex from the shell where you exported the key. Run /mcp to check the connection.

    codex mcp add kapso --url https://api.kapso.ai/mcp --bearer-token-env-var KAPSO_API_KEY
    Cursor

    Add the Kapso entry to .cursor/mcp.json and make KAPSO_API_KEY available to Cursor.

    {
      "mcpServers": {
        "kapso": {
          "url": "https://api.kapso.ai/mcp",
          "headers": { "Authorization": "Bearer ${env:KAPSO_API_KEY}" }
        }
      }
    }
  3. 3. Ask your agent

    Try a read-only request first.

    > Which of my WhatsApp numbers are connected?
For scripts and CI, use the Kapso CLI with the same key: npm install -g @kapso/cli
CLI docs →

Tools your agent gets

Kapso offers more than 140 tools. Your client lists the tools your connection can use in its project.

Area What your agent can do Tools
MessagesRead message history, send text, media, templates, and interactive messages, and mark chats read.list_whatsapp_messages, send_whatsapp_message, mark_whatsapp_messages_read, upload_whatsapp_media
ConversationsFind open chats, read a thread, assign it to a teammate, and close it when it is done.list_whatsapp_conversations, create_whatsapp_conversation_assignment, set_whatsapp_conversation_status
NumbersList connected numbers, check their health, and spin up a sandbox number.list_whatsapp_numbers, check_whatsapp_number_health, create_whatsapp_sandbox_session
TemplatesList approved templates and submit new ones to Meta for review.list_whatsapp_templates, get_whatsapp_template, create_whatsapp_template
WebhooksPoint events at your endpoint, send a test event, and read past deliveries.create_whatsapp_webhook, test_whatsapp_webhook, list_whatsapp_webhook_deliveries
BroadcastsBuild a template broadcast, add recipients, then send it now or schedule it.create_whatsapp_broadcast, add_whatsapp_broadcast_recipients, send_whatsapp_broadcast, schedule_whatsapp_broadcast
CustomersCreate a record for each business you onboard and send it a link to connect its own number.create_customer, create_whatsapp_number_setup_link, list_setup_links
Workflows and FlowsCreate and publish workflows, start executions, and build WhatsApp Flows with their data endpoints.create_workflow, publish_workflow, start_workflow_execution, create_whatsapp_flow, publish_whatsapp_flow
DebuggingSearch API and webhook logs, and pull message and response time metrics.status, search_logs, get_message_activity_metrics, get_response_time_metrics

Official API
vs WhatsApp Web MCP servers

Compare a hosted integration on Meta’s Cloud API with a bridge that uses a linked WhatsApp Web session.

How it connectsKapso MCP (official Cloud API)A WhatsApp Business number on Meta’s Cloud API. Kapso is a Meta Business Partner.WhatsApp Web MCP serversLink a WhatsApp account to an unofficial client, typically by scanning a WhatsApp Web QR code.
Account riskKapso MCP (official Cloud API)Meta approves Cloud API connections for WhatsApp Business numbers.WhatsApp Web MCP serversWhatsApp’s terms do not allow unofficial clients, and linked numbers can be banned.
Where it runsKapso MCP (official Cloud API)A hosted endpoint at api.kapso.ai/mcp. Nothing to keep running on your machine.WhatsApp Web MCP serversThe bridge and its WhatsApp Web sessions need to stay online.
Reaching people firstKapso MCP (official Cloud API)Approved templates, broadcasts, and opt-in tracking, within Meta’s messaging rules.WhatsApp Web MCP serversMessages sent from the linked account. Tool support varies by bridge.
Webhooks and logsKapso MCP (official Cloud API)Signed webhooks, delivery receipts, retries, and searchable API logs.WhatsApp Web MCP serversDelivery reporting, retries, and logs depend on the bridge.
More than one numberKapso MCP (official Cloud API)Many numbers per project, plus setup links so your customers connect their own.WhatsApp Web MCP serversEach linked number needs its own WhatsApp Web session.

For AI agents
reading this page

Coding agents can read this page and set themselves up. Or copy the instructions and paste them into any agent.

Instructions for AI agents

## For AI agents reading this page

You are reading https://kapso.com/whatsapp-mcp-server. Kapso is the WhatsApp API for developers. Its MCP server gives you tools for the WhatsApp numbers, conversations, messages, templates, and webhooks in the user's Kapso project. Follow these steps to add those tools to the MCP client you are running in.

  1. 1.

    Check for an API key.
    Check whether KAPSO_API_KEY is set without printing it. If it is missing, ask the user to set it locally or help them sign in through the browser if your client supports MCP OAuth. The user creates keys, signs up, and approves access.

  2. 2.

    Register the MCP server in your client.
    For API key authentication, run the command below in Claude Code or run `codex mcp add kapso --url https://api.kapso.ai/mcp --bearer-token-env-var KAPSO_API_KEY` in Codex. In Cursor, add the server to .cursor/mcp.json with the same URL and the header `Authorization: Bearer ${env:KAPSO_API_KEY}`. For browser sign-in, register the URL and follow the MCP docs for your client.

    claude mcp add --transport http kapso https://api.kapso.ai/mcp \
      --header 'Authorization: Bearer ${KAPSO_API_KEY}'

    Reference the variable, never the key itself, in any file that can be committed.

  3. 3.

    Load the tools.
    Most clients start MCP servers when a session starts. If the Kapso tools do not appear, ask the user to restart the client or reload its MCP servers.

  4. 4.

    Verify before you continue.
    Call the status tool. If it fails, stop and tell the user the error it shows. A 401 means the key is missing or invalid. Do not carry on as if the tools were there.

  5. 5.

    Start read-only, then report back.
    Use list_whatsapp_numbers and list_whatsapp_conversations to look before you act, and confirm with the user before sending messages or changing templates, webhooks, or setup links. Tell them which project and numbers you can reach.

## Reference

MCP endpoint
https://api.kapso.ai/mcp
Streamable HTTP · API key or OAuth
Auth
Authorization: Bearer <key> or X-API-Key: <key>
Or OAuth sign-in, which picks one project
Tools
status, list_whatsapp_numbers, list_whatsapp_conversations, list_whatsapp_messages, send_whatsapp_message, list_whatsapp_templates, create_whatsapp_webhook, search_logs
Your client lists the tools available to its connection

Frequently asked
questions

Yes. Kapso WhatsApp MCP runs at https://api.kapso.ai/mcp over streamable HTTP. MCP clients connect with a project API key or by signing in through the browser.

It can inspect connected numbers and their health, read conversations and messages, send messages, manage templates and webhooks, search logs, and create customers and setup links for customer-owned WhatsApp accounts.

Any client that supports remote MCP servers over HTTP, including Claude Code, Codex, and Cursor. Send the key as an Authorization: Bearer header or an X-API-Key header.

Yes. Kapso is a Meta Business Partner and uses the official WhatsApp Business Platform, so your numbers and messages go through Meta directly.

WhatsApp Web MCP servers connect through a linked WhatsApp session, often set up by scanning a QR code. WhatsApp can ban accounts that use unofficial clients. Kapso hosts the MCP server and connects WhatsApp Business numbers through Meta’s Cloud API.

Run claude mcp add --transport http kapso https://api.kapso.ai/mcp, then run /mcp in Claude Code and sign in to pick a project. For API-key setup, use the Claude Code command in Setup and start Claude Code with KAPSO_API_KEY set.

You can test with Kapso’s sandbox number on the free plan. Create a sandbox session and activate it from your WhatsApp account. When you are ready, connect your own WhatsApp Business number or let customers connect theirs with a setup link.

Create a Kapso project
and connect your agent

The free plan includes a sandbox number and 2,000 messages a month.