Guides and integrations
MCP Integration: Connect an AI Client
BNex MCP exposes a small, permission-checked set of workspace tools to an explicitly authorized AI client over Streamable HTTP; workspace Owners and Admins create a personal bearer token in Advanced Settings and choose read scopes, or deliberately opt in to the separate campaign write scopes.
Updated 2026-11-08
What MCP integration does
MCP (Model Context Protocol) lets a compatible AI client call selected BNex tools after you authorize a connection. The connection is bound to the person who created it, the selected workspace, the client credential, and the scopes you approved.
BNex is not exposed as a general database, shell, arbitrary REST proxy, or unrestricted agent. Every tool call re-checks the grant, current workspace membership, scope, and applicable BNex permission.
- Workspace overview: workspace name, the plan whose limits currently apply, seat and contact usage against those limits, and the WhatsApp connection state (masked phone, quality rating, messaging tier, and verification and display-name status).
- Contact search: a small set of matching display names and masked phone numbers.
- Recent conversations: bounded recent thread previews; internal notes are excluded and phone/email patterns are masked.
- Campaign and template reads: recent campaign analytics, campaign and saved-segment listings, and a template list with each template’s name, language, category, approval status and body variable count (never the template body itself). The audience preview returns an eligible recipient count without any contact details.
- Campaign writes, only if you grant them: creating a draft, scheduling, pausing, resuming, stopping, and raising a campaign’s daily recipient cap. A draft created through MCP always lands in pending Owner approval and cannot send itself.
Create a personal agent connection
- Open Advanced Settings → MCP agents. Sign in to the workspace and open Advanced Settings. The MCP agents section is available to workspace Owners and Admins.
- Name the connection and select only needed access. Enter a connection name and select the scopes it needs. Read scopes are selected by default: workspace overview, contact search, recent conversations, and campaign analytics. Campaign writes use separate opt-in scopes - campaign draft creation, and campaign lifecycle plus cap changes - which you select deliberately because they change what a connected agent can do. Start with the minimum access needed.
- Create the connection. BNex binds the credential to your authenticated user and current workspace. The bearer token is displayed once in the connection panel.
- Copy the URL and token into your client. Use the server URL and token from that panel. Do not use an organization ID or invent a server URL.
- Run the connection check. Use BNex’s “Authorize token” action to perform an MCP initialize handshake. This verifies the credential but does not invoke a tool or read workspace data.
- Close the panel only after saving the token. BNex cannot reveal the plaintext token again after the panel closes. If it is lost, revoke the connection and create a replacement.
- Plan for the 90-day expiry. A personal agent connection expires after 90 days. Create a replacement before then, and revoke a connection immediately once it is no longer needed.
Generic Streamable HTTP configuration
BNex uses stateless Streamable HTTP. For a compatible client that accepts a remote MCP URL and custom HTTP headers, use the generated configuration from the BNex connection panel. Replace placeholders only with the exact URL and bearer token shown there.
The following shows the configuration shape. It is not a reusable credential: endpoint and token values are unique to your connection.
{
"mcpServers": {
"bnex": {
"url": "<MCP server URL copied from BNex>",
"headers": {
"Authorization": "Bearer <one-time token copied from BNex>"
}
}
}
}Client-specific setup notes
The backend documents the Streamable HTTP transport and BNex’s generated URL-plus-Authorization-header configuration shape. It does not certify every vendor client or provide vendor-managed marketplace registrations for all clients. Before following a client-specific path, confirm that the client supports remote Streamable HTTP MCP servers and custom bearer headers.
Claude Desktop
BNex does not document a Claude Desktop-specific config file path or certify a local-stdio bridge. Use the BNex-generated JSON only if the Claude Desktop version and setup path you use accepts a remote Streamable HTTP server with a custom Authorization header. If its setup requires a local command instead, BNex does not provide that command; do not paste a bearer token into an untrusted bridge.
Cursor
If your Cursor MCP settings accept the remote URL and custom headers in the generic configuration above, paste the BNex-generated JSON there and save it in the client’s private settings. BNex does not publish a Cursor-specific config-file path or guarantee a Cursor release’s compatibility; verify the connection with the client’s MCP status and BNex initialize check.
Claude Code
BNex does not publish a Claude Code command line or per-project config recipe. Connect only through a Claude Code MCP configuration mode that supports remote Streamable HTTP and a bearer Authorization header. Keep workspace tokens out of shared project configuration and source control.
Codex App and ChatGPT
The backend documentation says live marketplace/client registration details and end-to-end connector tests are still required for ChatGPT and Codex. BNex therefore does not claim a ready-made marketplace connector for these products. An administrator must not guess a client identifier or OAuth callback URL; registered OAuth clients require exact marketplace-issued values.
Hermes Agent and other MCP clients
BNex has no Hermes-specific setup instructions or verified-client statement in its current backend documentation. A client can use the BNex server only if it supports remote Streamable HTTP, custom bearer headers, and the generated configuration shape. Ask your workspace administrator to confirm approved client use before connecting customer data to a third-party agent.
Scopes, permissions, and current limits
- Workspace overview access returns the workspace name, the plan and limits currently applied, seat and contact usage against those limits, and the WhatsApp connection state: masked phone number, quality rating, Meta messaging tier, and verification and display-name status. Verification and display-name status are confirmed with Meta when the overview is read and the stored copy is more than ten minutes old; when that check cannot run, the response is marked unconfirmed and the values are last-known rather than a verdict. It never returns workspace IDs, credentials, tokens, billing identifiers, balances, or invoice data.
- Contact search returns at most 5 matches per call, with masked phone numbers rather than contact IDs or full records.
- Recent conversation reads are bounded to 10 threads and the 3 most recent non-internal message statuses per thread; internal notes are excluded. Message previews are omitted unless the client explicitly asks for them, and are then length-capped and masked.
- Campaign reads return at most 20 campaigns (with status, scheduled time and the configured daily cap), at most 50 saved segments, and an eligible-recipient count. The audience preview shares the same audience rules as the campaign screen and returns an exact cost estimate only up to 1,000 recipients; above that it returns the count with a note pointing to the campaign review screen, and an audience BNex cannot price - one spanning markets with no configured rate - comes back with the count and a note that the estimate is unavailable instead of a figure. No recipient records, contact details, or wallet balance are returned.
- Read access is quota-limited per connection: a daily ceiling across the read tools plus a burst ceiling per tool, and an additional daily ceiling on how many distinct contact searches one connection may run. The connection reports its remaining allowance through its own access check.
- Message sending is off by default for every workspace and is switched on per workspace by its Owner in Advanced Settings → MCP agents. While the switch is off, no connection can send even if it already carries the template-send scope. While it is on, a send is one approved template to one recipient, and it needs the Owner role, an exact body parameter set, an idempotency key, a wallet preflight and the connection’s own daily send and spend limits (1–100 sends a day); turning the switch off stops the next call on every connection.
- MCP audience previews use the same rule as the campaign screen: the saved segment minus opted-out, blocked and unreachable contacts. Consent evidence is a record and never changes the count. A missing, empty or invalid saved segment fails closed rather than widening to every contact.
- Campaign draft creation, scheduling, pause, resume, stop, and daily-cap increases are available as MCP tools only when the connection holds the separate write scopes. A draft always waits for Owner approval in BNex, and every lifecycle change needs its own idempotency key, so a retried call cannot act twice. Resume and cap increases also require the user to confirm in the client; BNex cannot independently verify who typed the confirmation. Lifecycle and cap-change calls are limited to 10 per 15 minutes and 100 per UTC day per connection, and a cap increase returns the recipients already reserved today plus the remaining allowance; it cannot lower or remove the cap.
- Campaign launch itself, generic free-form sends, template management, billing changes, workspace or credential changes, and contact creation or editing are not exposed. Deletions are available only with their own scopes: contact deletion (contacts:delete plus CONTACTS_ADMIN) and campaign deletion (campaigns:delete plus CAMPAIGNS).
Review and revoke an agent connection
- Return to Advanced Settings → MCP agents. Review the listed workspace connections and their names/scopes.
- Revoke a connection you no longer need. Use the revoke action for the relevant connection. Revocation invalidates its MCP grant and tokens immediately.
- Remove access when a teammate leaves. Update workspace membership and revoke connections as part of offboarding. BNex checks current membership and permission for every tool call.
Frequently asked questions
What transport does the BNex MCP server use?
BNex uses stateless Streamable HTTP at the endpoint generated in the MCP agents connection panel. Configure a compatible client with that URL and the generated bearer token.
Can I retrieve my MCP token after closing the setup panel?
No. The personal bearer token is shown once. If it is lost, revoke that connection and create a new one.
Can an MCP client send WhatsApp templates?
Only when the workspace Owner has switched MCP message sending on, which is off by default. With it on, a connection holding the template-send scope can send one approved template to one recipient per call, within that connection’s own daily send and spend caps; the Owner role, an exact body parameter set, an idempotency key and a wallet preflight are all required. There is no free-form send, and a campaign draft still waits for Owner approval in BNex before anything is dispatched.
Can an MCP client create or schedule a campaign?
Only with the separate campaign write scopes granted on the connection, together with the user’s current campaign permission. With them, an AI client can create a draft for Owner review, schedule an already approved campaign, pause, resume, stop, or raise a campaign’s daily recipient cap. It cannot launch a draft that is still pending approval, and it never calls the sending worker directly.