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
| Endpoint | POST https://<your-wexio-host>/mcp |
| Transport | Stateless streamable HTTP (MCP spec) |
| Auth | Authorization: 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.
| Group | Covers | Tools |
|---|---|---|
| Messaging | Send, start conversations, read threads, search | 5 |
| Inbox reads | Conversations, chats, collections, counts | 4 |
| Chat control | Mark read, retry, labels, notes, flows, deletes | 10 |
| Contacts | Look up and update contacts and fields | 5 |
| Channels | Channels, WhatsApp templates, Telegram bot settings | 18 |
| Knowledge documents | Documents your AI assistants answer from | 11 |
| Team | List members | 1 |
Help articles and News posts, team management beyond listing members, and key management stay GraphQL-only.
Scopes
| Scope | Lets the agent | Used by |
|---|---|---|
MESSAGES_READ | Read conversations, messages, labels and counts; search | Messaging, Inbox reads, Chat control |
MESSAGES_SEND | Send messages and retry failed ones | Messaging, Chat control |
CONVERSATIONS_START | Start a conversation, together with MESSAGES_SEND | trigger_conversation |
CONVERSATIONS_MANAGE | Mark read, set labels, start and stop flows | Chat control |
CONVERSATIONS_DELETE | Delete chats and conversations | Chat control |
NOTES_WRITE | Write and see internal notes | Messaging, Chat control |
CONTACTS_READ | Look up contacts and field definitions | Contacts |
CONTACTS_MANAGE | Create and update contacts and fields | Contacts |
CONTACTS_ERASE | Erase contacts, with delete_conversation and removePeople | Chat control |
CHANNELS_MANAGE | List and manage channels, templates and bot settings | Channels |
CONTENT_READ | List and read knowledge documents and assistants | Knowledge documents |
CONTENT_MANAGE | Create, change, delete and attach knowledge documents | Knowledge documents |
TEAM_READ | List members | Team |
PII_READ | See names, phones and other personal data in results | Any 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:
| Message | Meaning |
|---|---|
Unauthorized: invalid API key | Missing, malformed or revoked key. |
Forbidden: this API key lacks the <SCOPE> scope | Valid key, wrong scopes. |
Forbidden: organisation not accessible with this key | orgId is not a client you manage, or the key is bound to a different client. |
API_KEY_SEND_CAP_EXCEEDED | The key's daily send cap is used up. Resets at UTC midnight; the error carries the milliseconds until then. |
Rate limited - retry after Ns | Over 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 error | Everything 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.
Related
- Connect an MCP Client - create a key and paste the configuration into Claude or Cursor.
- Authentication - keys, scopes and the daily send cap.
- Rate limits - buckets, expensive calls and error behaviour.
- API reference - the same operations over GraphQL.