Developers

Ecbot MCP Server

Connect Claude Code, Codex or Cursor to your workspace with an API key, so an AI assistant can manage your agents, knowledge, chats and customers.

The Ecbot MCP Server lets an AI assistant such as Claude Code, Codex or Cursor work in your workspace. Connect it with an API key, then ask in plain words: "list the chats that need me", "add our new return policy to the knowledge base" or "tag this customer VIP". The assistant can do what the key's creator can do in the app.

Create an API key

The workspace owner can create API keys, and so can any member whose role has the API key permission. The built-in Admin role has it by default; the built-in Member role doesn't, and the owner can add it to any custom role in Roles. Members without it see the page with a note to ask the owner or an admin.

Open Workspace settings from the workspace switcher at the top of the sidebar, or from Workspace settings under Activity in the sidebar. Then choose API keys under Developers:

The API keys page in Workspace settings, with the Quick start card, the workspace's keys and the Create API key button
  1. 1

    API keys under Developers lists every key in the workspace.

  2. 2

    Quick start has the server address and the header to copy, and a link back to this guide.

  3. 3Create API key makes a new key.
The API keys page in Workspace settings, with the Quick start card, the workspace's keys and the Create API key button

The Key ID column shows only the public half of each key. It can't sign in on its own: the full key is shown once, when you create it.

Choose Create API key, give the key a name such as "Claude Code", and choose Create. The new key appears once:

The new key, shown once with a copy button, and an MCP config with the key filled in
  1. 1

    The full key is shown only this once. If you lose it, rotate the secret or create a new key.

  2. 2

    Copy the whole value under API key. It is the Key ID and the secret joined by a colon (key:secret), and only this full value works.

  3. 3

    MCP config has the same key already filled in. Paste it into a client that takes a JSON file, such as Cursor.

  4. 4

    The panel stays open until you copy the key or tick I've saved this key.

The new key, shown once with a copy button, and an MCP config with the key filled in

If a key leaks, open its menu (...) and choose Rotate secret: the old secret stops working right away. Delete revokes the key for good. You see these only if your role allows them.

Connect your assistant

The server address is https://mcp.ecbot.dev/mcp. Your assistant sends the key with every request, as an x-api-key header or as a bearer token. Replace YOUR_KEY below with the value you copied.

Claude Code

claude mcp add --transport http --scope user ecbot https://mcp.ecbot.dev/mcp \
  --header "x-api-key: YOUR_KEY"

Codex

export ECBOT_API_KEY="YOUR_KEY"
codex mcp add ecbot --url https://mcp.ecbot.dev/mcp \
  --bearer-token-env-var ECBOT_API_KEY

Cursor and other clients

Clients set up with a JSON file, such as Cursor's mcp.json, take the address and a header:

{
  "mcpServers": {
    "ecbot": {
      "url": "https://mcp.ecbot.dev/mcp",
      "headers": { "x-api-key": "YOUR_KEY" }
    }
  }
}

Keep a file that holds your key out of shared folders and code repositories.

What the assistant can do

AreaReadChange
AgentsList agents, read one, list the AI models, chat with an agent to test itCreate, edit, activate or deactivate, delete
ConversationsList chats, read one and its messagesReply, turn the agent on or off in a chat, mark Open or Resolved
Knowledge baseList knowledge bases and their items, read an itemCreate a knowledge base, add text or web page items, edit, process or delete an item
CustomersList customers and tags, read a customer and their tagsEdit a customer, create, edit or delete tags, tag or untag a customer
ToolsList the workspace's tools and an agent's toolsCreate an HTTP or MCP tool, edit or delete it, turn it on or off for an agent
SkillsList your skills and the templates, read oneCreate a skill, copy a template, edit or delete it, attach it to an agent or detach it
ChannelsList the connected channels and the agent on each, read oneCreate an API channel or website widget, connect a Telegram bot, get a connect link for Facebook, Instagram, Zalo, WhatsApp or Threads, put an agent on a channel or take it off
AnalyticsThe dashboard numbers for the last 7, 30 or 90 days: conversion, sentiment, agent performance, customers

Uploading files, installing marketplace apps and permanently erasing a customer's data are only available in the app.

Connect channels

Your assistant can connect the channels that need no sign-in on another site: a REST API channel for your own app, a chat widget for your website, or a Telegram bot from the token BotFather gave you. The API channel's signing secret is shown only once, so store it when the assistant shows it.

Facebook, Instagram, Zalo, WhatsApp and Threads need you to sign in on that platform in a browser, which the assistant can't do for you. Ask it to connect one and it gives you a link to the app's connect page, with the platform already picked. Sign in there, tell the assistant you're done, and it can put an agent on the new channel.

Ask about your numbers

Ask your assistant things like "How did this week compare with last week?" or "Which agent hands over to staff the most?". It reads the same numbers as the dashboard, and only the tabs your role can see. Each key can ask for analytics 20 times a minute, so the assistant reuses what it already fetched.

Test an agent

Ask your assistant to chat with an agent the way a customer would, for example "ask my shop agent about our return policy and check the answer". It works like the test chat on the agent's page: nothing reaches a channel or Conversations, but the agent's tools run for real, so a tool that creates an order creates one. The assistant can keep one chat going over several messages. Test messages use tokens like any other reply, and each key can send 20 of them a minute.

Build skills with your assistant

The assistant can write a skill as steps, with branches, your tools and the built-in actions: hand off to staff, notify the team, add or remove a tag, schedule a follow-up and save customer info. Describe the procedure in plain words, for example:

Create a skill "Order status" for when a customer asks where their order is. Ask for the order code and call my Order lookup tool. If the order is late, say sorry and hand off to staff. Otherwise tell them the delivery date. Attach it to my shop agent.

The assistant can look up your tools and tags first, so the steps point at real ones. Open the skill in the app afterwards to check it. More prompts are in the cookbook.

Add Ecbot skills to your assistant

Ecbot publishes skills that teach your assistant how to work in your workspace. Install them next to the server, and pick the ones you want:

npx skills add blackmouse572/ecbot
  • ecbot: the safety rules, such as asking before a reply reaches a customer, and where each kind of setting belongs.
  • ecbot-agent-builder: sets up an agent, or cleans one up. It keeps Extra instructions to tone and a few rules, moves facts to knowledge, and turns each workflow into a skill.
  • ecbot-skill-builder: turns a requirement into a skill written as steps, the way the tutorial does.

Permissions and the activity log

  • The key acts as its creator. It always has the creator's current permissions: if they lose a permission or leave the workspace, the key loses it too.
  • The assistant sees only the tools the key may use, so it does not try actions that would be refused.
  • Every change is logged. Changes and replies show in Activity under the creator's name, as if they made them in the app. Opening a chat or a customer is logged as a view, the same way.
  • Customer text is data, not instructions. Messages from customers and the text of your documents can say anything, so the server tells the assistant never to follow instructions found in them.

Frequently asked questions

On this page