Para desenvolvedores e agentes de IA
Conecte o wha.tools ao seu assistente de IA
O WhaTools oferece um servidor Model Context Protocol (MCP) gratuito, para que um assistente de IA possa criar links click-to-chat do WhatsApp, códigos QR e widgets de compartilhamento, validar números de telefone, estimar o custo da API do WhatsApp Business e consultar a tabela de preços e de limites atual: as mesmas ferramentas que este site oferece, rodando localmente no servidor. Somente leitura, sem chave, nada é enviado.
https://wha.tools/api/mcpConfigure no seu cliente
Adicione o servidor uma vez e o seu assistente já poderá chamar as ferramentas dele. Todas as receitas usam o mesmo endpoint acima.
Claude Code
Rode isto uma vez no seu terminal: a CLI guarda o servidor para você.
claude mcp add --transport http wha-tools https://wha.tools/api/mcpClaude Desktop
Adicione em Configurações → Desenvolvedor → Editar configuração (claude_desktop_config.json). A ponte mcp-remote permite que um cliente de desktop alcance um servidor HTTP remoto.
{
"mcpServers": {
"wha-tools": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://wha.tools/api/mcp"]
}
}
}Cursor
Adicione em ~/.cursor/mcp.json (global) ou .cursor/mcp.json (por projeto).
{
"mcpServers": {
"wha-tools": {
"url": "https://wha.tools/api/mcp"
}
}
}VS Code (GitHub Copilot)
Adicione em .vscode/mcp.json no seu espaço de trabalho.
{
"servers": {
"wha-tools": {
"type": "http",
"url": "https://wha.tools/api/mcp"
}
}
}Qualquer outro cliente MCP
Aponte-o para o endpoint como servidor Streamable HTTP (remoto). Nenhum cabeçalho de autenticação é necessário.
https://wha.tools/api/mcpO que o seu assistente pode fazer
8 ferramentas, todas locais e somente leitura. Esta lista é gerada pelo próprio servidor, então sempre corresponde ao que o endpoint anuncia.
generate_whatsapp_link- Generate a WhatsApp click-to-chat (wa.me) link with an optional phone number and pre-filled message. Runs locally; no message is sent.
generate_bulk_whatsapp_links- Generate personalized WhatsApp click-to-chat (wa.me) links for a list of contacts from one message template. Everything uses a single {{…}} syntax: {{field}} placeholders are replaced per contact; {{field|fallback}} supplies a default for empty/missing fields; {{FirstName}} is derived from a name field; and {{option a|option b}} spintax (a group whose first option is not a field) picks one variation per contact (stable per number) so messages are not identical. Returns a JSON array of {phone, message, link}. Runs locally; no message is sent: each link opens WhatsApp with the text pre-filled and a human taps send.
validate_phone_number- Validate and inspect a phone number with libphonenumber: whether it is valid (a real, allocated number) and/or possible (right length), its country, calling code, line type (mobile / landline / VoIP / toll-free / …) and every standard format (E.164, international, national) plus a wa.me link. Runs locally and offline. Does NOT check whether the number is registered on WhatsApp. There is no such API here.
generate_whatsapp_qr- Generate a scannable QR code (as an SVG) for a WhatsApp click-to-chat link with an optional phone number and pre-filled message.
build_whatsapp_share_widget- Build embeddable "Share on WhatsApp" widget HTML (web and email variants) with a link preview card and a pre-filled message. Returns self-contained HTML.
estimate_whatsapp_api_cost- Estimate the monthly WhatsApp Business (Cloud) API cost under Meta's per-message pricing (in effect since 1 July 2025). Given a country/market and monthly volumes of marketing, utility, authentication and (optionally) service messages, returns an itemized breakdown and total in USD. Marketing is always billed; utility and authentication are billed with volume-tier discounts in many markets. As of 1 October 2026 utility is billed even inside the customer-service window (previously free there), and service messages are billed at the utility rate with the first 1,000 per phone number each month free. Pass `service` to include them; omit it to leave service out. Runs locally. This is Meta's platform fee only: a BSP/provider adds its own fee on top, so treat it as a floor, not a quote.
get_whatsapp_rates- Look up Meta's official WhatsApp Business (Cloud) API per-message rates from the site's dated rate card, the same figures the pricing calculator uses, so prefer this over recalling or guessing prices. Give a market to get one row, or omit it for every market in the chosen currency. Returns the current list price per template category (marketing, utility, authentication, and authentication-international where a market has one), the currency, the effective and last-verified dates, the source link and the CC BY licence. Optionally include the published volume-tier thresholds and rates for a single market. This is Meta's platform fee only: a BSP/provider adds its own fee on top, so treat it as a floor. Runs locally.
get_whatsapp_limits- Look up WhatsApp's current limits and rules from the site's dated reference table: group and community size, broadcast lists, message and media/file sizes, character counts, forwarding, calls, Channels, linked devices, and WhatsApp Business app and Business API limits. Each value is single-sourced and dated. Returns the limits (optionally filtered to one area), the last-verified date, the source and the CC BY licence. Prefer this over recalling limits from memory. They change over time. Runs locally.
Descoberta legível por máquinas
Para diretórios, registros e agentes que encontram servidores por conta própria.
- Cartão de servidor MCP
/.well-known/mcp/server-card.jsonO endpoint, a versão do protocolo e a lista de ferramentas (rascunho SEP-1649): como um cliente descobre este servidor automaticamente.
- OpenAPI 3.1
/openapi.jsonDescrição da API HTTP pública (saúde, dados abertos, prévia de link e o ponteiro MCP).
- Catálogo de API
/.well-known/api-catalogConjunto de links RFC 9727 que indexa todos os recursos legíveis por máquina do site.
- llms.txt
/llms.txtÍndice do site em Markdown curado para LLMs e agentes.
- Dados abertos (JSON)
/api/dataA tabela de preços, a tabela de limites e o registro de mudanças de preço sob CC BY 4.0: os mesmos dados que as duas ferramentas de dados retornam.
- Saúde
/api/healthDisponibilidade e versão em execução.
Perguntas frequentes
wa.me, uma imagem QR, HTML de widget ou JSON. Nada é enviado ao WhatsApp; uma pessoa ainda toca em enviar.mcp-remote), Cursor e VS Code, e outros clientes MCP funcionam da mesma forma apontando para o endpoint.