2Chat MCP server for AI agents

Live

API KEY

WHATSAPP MESSAGING

Communication

2Chat gives your agent WhatsApp, SMS, and call messaging: read conversations, send and schedule WhatsApp and SMS messages, manage contacts, tags, and assignments, and run WhatsApp groups.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
2Chat
agent · Acme Q3
Run
Send the delivery confirmation to this customer on WhatsApp.
S
twochat_whatsapp_message_send
194ms
Messaging agent
Sent the delivery confirmation as a WhatsApp message from the connected number.
Sources: 2Chat WhatsApp number
twochat
1 message
18:29
Message Claude...

Tools your messaging agent reaches for on 2Chat, scoped per user.

CALL ANY TOOL
60 tools for WhatsApp messaging in 2Chat: read and send WhatsApp, WhatsApp Business API, and SMS messages, schedule messages, manage contacts and tags, assign conversations, and run groups.
twochat_call_get
Get call
Get the full details of one phone call. Returns call metadata, cost breakdown and agent information. Use twochat_call_history_list to find call UUIDs.
Parameters
Name
Type
Required
Description
call_uuid
string
Required
Call record UUID (starts with CDR). Example: CDR8b3e7a1f-6c94-4d52-ae17-5f2b9d4c8e63.
twochat_call_history_list
List call history
twochat_contact_create
Create contact
twochat_contact_delete
Delete contact
twochat_contact_get
Get contact
twochat_contact_update
Update contact
twochat_contacts_search
Search contacts
twochat_conversation_assign_team
Conversation assign team
twochat_conversation_assign_user
Conversation assign user
twochat_conversation_tag_add
Add conversation tag
twochat_conversation_tag_remove
Remove conversation tag
twochat_conversation_tags_get
Get conversation tags
twochat_conversation_unassign_user
Conversation unassign user
twochat_scheduled_message_cancel
Cancel scheduled message
twochat_scheduled_message_send_now
Scheduled message send now
twochat_scheduled_messages_list
List scheduled messages
twochat_sms_conversations_list
List sms conversations
twochat_tag_create
Create tag
twochat_teams_list
List teams
twochat_waba_conversation_messages_list
List waba conversation messages
twochat_waba_conversation_window_get
Get waba conversation window
twochat_waba_message_send
Send waba message
twochat_waba_templates_list
List waba templates
twochat_webhook_delete
Delete webhook
twochat_whatsapp_conversations_list
List whatsapp conversations
twochat_whatsapp_group_description_set
Set whatsapp group description
twochat_whatsapp_group_get
Get whatsapp group
twochat_whatsapp_groups_list
List whatsapp groups
twochat_whatsapp_message_schedule
Whatsapp message schedule
twochat_whatsapp_number_get
Get whatsapp number

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// 2Chat tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["twochat"], toolNames: [
    "twochat_whatsapp_number_check",
    "twochat_whatsapp_message_send",
    "twochat_conversation_tag_add"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Check this number is on WhatsApp, send the delivery confirmation, and tag the conversation as shipping" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["twochat"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Check this number is on WhatsApp, send the delivery confirmation, and tag the conversation as shipping" }],
  tools,
});

// Execute the tool call with the user's vaulted 2Chat API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["twochat"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Check this number is on WhatsApp, send the delivery confirmation, and tag the conversation as shipping" }],
  tools,
});

// Tool call runs with the user's vaulted 2Chat API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["twochat"] }, pageSize: 100,
});

const agent = new Agent({
  name: "messaging_agent",
  model: "gemini-2.5-pro",
  instruction: "2Chat tools scoped to this user",
  tools,
});

await agent.run("Check this number is on WhatsApp, send the delivery confirmation, and tag the conversation as shipping");
Try these prompts
Copy any prompt into your agent. Each maps directly to a 2Chat tool. Click to copy, paste into your agent, done.
Messages
Copy the prompt
Copied
Send this delivery confirmation to the customer on WhatsApp.
Copy the prompt
Copied
Send an SMS from my 2Chat number to this phone.
Copy the prompt
Copied
Schedule this reminder on WhatsApp for tomorrow at 9am.
Conversations
Copy the prompt
Copied
Show the latest conversations on my WhatsApp number.
Copy the prompt
Copied
Assign this conversation to the support team.
Copy the prompt
Copied
Tag this conversation as billing.
Contacts and groups
Copy the prompt
Copied
Check whether this phone number is on WhatsApp.
Copy the prompt
Copied
Create a contact for this customer.
Copy the prompt
Copied
Create a WhatsApp group for the project team.
SEE HOW AUTH WORKS
Each user connects their own 2Chat API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
2Chat
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
2Chat
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
2Chat
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
2Chat
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other communication and customer support connectors.
Engineering Teams
Slack triage
Polls Slack for new messages, classifies bugs and support requests with a LangGraph router, files GitHub issues or Zendesk tickets, and confirms in the thread.
Support and Ops Teams
Support ticket automation agent
Fetches new Zendesk tickets, drafts a reply from Notion knowledge base articles, digests what it cannot answer to Slack, and archives the rest, acting as the support agent rather than a shared API key.
Test other agents
See the same per-user auth pattern across other communication and customer support connectors.
ENGINEERING
Slack triage agent
Classify new Slack messages as bugs or support requests, file the GitHub issue or Zendesk ticket, and reply in the thread.
SUPPORT
Support ticket automation (Google ADK)
Fetch, annotate, and archive Zendesk tickets with Notion context, digesting anything it cannot answer to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared 2Chat API key looks fine in a demo. In production every message looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
2Chat today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access 2Chat as the user or through a shared API key?
As the user. Each user connects their own 2Chat API key once, and Scalekit sends it with every call. Audit logs attribute every message to that user, not a shared service account.
Where is the 2Chat API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in 2Chat?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example twochat_whatsapp_messages_list and twochat_contacts_search without twochat_whatsapp_message_delete, which deletes a message from 2Chat and from WhatsApp. 6 of the 60 tools are destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes 2Chat access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent message people outside the 24-hour window?
twochat_waba_conversation_window_get checks whether the 24-hour customer service window is open. twochat_waba_message_send then sends an approved template, which can start a conversation or follow up after 24 hours, or free-form text while the window is open.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""twochat"": {
""url"": ""https://mcp.scalekit.com/twochat"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.twochat]
url = ""https://mcp.scalekit.com/twochat""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""twochat"": {
""url"": ""https://mcp.scalekit.com/twochat"",
""type"": ""http""
}
}
}