Skip to main content
Connect your AI assistants, coding environments, and autonomous agent frameworks to the ChatbotX MCP Server. The server runs directly alongside your ChatbotX workspace and exposes the full API through the open Model Context Protocol.

Authentication

The ChatbotX MCP Server authenticates every tool request using a Workspace Token:
  • Request Header (Recommended for IDEs and CLI tools): Pass the token in the x-workspace-token HTTP header (or x-chatbo-token).
  • URL Query Parameter (For web connectors): Pass the token as ?token=YOUR_WORKSPACE_TOKEN or ?workspace_token=YOUR_WORKSPACE_TOKEN. Use this for clients like Perplexity Computer that cannot set custom request headers.
  • Environment Variable (For local stdio processes): Set CHATBOTX_API_KEY=YOUR_WORKSPACE_TOKEN in the environment.
Find or copy your token in the ChatbotX dashboard under Settings > Integrations > Workspace token.
Configuration files are static data files, not shell scripts. Wherever a sample shows YOUR_WORKSPACE_TOKEN, paste your actual token string if your client does not expand environment variables.

Connect your client

Select your platform below to view setup commands and configuration files. Clients that share the same configuration format are grouped into unified tabs.
OpenClaw and NanoClaw are autonomous agent runtimes in the Claw ecosystem. Both connect to ChatbotX using the official chatbotx skill and workspace credentials.

OpenClaw

OpenClaw runs as a background gateway and connects to messaging channels like Telegram:
1

Install Node.js v22 and OpenClaw

2

Configure OpenClaw

3

Install ChatbotX skill

Install the official skill from ClawHub:
Configure your environment variables in ~/.openclaw/.env:
For self-hosted instances, set CHATBOTX_API_URL to your custom backend origin (e.g. https://app.yourdomain.com/api). If using a self-signed certificate, add CHATBOTX_ALLOW_SELF_SIGNED_CERT=true.
4

Start gateway and verify

NanoClaw

NanoClaw provides lightweight, container-isolated personal agent execution in sandboxed Docker containers.Run the container directly with environment variables:
Or configure within nanoclaw.json:

Self-Hosted Reverse Proxy Configuration

When hosting ChatbotX behind Nginx or Caddy, ensure your reverse proxy supports long-lived Server-Sent Events (SSE) by disabling proxy buffering.

Nginx

Caddy

Caddy streams SSE natively. Ensure timeouts allow long-lived connections:

Additional Guide: Create and Secure a Telegram Bot

Both OpenClaw and Hermes allow you to interact with your AI assistant using Telegram. To set this up, you need a Telegram Bot Token and your personal Chat ID for security.

Step 1: Create a Telegram Bot

  1. Open the Telegram app, search for the official @BotFather (verified with a blue checkmark), and click Start.
  2. Send the /newbot command.
  3. Enter a display name for your bot (e.g. ChatbotX Assistant).
  4. Enter a unique username ending in bot (e.g. chatbotx_mcp_bot).
  5. Copy the Telegram Bot Token provided (e.g. 123456789:ABCdefGhIJKlmNoPQRs...).

Step 2: Retrieve Your Chat ID for Security

To prevent unauthorized users from executing commands on your ChatbotX workspace via the Telegram bot, restrict bot access to your Telegram account using your Chat ID:
  1. Search for @userinfobot on Telegram and click Start.
  2. Copy the Id number returned in the message.
  3. Save this Chat ID in your OpenClaw or Hermes configuration wizard to restrict access.