2Chat MCP Server
The 2Chat MCP server lets any AI assistant (Claude, Cursor or any other MCP-Compatible client) send messages to WhatsApp (using your connected number to 2Chat), manage your WhatsApp Business Templates, manage contacts, and more.
| Parameter | Value |
|---|---|
| Server URL | https://mcp.2chat.io/mcp |
| Transport | Streamable HTTP |
Works out of the box with
Both Claude and ChatGPT support remote MCP servers natively — no proxy, no plugin, no API key. Add https://mcp.2chat.io/mcp as a custom connector and sign in with your 2Chat account.
Connect to Claude Code
Using Claude Code? You do not need to touch a config file. Copy the prompt below, paste it into Claude Code, and it adds the server, signs you in and runs a first test.
Install the 2Chat MCP server for me in Claude Code. Run this command: claude mcp add --transport http --scope user 2chat https://mcp.2chat.io/mcp Then give me step by step instructions for how to restart Claude Code, run /mcp to sign in to my 2Chat account in the browser, and then prompt with "Who am I on 2Chat?" which will call the get_who_am_i tool and confirm the connection works.
Authentication
The 2Chat MCP server uses OAuth 2.1 exclusively. There is no API-key option — every client connects through the browser-based sign-in flow.
When you add the server, your client opens a browser, you sign in to your 2Chat account, and the client receives a token automatically. No keys to copy, paste, or rotate.
The server implements:
- Authorization Server Metadata at
https://mcp.2chat.io/.well-known/oauth-authorization-server - Protected Resource Metadata at
https://mcp.2chat.io/.well-known/oauth-protected-resource - Dynamic Client Registration (RFC 7591) — clients register themselves with no manual setup
- Authorization Code flow with PKCE (
S256) - Refresh tokens so your client stays connected
If your client cannot reach the server, sign out of the connector and reconnect — that clears the stale token and triggers a fresh registration.
Configure your client
Claude Desktop / Claude.ai
- Open Settings → Connectors → Add custom connector.
- Set the URL to
https://mcp.2chat.io/mcp. - Save and click Connect — a browser window opens to sign in to 2Chat.
Full walkthrough with screenshots: How to connect 2Chat to Claude.
Claude Code
The fastest way is the Connect to Claude Code card at the top of this page. To do it by hand:
claude mcp add --transport http --scope user 2chat https://mcp.2chat.io/mcp
Then restart Claude Code and run /mcp to sign in to your 2Chat account in the browser. --scope user makes the server available in every project on your machine; drop it to add the server to the current project only.
Cursor
Open Settings → MCP → Add new MCP server, enter the URL https://mcp.2chat.io/mcp, and complete the browser sign-in when prompted.
ChatGPT (custom connector)
In Settings → Connectors → Create, set the MCP server URL to https://mcp.2chat.io/mcp and complete the OAuth sign-in.
Full walkthrough with screenshots: How to connect 2Chat to ChatGPT.
Other MCP clients
| Parameter | Value |
|---|---|
| Server URL | https://mcp.2chat.io/mcp |
| Transport | Streamable HTTP |
| Auth | OAuth 2.1, discovered via /.well-known/oauth-authorization-server |
Any client that follows the MCP authorization spec will discover the auth server, register itself, and run the sign-in flow automatically.
Verify
Once connected, ask your AI assistant:
"List my connected 2Chat WhatsApp channels."
If it responds with your channel list, the connection is working.