Baatzo MCP server
Let an AI assistant work with your Baatzo workspace: find your templates, send a template message, follow its status, look up and add contacts, and check your credit. It is API v1 over the Model Context Protocol, with the same scopes, limits and error codes. Most apps need only the address: they sign in with Baatzo and you approve them.
View as Markdown Open in ChatGPT Open in Claude
- Address
https://api.baatzo.com/mcp- Transport
- Streamable HTTP, stateless
- Sign in
- OAuth from the app, or
Authorization: Bearerwith an API key - Plans
- Sandbox keys on every plan; live keys on Starter, Growth and Pro
Meta has its own "WhatsApp Business Tools" MCP server for looking into a WhatsApp Business account and debugging it. This one is different: it sends through Baatzo, with Baatzo's consent checks, credit, limits and status webhooks, and it sees only your Baatzo workspace.
Install in one click
These open the app with Baatzo's address filled in. The app shows what it will add before it adds anything, then asks you to sign in with Baatzo.
Add to Cursor Add to VS Code Open Claude's connectors
Claude has no link that fills the address in: follow the steps for Claude and paste this:
https://api.baatzo.com/mcp
Sign in with OAuth
Give your app the address https://api.baatzo.com/mcp and nothing else. Claude, ChatGPT, Cursor and other apps that follow the MCP authorization specification then open Baatzo in your browser. Sign in, choose the workspace and what the app may do, accept the statement and press Allow. The app is connected; there is no key to copy.
- Only an Owner or Admin with two-step verification can approve, in a workspace on the Starter, Growth or Pro plan: the same rule as creating a live key. Template Studio workspaces use a sandbox key instead.
- The app gets the permissions you tick, from
messages:send,messages:read,contacts:readandcontacts:write, in that one workspace only. It sends to Indian numbers only, and never to the sandbox. - It stays connected until you remove it in Settings, Developers, Connected apps, or it goes 30 days unused. Its access lasts an hour at a time and renews itself.
- What it does is recorded in your audit log as the connected app, with the person who approved it.
For app builders: Baatzo publishes protected resource metadata at /.well-known/oauth-protected-resource/mcp (a 401 from /mcp names it in WWW-Authenticate) and authorization server metadata at /.well-known/oauth-authorization-server. Register with POST /oauth/register (public clients only, https redirect URIs or http to localhost, 127.0.0.1 or [::1]), then use the authorization code grant with PKCE (S256) and resource=https://api.baatzo.com/mcp. Refresh tokens rotate on every use; presenting a used one again disconnects the app. POST /oauth/revoke disconnects it from your side.
Or use a key
An Owner or Admin makes a key in Settings, Developers. Start with a sandbox key (bz_test_): sends go to Baatzo's simulator, never to WhatsApp, and are never charged (see Sandbox). A sandbox key holds the message scopes only, so the contact tools need a live key. Use a live key (bz_live_) when you are ready to send for real.
Give the key only the scopes its tools need. The assistant can do whatever the key allows, so a key for an assistant that should only read gets messages:read and contacts:read.
Keep the key in an environment variable or your tool's secret store, never in a file you share or commit. The examples use BAATZO_KEY.
Tools
| Tool | Scope | Does |
|---|---|---|
list_templates | messages:read | Templates with their category, status, the variables each needs and whether the API can send it. status: approved (default) or all. |
send_template_message | messages:send | The body of POST /v1/messages plus idempotency_key, required: a new one for each message, the same one only to retry the same send. |
get_message_status | messages:read | GET /v1/messages/{id}: the status, the charge and a plain explanation of any error. |
list_contacts | contacts:read | Contacts newest first, with their marketing and utility consent. search matches a name or a number. |
upsert_contact | contacts:write | Adds a contact by number in E.164, or updates the name and custom fields of the contact with that number. It never records consent. |
get_credit_balance | messages:read | Your Baatzo message credit, in paise and rupees. Meta bills its own charges to you directly. |
Every tool checks its input strictly (an unknown field is refused) and answers with structured content. A refusal comes back as a tool error whose structured content is { "error": { "code", "message", "details" } }, with the API's codes.
Claude Code
claude mcp add --transport http baatzo https://api.baatzo.com/mcp
Then run /mcp in Claude Code, choose baatzo and sign in. To use a key instead:
claude mcp add --transport http baatzo https://api.baatzo.com/mcp \ --header "Authorization: Bearer $BAATZO_KEY"
Or in .mcp.json at the root of a project, with the key taken from your environment:
{
"mcpServers": {
"baatzo": {
"type": "http",
"url": "https://api.baatzo.com/mcp",
"headers": { "Authorization": "Bearer ${BAATZO_KEY}" }
}
}
}
Claude Desktop and claude.ai
- Open Customize, Connectors, press Add and choose Add custom connector. On a Team or Enterprise plan an Owner adds it first, in Organization settings, Connectors, Add, Custom, Web.
- Name it Baatzo and give the address
https://api.baatzo.com/mcp. - Leave the detected sign-in settings as they are (Claude registers itself) and press Add.
- Press Connect, then sign in and approve on the Baatzo page that opens.
Or, with a key, through mcp-remote, which passes the header. In claude_desktop_config.json (Settings, Developer, Edit config), then restart Claude Desktop:
{
"mcpServers": {
"baatzo": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.baatzo.com/mcp", "--header", "Authorization:${BAATZO_AUTH}"],
"env": { "BAATZO_AUTH": "Bearer bz_test_K7Q2M9XA_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }
}
}
}
Replace the example with your own key. Write the header as Authorization:${BAATZO_AUTH} with no space, as shown: some versions of Claude Desktop split arguments at spaces.
Cursor
In ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project), give the address alone and Cursor asks you to sign in:
{
"mcpServers": {
"baatzo": { "url": "https://api.baatzo.com/mcp" }
}
}
Or with a key:
{
"mcpServers": {
"baatzo": {
"url": "https://api.baatzo.com/mcp",
"headers": { "Authorization": "Bearer ${env:BAATZO_KEY}" }
}
}
}
VS Code
Press Add to VS Code above, or put this in .vscode/mcp.json; VS Code then asks you to sign in:
{
"servers": {
"baatzo": { "type": "http", "url": "https://api.baatzo.com/mcp" }
}
}
ChatGPT and OpenAI
In ChatGPT's developer mode, create a connector with the address https://api.baatzo.com/mcp and OAuth as its sign-in, then approve it on the Baatzo page that opens. From your own code, OpenAI's Responses API can call the server with a key in the header:
curl https://api.openai.com/v1/responses \
-H "Authorization: Bearer $OPENAI_API_KEY" -H "Content-Type: application/json" \
-d '{
"model": "gpt-5",
"tools": [{
"type": "mcp",
"server_label": "baatzo",
"server_url": "https://api.baatzo.com/mcp",
"headers": { "Authorization": "Bearer '"$BAATZO_KEY"'" },
"require_approval": { "always": { "tool_names": ["send_template_message", "upsert_contact"] } }
}],
"input": "Which of my approved templates can I send through the API?"
}'
Keep require_approval on the tools that send or change something, so a person confirms each one.
Errors and limits
- A missing, unknown or revoked key, or an access token that has expired or was revoked: HTTP
401withunauthenticatedand aWWW-Authenticateheader naming the protected resource metadata, before any tool runs. An app connected with OAuth then renews its access or asks you to sign in again. A browser session cookie is never accepted. - Each tool call checks the key's scope (
forbidden,details.reasonmissing_scope) and takes from the key's limits: tools that send or change something share the send limit (10 a second, bursts to 20), the others the read limit (20 a second). Over it:rate_limitedwithdetails.retryAfterSeconds. - An id from another workspace is
not_found. - Every other code is in the API v1 error list.
- The server is stateless:
GETandDELETEon/mcpanswer405, and there is no session to keep.