Skip to main content
This guide walks you through connecting your AI assistant client to the ChatbotX MCP Server. Select the platform you use and follow the steps below. For each platform you will need your Workspace Token and your API URL — either https://app.chatbotx.io/api for cloud instances or https://app.yourdomain.com/api for self-hosted instances.

Environment Variables

Regardless of which client you use, you will reference these two environment variables throughout the setup:

OpenClaw

1

Install Node.js v22 and OpenClaw

2

Configure OpenClaw

Follow the interactive prompts to set your LLM provider API key.
3

Install the ChatbotX skill

Install the official ChatbotX skill from ClawHub, then configure your environment variables:
Set your credentials:
If your server uses a self-signed certificate, also add:
4

Start the gateway and verify

You should see chatbotx in the MCP server list and connection events in the log output.

Hermes

1

Install Hermes

2

Run the setup wizard

3

Connect ChatbotX MCP Server

Add the ChatbotX MCP server using SSE transport:
For self-hosted instances, replace the URL with https://app.yourdomain.com/mcp/sse?token=YOUR_WORKSPACE_TOKEN.
4

Enable and verify via systemd


Claude Code

1

Install Claude Code

2

Add the ChatbotX MCP server

Choose either remote (SSE) or local (stdio) connection:Option A: Remote SSE Connection
Option B: Local stdio Connection
For self-hosted instances, replace https://app.chatbotx.io with https://app.yourdomain.com.
3

Verify the connection

The output should include your chatbotx server entry with the correct URL and transport type.
The Claude Desktop claude_desktop_config.json entry looks like this:

VS Code (Copilot / MCP Extension)

Add the following to your VS Code MCP settings:

Gemini CLI

Add the following configuration, using httpUrl (or serverUrl if your version does not support httpUrl):

ChatGPT (Developer Mode)

ChatGPT’s Developer Mode does not support custom headers, so use the token-in-URL format:
Select No additional authentication when prompted, since the token is already embedded in the URL.

Testing Your Connection

After setup, verify that the MCP endpoint is reachable using curl:
A successful connection returns:
SSE connections stay open. It is normal for the command to stop after the timeout — as long as you see 200 OK and event: endpoint, the connection is working correctly.

Additional Guide: Telegram Bot for OpenClaw and Hermes

Both OpenClaw and Hermes support interacting with your AI assistant via Telegram. To set this up, you need a Telegram Bot Token and your personal Chat ID.

Step 1: Create a Telegram Bot

1

Open BotFather

Open Telegram, search for the official @BotFather (verified with a blue checkmark), and click Start.
2

Create your bot

Send the /newbot command. Enter a display name (e.g., ChatbotX Assistant) and a unique username ending in bot (e.g., chatbotx_mcp_bot).
3

Copy the bot token

BotFather will return a Telegram Bot Token (e.g., 123456789:ABCdefGhIJKlmNoPQRs...). Save it securely.

Step 2: Find Your Chat ID

To prevent unauthorized access, restrict your bot to only your Telegram account:
1

Get your Chat ID

Search for @userinfobot on Telegram and click Start. Copy the Id number it returns.
2

Save your Chat ID

Enter this Chat ID in your OpenClaw or Hermes configuration wizard to restrict bot access to your account only.

Best Practices

Follow these guidelines to operate safely with an AI assistant connected via MCP. Authenticate first. Every MCP tool call requires a valid Workspace token. Confirm your configuration has the token set via header or URL parameters before issuing any commands. Resolve IDs before actions. Adding tags, starting flows, updating fields, or sending messages all require internal IDs. Instruct the assistant to verify target records and retrieve IDs first. Use human-in-the-loop for bulk actions. For broadcasts, bulk field updates, or mass messaging, require the assistant to list the target contacts and show the list before executing. Example prompt for safe bulk operations:

Common Issues