Cosend

WhatsApp Business 团队收件箱,包含 25 个工具:读取聊天、在现有对话中回复、向 Meta 提交模板、检查并部署自动化。支持 OAuth,所有套餐均可使用,包括 Free。

托管 MCP 服务器

npx add-mcp 'https://mcp.cosend.app/mcp'

可安装到 Claude Code、Codex、Cursor 等客户端

文档

MCP server

How to connect an MCP client to your WhatsApp number: the endpoint, OAuth sign-in, setup for Claude Code, Claude Desktop and other clients, and the scopes.

Cosend runs a remote MCP server at https://mcp.cosend.app/mcp over Streamable HTTP. It exposes your WhatsApp number as tools that any MCP-capable agent can call. For the full list of tools, see MCP.

Endpoint

https://mcp.cosend.app/mcp

The server keeps no session state, so it needs no session header or handshake. It is an OAuth 2.1 resource server: your MCP client signs you in the first time it connects.

Claude Code

claude mcp add --transport http cosend https://mcp.cosend.app/mcp

Then run /mcp in Claude Code to complete the OAuth sign-in. claude mcp list shows the server as needing authentication while the sign-in is pending.

To install the server for yourself only, or for one project:

claude mcp add --transport http cosend https://mcp.cosend.app/mcp --scope user
claude mcp add --transport http cosend https://mcp.cosend.app/mcp --scope project

To share the configuration with your team, commit it in .mcp.json:

{
  "mcpServers": {
    "cosend": {
      "type": "http",
      "url": "https://mcp.cosend.app/mcp"
    }
  }
}

Claude Desktop and claude.ai

Go to Settings → Connectors → Add custom connector and paste the URL. Your browser opens the OAuth sign-in.

On a Claude Team or Enterprise plan, an owner adds the connector for the whole team before members can enable it. Leave the advanced settings empty: Cosend supports Client ID Metadata Documents and dynamic client registration, so the client registers itself. The advanced settings are for teams that register clients in advance.

Other clients

Any MCP client that supports Streamable HTTP with OAuth connects to the same URL.

{
  "mcpServers": {
    "cosend": { "type": "streamable-http", "url": "https://mcp.cosend.app/mcp" }
  }
}

Scopes on the consent screen

The consent screen offers 22 scopes, and what you approve is exactly what the API enforces. They are workspace API key scopes, plus the two campaign scopes, which only people and AI apps hold.

ScopeGrantsRisk
messages:readConversations and messagesLow
messages:writeSending WhatsApp messagesHigh: messages go to your customers
contacts:readContacts and their detailsLow
contacts:writeCreating and updating contacts, tags and consentMedium
templates:readTemplates and their review statusLow
templates:writeDrafting templates and submitting them to MetaMedium: templates affect your quality rating
automations:readAutomations, versions and validation reportsLow
automations:writeCreating, updating, deploying and enabling automationsHigh: automations send messages to your customers
runs:readRun history and step-by-step recordsLow
runs:writeStarting and canceling runsMedium
connectors:read / connectors:writeConnected accounts in other servicesMedium: data in other services
usage:readUsage and billing totalsLow
members:readThe workspace’s members and their rolesLow
billing:readYour plan and billing detailsLow
settings:readThe workspace’s data policy and setup progressLow
connections:readYour WhatsApp numbers, their settings and business profilesLow
connections:writeChanging a number’s settings, display name and business profile, each after you approve its preview, and refreshing a number’s state from MetaMedium: customers see the business profile
approvals:readThe actions waiting for a person’s decisionLow
approvals:writeHolding an action for a person’s decisionLow
campaigns:readWhatsApp campaigns and what each one sentLow
campaigns:writeSetting up campaigns for your saved audiences and stopping them; each send or schedule waits for your approval of its previewHigh: campaigns message many customers

Every scope is selected when the consent screen opens. Keep only the ones the agent needs.

Your AI app acts with your own role in the workspace. The scopes that change automations, integrations and numbers, and the billing and campaign scopes, go to owners and admins.

Campaigns are on Starter and above. An AI app lists your saved audiences and campaigns, sets up and changes drafts, previews a campaign, and sends or schedules it once you approve that preview. Connected Cosend before campaigns arrived? Remove Cosend in your AI app and add it again to switch on the campaign tools.

Connected AI apps

Settings › Connected AI apps in the dashboard lists the AI apps connected to your workspace, who connected each, what it may do and when it was last used. Owners and admins see every app, and a member sees the ones they connected. Remove ends an app’s access at once. AI platforms that need a registered client sign in with one Cosend registers for them, on the same consent screen.

Blocked customers

An AI app cannot send to a customer who is blocked on a number. Block in Cosend is per number and separate from blocking in WhatsApp itself, which Meta manages.

Scopes reserved for people and API keys

These scopes are granted to people and API keys only, so an agent holds only what you approve. Connecting or disconnecting a WhatsApp number is a person’s step too, through Meta’s Embedded Signup: the agent can give you a setup link for it.

ScopeReason
keys:writeAPI keys are created in the dashboard, so every key stays visible, revocable and audited
runtime:proxyThe Runtime API accepts connection keys only, because each Graph request names its WhatsApp number in the path and a connection key fixes that number
Wildcard scopesEach scope covers one area, as the MCP specification’s security guidance recommends

Notifications and webhook endpoints are managed through the REST API and the dashboard, so their scopes live there rather than on the consent screen.

Plans

The MCP server is included on every plan, including Free. Messages, automation runs and AI conversations sent through the MCP server count toward your plan’s allowances. See pricing.