2Chat MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with 2Chat MCP or direct API to send WhatsApp and SMS messages, manage contacts, organize tags, and review conversations through natural language.

2Chat MCP logo2Chat MCP
Dcr Oauth

2Chat MCP is a hosted messaging service for WhatsApp, SMS, voice numbers, contacts, tags, and conversations. It provides one managed interface for connecting business communications to AI workflows.

75 Tools

Try 2Chat MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
2Chat MCP
Try asking
TOOLS

Supported Tools

Every 2Chat MCP action and event your agent gets out of the box.

Add tag to conversation

Put an existing tag on a conversation.

Assign conversation to team

Assign a WhatsApp or WABA conversation to a team of the account, so every member can open it.

Assign conversation to user

Assign a WhatsApp or WABA conversation to a user of the account, as in the live chat.

Calculate waba template cost

Calculate the cost of sending a WABA template message for a given plan, country, and template type.

Cancel number reservation

Cancel an active virtual phone number reservation, releasing the number back into the available pool.

Check if number is on whatsapp

Check whether a single phone number has a WhatsApp account, so the user does not message a number that cannot receive WhatsApp.

Connect whatsapp number

Bring a WhatsApp Web number connected to 2Chat online and generate a QR code for authentication.

Create contact

Create a new contact in your 2Chat account.

Create conversation note

Add an internal note to a WhatsApp or WABA conversation.

Create tag

Create a tag in the 2Chat account and, optionally, put it on a conversation in the same call.

Create waba template

Create a WABA (WhatsApp Business API) message template and submit it to WhatsApp for review.

Delete contact

Permanently delete a contact from your 2Chat account.

Delete tag

Delete a tag and remove it from every conversation that has it.

Delete virtual number

Delete a virtual phone number from your 2Chat account.

Delete waba template

Delete a WABA message template from the 2Chat account and from the messaging provider (Meta or Gupshup).

Disconnect whatsapp number

Take a WhatsApp Web number connected to 2Chat offline without removing it from 2Chat.

Get available numbers

Get specific available virtual phone numbers within a number group that you can reserve and purchase.

Get billing info

Get current account billing, plan limits, and API usage for the authenticated account.

Get call details

Get full details of a single call by its CDR UUID.

Get call history

Get call detail records (CDRs) from your 2Chat account, optionally filtered.

Get call price

Estimate the per-minute outbound call price to a destination phone number.

Get contact

Retrieve a single contact by its UUID.

Get conversation assignment

Get the user and the team a WhatsApp or WABA conversation is assigned to.

Get conversation tags

Get the tags a conversation has.

Get did types

List all available DID (Direct Inward Dialing) number types for purchasing virtual phone numbers.

Get number cities

Get available cities for a given country, optionally filtered by region, to browse virtual phone numbers for purchase.

Get number regions

Get available regions for a given country to browse virtual phone numbers for purchase.

Get number requirements

Get regulatory requirements for purchasing virtual phone numbers in a specific country.

Get sms channel

Get the details/status of a single SMS channel owned by your account.

Get sms message

Get a single SMS message by its UUID.

Get sms messages

Get the SMS thread (inbound + outbound merged, oldest -> newest) between an SMS channel and a contact.

Get waba ads report

Report how many WhatsApp conversations each Meta Click-to-WhatsApp ad started on the account's WABA numbers, day by day.

Get waba conversation window

Check whether the WhatsApp 24-hour customer service window is open for a contact before sending a free-form message.

Get waba message

Get a single WABA (WhatsApp Business API) message by its UUID, within the conversation it belongs to.

Get waba messages

Get WABA (WhatsApp Business API) messages on one of your numbers, newest first, optionally scoped to a single contact.

Get waba number

Get full details of a single WABA (WhatsApp Business API) number by its UUID.

Get waba numbers

List WABA (WhatsApp Business API) numbers connected to the account.

Get waba received messages

Get the last 10 messages received on one of your WABA (WhatsApp Business API) numbers, across every conversation.

Get waba template

Get a single WABA template by UUID, including the variables required to send it and a ready-to-copy example payload.

Get waba templates

List WABA message templates for the account, optionally filtered by phone number.

Get whatsapp group messages

Get messages from a WhatsApp group.

Get whatsapp messages

Get WhatsApp Web messages exchanged through a connected number, optionally scoped to a specific contact.

Get whatsapp number

Get full details of a single connected WhatsApp Web number (channel) by UUID.

Get whatsapp numbers

Get all WhatsApp numbers connected to the account via QR-code connection.

Get who am i

Returns information about the authenticated user.

List account teams

List the teams of the authenticated account.

List account users

List ACTIVE users in the authenticated account.

List contacts

List contacts in your 2Chat account, optionally filtered by connected channel.

List number reservations

List all active virtual phone number reservations for your 2Chat account.

List sms channels

List the SMS channels (numbers) on your account.

List sms conversations

List the conversations (distinct contacts with their latest message) on an SMS channel, newest first.

List tags

List the tags of the 2Chat account, page by page.

List virtual numbers

List virtual phone numbers (VoIP) connected to your 2Chat account.

List waba conversations

List the conversations of a WABA (WhatsApp Business API) channel, most recent activity first.

List whatsapp catalog products

List products from a WhatsApp Business catalog visible to a connected WhatsApp Web number.

List whatsapp conversations

List WhatsApp Web conversations (sessions) for a connected channel, ordered by most recent activity.

List whatsapp group participants

List participants of a WhatsApp group.

List whatsapp groups

List WhatsApp groups visible to a connected number.

Purchase number

Purchase virtual phone numbers for your 2Chat account: one specific number, or every number you have reserved.

Remove tag from conversation

Take a tag off a conversation without deleting the tag.

Reserve number

Reserve a virtual phone number before purchasing it.

Search contacts

Search contacts in your 2Chat account by name or phone number.

Search conversations

Search all conversations in your 2Chat account by contact name, phone number, or message text.

Search number groups

Search for available number groups (catalogs of virtual phone numbers you can purchase) by country, region, city, or DID type.

Send sms

Send an SMS message through a 2Chat SMS channel.

Send waba message

Send one WABA (WhatsApp Business API) message to one recipient the user named, from a WABA number connected to the user's 2Chat account.

Send whatsapp message

Send a WhatsApp message through a 2Chat WhatsApp Web channel.

Set whatsapp image status

Set an ephemeral image status (Story-style) on a connected WhatsApp number.

Set whatsapp text status

Set an ephemeral text status (Story-style) on a connected WhatsApp number.

Set whatsapp video status

Set an ephemeral video status (Story-style) on a connected WhatsApp number.

Subscribe to waba webhook

Subscribe to a WABA (WhatsApp Business API) event, so 2Chat calls your URL when it happens.

Sync waba templates

Trigger a background sync of WABA templates from the provider for a given number.

Unassign conversation

Remove the assigned user, the assigned team, or both from a WhatsApp or WABA conversation.

Update contact

Update an existing contact.

Update tag

Rename a tag or change its color.

SETUP GUIDE

Connect 2Chat MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["_2chat_mcp"],
  mcp: true,
});
Create a session scoped to 2Chat MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Send a WhatsApp message to +15551234567 saying the delivery arrives tomorrow",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a 2Chat MCP request
SETUP GUIDE

Connect 2Chat MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["_2chat_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to 2Chat MCP
3

Run 2Chat MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Send a WhatsApp message to +15551234567 saying the delivery arrives tomorrow" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the 2Chat MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native 2Chat MCP Integration

  • Supports both 2Chat MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for sending messages, managing contacts, organizing tags, and querying conversations

Managed Auth

  • Connect your own DCR OAuth credentials without handling tokens in agent code
  • Central place to manage, scope, and revoke 2Chat MCP access
  • Per user and per environment credentials instead of hard-coded secrets

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access 2Chat MCP
  • Scoped, least privilege access to 2Chat MCP resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use 2Chat MCP with any AI Agent Framework

Choose a Framework you want to connect 2Chat MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with 2Chat MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every 2Chat MCP tool your agent needs.Free to start.

Start building