MCP Server

Let an AI agent read conversations, reply and manage contacts through Wexio as MCP tools

Wexio runs an MCP server, so an AI agent can read conversations, reply in them and manage contacts, channels and knowledge documents as tool calls instead of GraphQL.

Point an MCP client at the endpoint with an Org API key and the agent gets more than 50 tools, each gated by that key's scopes. The endpoint and a ready client configuration are in the dashboard under Settings → Webhooks and API → MCP. See Connect an MCP Client for the steps.

The MCP server needs a Pro or Enterprise plan, on top of API access. On Standard the GraphQL API works but MCP does not: it answers 403 with {"error":"plan_feature_not_allowed","feature":"mcp"}.

Connect

EndpointPOST https://<your-wexio-host>/mcp
TransportStateless streamable HTTP (MCP spec)
AuthAuthorization: Bearer wx_<keyId>_<secret>

A key always acts on its own organisation. Every call re-authenticates the key and re-checks the scope. Nothing is cached between calls, so revoking a key takes effect immediately, mid-session.

Create a key just for the agent, with only the scopes it needs. See connecting an AI agent.

The Tools

Tools are grouped by what they touch. Each page lists every tool in its group once, with the scope it needs.

GroupCoversTools
MessagingSend, start conversations, read threads, search5
Inbox readsConversations, chats, collections, counts4
Chat controlMark read, retry, labels, notes, flows, deletes10
ContactsLook up and update contacts and fields5
ChannelsChannels, WhatsApp templates, Telegram bot settings18
Knowledge documentsDocuments your AI assistants answer from11
TeamList members1

Help articles and News posts, team management beyond listing members, and key management stay GraphQL-only.

Scopes

ScopeLets the agentUsed by
MESSAGES_READRead conversations, messages, labels and counts; searchMessaging, Inbox reads, Chat control
MESSAGES_SENDSend messages and retry failed onesMessaging, Chat control
CONVERSATIONS_STARTStart a conversation, together with MESSAGES_SENDtrigger_conversation
CONVERSATIONS_MANAGEMark read, set labels, start and stop flowsChat control
CONVERSATIONS_DELETEDelete chats and conversationsChat control
NOTES_WRITEWrite and see internal notesMessaging, Chat control
CONTACTS_READLook up contacts and field definitionsContacts
CONTACTS_MANAGECreate and update contacts and fieldsContacts
CONTACTS_ERASEErase contacts, with delete_conversation and removePeopleChat control
CHANNELS_MANAGEList and manage channels, templates and bot settingsChannels
CONTENT_READList and read knowledge documents and assistantsKnowledge documents
CONTENT_MANAGECreate, change, delete and attach knowledge documentsKnowledge documents
TEAM_READList membersTeam
PII_READSee names, phones and other personal data in resultsAny tool that returns people

A call needs every scope its tool lists. The full scope model is in Authentication.

Errors and Limits

Tool failures come back as isError: true with readable text, never as a protocol error:

MessageMeaning
Unauthorized: invalid API keyMissing, malformed or revoked key.
Forbidden: this API key lacks the <SCOPE> scopeValid key, wrong scopes.
Forbidden: organisation not accessible with this keyorgId is not a client you manage, or the key is bound to a different client.
API_KEY_SEND_CAP_EXCEEDEDThe key's daily send cap is used up. Resets at UTC midnight; the error carries the milliseconds until then.
Rate limited - retry after NsOver a rate limit.
Not available on the current plan: ...The org's plan does not include it.
PAYMENT_OUTSTANDING: Pay the outstanding invoice first. Open Billing to pay it.The workspace is paused for an unpaid invoice. The connection itself is refused with 403 payment_outstanding. See Errors.
Internal errorEverything else - logged server-side, detail not returned.

An agent seeing Internal error should surface it rather than retry in a loop. Page sizes are clamped to 100. Tools marked Expensive also draw from a stricter bucket. See Rate limits.

Which Tools Count Against the Send Cap

When the key has a daily send cap, five tools consume a unit each:

send_message, trigger_conversation, retry_message, add_conversation_note, start_flow

Everything else is free, including every read. A call refused for any reason - scope, bound org, rate limit - costs nothing.

start_flow counting as a send is the one that surprises people. A flow can send many messages from one tool call, so it is charged as an outbound action rather than as a read.

Was this page helpful?

On this page