When to use ChatbotX MCP
Natural Language Operations
Manage your CRM and inbox through plain chat. Tell your AI assistant to find leads, update custom attributes, enroll contacts in sequences, or assign tickets.
Autonomous Business Reasoning
Let autonomous agents read conversation context, classify customer intent, trigger targeted flows, and escalate complex issues without human intervention.
Zero-Config Tool Discovery
With ~350 operations auto-generated from the OpenAPI spec, agents dynamically discover and invoke the right tool on demand without manual API integration.
Developer Automation
Automate testing, build flow specs with schema validation, inspect system error logs, and manage webhooks straight from your code editor.
First Call
Connect the server to your client and test your first command. In Claude Code CLI, run:“Check our workspace capabilities and show me active communication channels.”The assistant calls
capabilities_get, returning workspace details, connected channels, available WhatsApp templates, tags, and automation flows:
Autonomous Agents
Autonomous agents operating without an interactive browser session authenticate using an API key or Workspace Token via headers or query parameters. Because the ChatbotX MCP server supports Streamable HTTP and SSE, you can test or trigger tool executions directly using standard HTTP requests:200 OK) returns the matching contact records:
Authentication
Workspace Token
ChatbotX MCP uses a Workspace Token to authorize every operation. Find or copy your token in the ChatbotX web dashboard under Settings > Integrations > Workspace token.Token Resolution Priority
The MCP server checks credentials in the following order:How Tools Reach Context
Your client never loads all ~380 tools at once, avoiding context window bloat and excessive token consumption:- 43 Default Tools: Essential tools covering contacts, conversations, flows, broadcasts, sequences, AI agents, and analytics remain always visible in
tools/list. - Meta-Tools (
search_toolsandcall_tool): Two fixed meta-tools allow the assistant to search the full OpenAPI catalog for less-common operations (coupons, webhooks, tags, custom fields, workspace members) and call them with zero context overhead until needed. - Discovery Tools (
capabilities_get,token_get,schemas_flow_spec): Entry-point tools an agent should call first to discover workspace resources and inspect authorization scopes.
For the complete reference of all default tools, discovery endpoints, and extended meta-tools, see Tools.
Connecting
You can connect your AI assistant to the ChatbotX MCP server using either stdio (recommended for local use) or SSE (for remote and shared instances). Select your platform below for a quick connection snippet:- OpenClaw & NanoClaw
- Hermes Agent
- Claude Code
- Codex
- Antigravity & Paperclip
- Perplexity Computer
Install the ChatbotX skill from ClawHub or configure environment variables for your container:
For detailed step-by-step setup guides, installation prerequisites, and background daemon configurations for all 8 platforms, see Platform Setup.
Quick Workflow Example
A typical customer onboarding workflow executed by an AI assistant:- Find contact: Agent calls
contacts_getwith phone or email identifier (phone:+84901234567) to retrieve the contact ID. - Tag contact: Agent calls
contacts_add_tags_by_nameto assign the tagVIP Member. - Trigger flow: Agent calls
contacts_send_flowto start the welcome automation flow for that contact. - Notify team: Agent calls
conversations_assignto assign the conversation thread to the customer care team.
FAQ
Do I need an OpenAI or Anthropic API key to use ChatbotX MCP?
No key is needed for the MCP server itself. The MCP server runs inside your self-hosted ChatbotX instance. However, your client application (Claude Code, Cursor, OpenClaw, VS Code) requires an API key from an LLM provider (Anthropic, OpenAI, Google) to understand your prompts and decide which tools to call.What happens when my Workspace Token expires or is rotated?
The AI assistant loses access and receives401 Unauthorized responses. Generate or copy a new token under Settings > Integrations > Workspace token and update your client configuration.
How do I configure reverse proxies for self-hosted SSE?
The MCP endpoint at/mcp/sse requires long-lived streaming connections. In Nginx or Caddy, ensure proxy buffering is turned off:
Can MCP read and reply to customer messages in real time?
Yes. AI assistants can retrieve conversation history usingmessages_list or contacts_list_messages, and send immediate replies through connected channels using contacts_send_message.