Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

2Chat plugin for Claude

Connect Claude Code, claude.ai and Cowork to 2Chat, the business messaging platform for WhatsApp, WhatsApp Business API (WABA), SMS and phone calls. Read, summarize and reply to customer conversations, manage WABA templates and contacts, review phone calls, and manage virtual phone numbers, all through the hosted 2Chat MCP server.

Installation

From the Claude directory

Once listed, install 2Chat from the plugin directory in claude.ai, or in Claude Code with /plugin and search for 2Chat.

From this repository (Claude Code)

/plugin marketplace add 2ChatCo/2chat-claude-plugin
/plugin install 2chat@2chat-plugins

or in one step:

/plugin install 2chat --marketplace 2ChatCo/2chat-claude-plugin

From a shell, claude plugin marketplace add 2ChatCo/2chat-claude-plugin followed by claude plugin install 2chat@2chat-plugins does the same. Add --scope project to share the plugin with a team through .claude/settings.json.

Signing in

The plugin's MCP server requires a 2Chat login. After installing, run /mcp in Claude Code, pick 2chat and complete the sign-in in your browser, or run claude mcp login 2chat. Authorize with the 2Chat account you want Claude to work with. No API key is needed and nothing should be pasted into chat. Headless runs (claude -p, Agent SDK) cannot complete the browser flow, so sign in from an interactive session first.

Requires a 2Chat account at https://2chat.co.

What you get

  • MCP server 2chat at https://mcp.2chat.io/mcp (Streamable HTTP, OAuth 2.1).
  • Skill 2chat: how to use the 2Chat tools well (discover channels before acting, E.164 phone numbers, the WABA 24-hour window, confirm every send and every destructive action).

Tools

Area Tools
Account get_who_am_i, get_billing_info, list_account_users
WhatsApp get_whatsapp_numbers, get_whatsapp_number, connect_whatsapp_number, disconnect_whatsapp_number, check_if_number_is_on_whatsapp, list_whatsapp_conversations, get_whatsapp_messages, send_whatsapp_message, list_whatsapp_groups, list_whatsapp_group_participants, get_whatsapp_group_messages, set_whatsapp_text_status, set_whatsapp_image_status, set_whatsapp_video_status, list_whatsapp_catalog_products
WhatsApp Business API get_waba_numbers, get_waba_number, get_waba_templates, get_waba_template, create_waba_template, delete_waba_template, sync_waba_templates, calculate_waba_template_cost, get_waba_conversation_window, send_waba_message, get_waba_messages, get_waba_message, get_waba_received_messages, list_waba_conversations, subscribe_to_waba_webhook
SMS list_sms_channels, get_sms_channel, list_sms_conversations, get_sms_messages, get_sms_message, send_sms
Contacts list_contacts, search_contacts, get_contact, create_contact, update_contact, delete_contact
Phone numbers get_number_regions, get_number_cities, get_did_types, get_number_requirements, search_number_groups, get_available_numbers, reserve_number, list_number_reservations, cancel_number_reservation, purchase_number
Voice list_virtual_numbers, delete_virtual_number, get_call_history, get_call_details, get_call_price

Every tool carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint), so Claude can tell a lookup from a send or a deletion before calling it. Forty-one of the sixty tools are read-only.

Example prompts

  • "Which 2Chat account am I connected to?"
  • "Summarize my most recent WhatsApp conversations."
  • "Show the WhatsApp Business templates approved on my number."
  • "Reply to the last message from +14155550123 and tell them the order has shipped."
  • "Show the phone calls I received yesterday on my virtual numbers."

Authentication and network

The plugin connects only to https://mcp.2chat.io. Authentication is OAuth 2.1 authorization code with PKCE (S256) and dynamic client registration; Claude's MCP client handles the flow.

Network endpoints:

  • https://mcp.2chat.io/mcp: hosted MCP (Streamable HTTP)
  • https://mcp.2chat.io/authorize, /token, /register, /revoke: OAuth 2.1 + DCR
  • https://mcp.2chat.io/.well-known/oauth-authorization-server, /.well-known/oauth-protected-resource: discovery metadata
  • https://auth.2chat.io: human sign-in and consent screen during authorization

Credentials: a 2Chat account. The MCP server exchanges the grant for a token scoped to that account and sends it as Authorization: Bearer on /mcp. The plugin stores no API key, ships no hooks, commands, agents or scripts, and requests no filesystem or shell access. Tools act only on channels and data the signed-in user can already see in 2Chat.

Messaging tools deliver real messages to real phone numbers and can incur carrier or Meta charges. The bundled skill instructs Claude to confirm every send, status post, deletion, disconnection and purchase with the user before calling the tool, and never to send bulk or unsolicited messages.

Repository layout

.claude-plugin/plugin.json       plugin manifest
.claude-plugin/marketplace.json  self-hosted marketplace "2chat-plugins" listing this plugin
.mcp.json                        remote MCP server declaration
skills/2chat/SKILL.md            usage skill
assets/logo.png

License

MIT for the files in this plugin. Use of the hosted MCP server is governed by the 2Chat terms of service and privacy policy.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors