TimelinesAIStart free trial

TimelinesAI WhatsApp Business API MCP Server for Claude

Stay in Claude. Connect it to TimelinesAI to read your WhatsApp Business API chats, reply to customers, send approved templates, and assign and label chats for your team.

There is no software to install, no server to manage, and no password to share. Claude can only do what your TimelinesAI role allows.

What the connector can do

  • Read chats, message history, message status and reactions across your WhatsApp Business API numbers
  • Reply with free text while the customer’s 24-hour window is open
  • Send Meta-approved templates, and start new chats with a template
  • Assign, unassign, open, close, rename and mark chats read or unread, and add or remove labels
  • Add internal comments on messages, and use your team’s saved quick replies
  • Search messages, find chats that came from a click-to-WhatsApp ad, and read account analytics

What you need

  • A TimelinesAI account. New accounts start with a 10-day free trial, no credit card required.
  • At least one WhatsApp Business API number connected to your workspace. New to the WhatsApp Business API? Connect and activate a WhatsApp Business number in Meta Business Portfolio.
  • At least one approved template, if you want Claude to start new chats or message customers outside the 24-hour window.

How to set up

Claude on the web, desktop or mobile

  1. Step 1: Add a custom connector.

    In Claude, open Settings → Connectors and choose Add custom connector. Name it TimelinesAI WhatsApp Business API and paste https://mcp.services.timelines.ai/mcp/waba.

  2. Step 2: Sign in with TimelinesAI.

    Claude opens the TimelinesAI login page. Sign in, or create an account.

  3. Step 3: Approve access.

    Review the permissions on the “Authorize timelines-mcp?” page and click Authorize.

Claude Code

  1. Step 1: Add the server.

    Run claude mcp add --transport http timelinesai-business-api https://mcp.services.timelines.ai/mcp/waba in your terminal.

  2. Step 2: Authenticate.

    Run /mcp, choose timelinesai-business-api and select Authenticate. Sign in with TimelinesAI and click Authorize.

Your first question

Try “List my WhatsApp Business API numbers” or “Show chats that are waiting for a reply”.

Connection details

SettingValue
MCP server URLhttps://mcp.services.timelines.ai/mcp/waba
TransportStreamable HTTP
Sign-inOAuth 2.1 with PKCE (S256) and dynamic client registration
Authorization serverhttps://mcp.services.timelines.ai
Scopesopenidchats:readchats:writemessages:readmessages:writelabels:readlabels:writeaccounts:readworkspace:readtemplates:read

Tools (39)

Read tools only look at data. Write tools change a chat inside TimelinesAI. Sensitive write tools send something your customer sees, and template sends are charged by Meta.

ToolWhat it doesAccess
waba_accountsLists the WhatsApp Business API numbers you can send fromRead
waba_list_chatsLists the chats you can see, with filters (for example, by phone number)Read
waba_chat_detailsShows one chat: whether the 24-hour window is open, the assignee, labels and the sending numberRead
waba_chat_historyShows the messages in a chat, newest firstRead
waba_message_detailsShows one message, including the reason if it failedRead
waba_templatesLists the message templates you can useRead
waba_template_detailsShows one template: its content, variables, status and the numbers it can be sent fromRead
workspace_teamLists teammates, so a chat can be assigned to one of themRead
waba_chat_openReopens a closed chatWrite
waba_chat_closeCloses a chatWrite
waba_chat_assignAssigns a chat to a teammateWrite
waba_chat_unassignRemoves the assignee from a chatWrite
waba_chat_set_labelAdds a label to a chatWrite
waba_chat_remove_labelRemoves a label from a chatWrite
waba_chat_send_messageSends a free-text reply in an existing chat, only while the 24-hour window is openSensitive write
waba_chat_send_templateSends an approved template in an existing chatSensitive writeMeta charges for templates
waba_start_chatStarts a new chat with a phone number using an approved templateSensitive writeMeta charges for templates
waba_message_reactAdds or removes an emoji reaction on a messageSensitive writeThe customer sees it
waba_message_status_historyShows a message’s sending steps with times, and why a delivery failedRead
waba_message_reactionsShows who reacted to a message and with which emojiRead
waba_message_comment_listLists the internal comments on a messageRead
waba_message_comment_createAdds an internal comment on a message (the contact never sees it)Write
waba_message_comment_updateReplaces the text of your own commentWrite
waba_message_comment_deleteDeletes your own comment. It cannot be undone, so Claude asks firstWrite
quick_reply_listLists your team’s saved quick repliesRead
quick_reply_detailsShows one quick reply and its textRead
quick_reply_createSaves a new quick replyWrite
quick_reply_updateChanges a quick replyWrite
quick_reply_deleteDeletes a quick reply for everyone it is shared withWrite
waba_account_detailsShows one WhatsApp Business API number: status, owner and phone numberRead
waba_account_analyticsShows messages sent and delivered per day for a date range, optionally by country or pricing categoryRead
waba_account_analytics_resultFetches an analytics result that was still pendingRead
workspace_meShows who is signed in, with their role and teamRead
waba_chat_renameRenames a chat in TimelinesAI (not the contact’s WhatsApp name)Write
waba_chat_mark_readMarks a chat read in the inbox (the contact is not told)Write
waba_chat_mark_unreadMarks a chat unread in the inboxWrite
message_searchFinds messages by their text across the chats you can see, 20 per pageRead
waba_chats_by_adLists chats that came from a Meta click-to-WhatsApp adRead
get_more_toolsLets Claude check the server for additional tools; changes nothingRead

Every tool is labeled as read-only or as making changes, so Claude can ask you to confirm before a write runs.

Analytics figures cover every number on the same WhatsApp Business Account, not only the one named. Day buckets use Meta’s timezone.

Quick replies are saved replies for WhatsApp Business API chats (free text, inside the 24-hour window). They are not message templates.

Tool inputs

Every tool returns the JSON response of the TimelinesAI API for that action. Required inputs are in bold. Claude gets ids from the list tools first (for example, a chat id from waba_list_chats).

ToolInputs
waba_accountsNone
waba_list_chatsAll optional: waba_account_id, responsible (teammate email), closed (true or false), whatsapp_phone, with_msg (include the last message), page (50 chats per page)
waba_chat_detailschat_id
waba_chat_historychat_id. Optional: from_me, after and before (ISO date or date-time), after_message and before_message (message id), sorting_order (asc or desc), page, size
waba_message_detailsmessage_uid
waba_templatesOptional page
waba_template_detailstemplate_id
workspace_teamNone
waba_chat_openwaba_chat_closewaba_chat_unassignwaba_chat_mark_readwaba_chat_mark_unreadchat_id
waba_chat_assignchat_id, user_email (a teammate from workspace_team)
waba_chat_set_labelwaba_chat_remove_labelchat_id, label
waba_chat_send_messagechat_id, text
waba_chat_send_templatechat_id, name and language of an approved template. Optional variables: header and body lists, in template order
waba_start_chatwaba_account_id, phone (international format with a leading +), name and language of an approved template. Optional variables, as above
waba_message_reactmessage_uid, reaction (one emoji, or an empty value to remove it)
waba_message_status_historywaba_message_reactionswaba_message_comment_listmessage_uid
waba_message_comment_createmessage_uid, text
waba_message_comment_updatemessage_uid, comment_id, text
waba_message_comment_deletemessage_uid, comment_id
quick_reply_listworkspace_meget_more_toolsNone
quick_reply_detailsquick_reply_deletequick_reply_id
quick_reply_createname, text. Optional: visibility (public, private or read-only), team_title
quick_reply_updatequick_reply_id. Optional: name, text, visibility (public, private or read-only), team_title
waba_account_detailswaba_account_id
waba_account_analyticswaba_account_id, start, end. Optional dimensions: COUNTRY, PRICING_CATEGORY, PRICING_TYPE
waba_account_analytics_resultwaba_account_id, handle_id
waba_chat_renamechat_id, name
message_searchtext. Optional before_message (20 results per page)
waba_chats_by_adAll optional: ads_source_id, ads_source_after, ads_source_before, closed, responsible, waba_account_id, whatsapp_phone

Errors and limits

When a call fails, the tool returns an error result with the HTTP status, the TimelinesAI API’s message and, where there is one, an error code. Claude can then explain what happened and what to do next.

StatusWhat it meansWhat to do
400, 409, 422The request was rejected, for example a missing input or a phone number in the wrong formatFix the input and try again
401The sign-in is no longer validReconnect the connector and sign in to TimelinesAI again
403The user’s role or plan doesn’t allow this actionAsk a workspace Owner or Admin
404The chat, message or template wasn’t foundFind the right id with the list tools
429Too many requestsWait a moment and try again
5xx, or no answer within 15 secondsTemporary problem on the TimelinesAI sideTry again later
  • 24-hour window: if the window is closed, a free-text reply is rejected. Send an approved template instead. waba_chat_details and waba_list_chats show whether the window is open.
  • Delivery: a successful send means Meta accepted the message. If delivery fails later, waba_message_details shows the reason.
  • No duplicate sends: send tools are not retried automatically. If a send times out, check waba_chat_history before sending again, so the customer doesn’t get the message twice.
  • Rate limits: the connector doesn’t add a rate limit of its own. Meta’s messaging limits for your WhatsApp Business API number still apply to template messages.

What Claude can see

Claude acts as the TimelinesAI user who signed in, with that user’s permissions. It never sees more than that user can see in TimelinesAI.

  • Owners and Admins see every WhatsApp Business API number in the workspace and all of its chats.
  • Team supervisors and Teammates see the numbers whose team is set to their team, and those numbers’ chats.
  • Agents see the numbers assigned to them, and those numbers’ chats.
  • Collaborators see only the chats assigned to them. They can reply there, but can’t start new chats.
  • Assigned chats: anyone assigned to a single chat can see and reply in that chat. That doesn’t open the rest of that number.

Messaging rules

  • Inside the 24-hour window (the customer wrote in the last 24 hours), Claude can send free-text replies.
  • Outside the window, or for a new chat, only Meta-approved templates can be sent. A template doesn’t reopen the window for free text.
  • Templates with a media header (image, video or document) can’t be sent through the connector yet. Use templates with text variables.
  • Delivery: a successful send means Meta accepted the message. Delivery can still fail later, and Claude can check the reason.

Pricing

Using the connector is included in every TimelinesAI plan at no extra charge. Meta charges for template messages at its standard WhatsApp Business API rates, and Claude tells you before it sends one.

Privacy and security

FAQs about the WhatsApp Business API MCP server

Only WhatsApp Business API numbers connected to your TimelinesAI workspace.
Yes. Add the server with one command; see “Claude Code” under How to set up.
No. It acts as you, with your TimelinesAI role, and sees only the numbers and chats you can see.
No. The MCP server is hosted by TimelinesAI. You only add the server URL to Claude and sign in.
Meta charges for template messages at its standard WhatsApp Business API rates. The connector itself costs nothing extra on any TimelinesAI plan.
Yes, but only with a Meta-approved template. Free-text replies are possible only inside the 24-hour customer service window.
No. This connector works only with WhatsApp Business API numbers connected to your TimelinesAI workspace.

Last updated: