Skip to main content
Glama
mcp-chatwoot

mcp-chatwoot

by serversmx

mcp-chatwoot

Release License Node TypeScript Docker GHCR MCP Tools Tests

MCP (Model Context Protocol) server for Chatwoot — manage conversations, contacts, messages, agents, teams, and more through AI tools.

Features

  • 133 tools covering Chatwoot's Application, Public, Platform, Enterprise, and Help Center APIs

  • Modular buckets: Each API group is opt-in with environment flags

  • Multi-account: All tools accept an optional account_id to target any account

  • Dual transport: STDIO (Claude Desktop, Claude Code) and HTTP/SSE (remote access)

  • Docker ready: Multi-stage build with health checks

  • Session management: Multi-session HTTP with automatic cleanup

  • Safe mode: Block destructive operations at both Application and Platform API levels

  • Tested: Vitest + nock with 240 tests

Buckets Overview

Bucket

Tools

Enable Flag

Auth

Safe Mode

Core

81

Always on

CHATWOOT_API_TOKEN

MCP_SAFE_MODE (14 blocked)

Public

12

MCP_ENABLE_PUBLIC_API=true

inbox_identifier

N/A

Platform

17

MCP_ENABLE_PLATFORM_API=true

CHATWOOT_PLATFORM_API_TOKEN

MCP_PLATFORM_SAFE_MODE (11 blocked)

Enterprise

8

MCP_ENABLE_ENTERPRISE=true

CHATWOOT_API_TOKEN

MCP_SAFE_MODE (3 blocked)

Help Center

15

MCP_ENABLE_HELP_CENTER=true

CHATWOOT_API_TOKEN

MCP_SAFE_MODE (3 blocked)

Core Tools (81 — always enabled)

Category

Tools

Health

chatwoot_health

Contacts

list_contacts, get_contact, create_contact, update_contact, delete_contact, search_contacts, filter_contacts, get_contact_conversations, merge_contacts, get_contactable_inboxes

Contact Labels

get_contact_labels, add_labels_to_contact

Conversations

list_conversations, get_conversation, create_conversation, update_conversation_status, assign_conversation, add_labels_to_conversation, get_conversation_labels, set_conversation_priority, get_conversation_counts, filter_conversations, set_conversation_custom_attributes

Messages

send_message, list_messages, delete_message

Agents

list_agents, get_agent

Teams

list_teams, get_team, get_team_members, create_team, update_team, delete_team, add_team_members, update_team_members, remove_team_members

Inboxes

list_inboxes, get_inbox, get_inbox_agent_bot

Inbox Members

list_inbox_agents, add_inbox_agents, update_inbox_agents, remove_inbox_agents

Labels

list_labels, create_label, update_label, delete_label

Canned Responses

list_canned_responses, create_canned_response, update_canned_response, delete_canned_response

Reports (v2)

get_account_report, get_report_summary, get_conversation_statistics, get_conversation_metrics, get_first_response_time_report, get_inbox_label_matrix_report, get_outgoing_messages_report

Webhooks

list_webhooks, create_webhook, update_webhook, delete_webhook

Custom Attributes

list_custom_attributes, get_custom_attribute, create_custom_attribute, update_custom_attribute, delete_custom_attribute

Automation Rules

list_automation_rules, get_automation_rule, create_automation_rule, update_automation_rule, delete_automation_rule

Custom Filters

list_custom_filters, get_custom_filter, create_custom_filter, update_custom_filter, delete_custom_filter

Integrations

list_integrations

Profile

get_profile

Public API Tools (12 — MCP_ENABLE_PUBLIC_API=true)

Widget/client-facing API using inbox_identifier + contact_identifier for auth.

Category

Tools

Contacts

public_create_contact, public_get_contact, public_update_contact

Conversations

public_create_conversation, public_list_conversations, public_get_conversation, public_resolve_conversation, public_toggle_typing, public_update_last_seen

Messages

public_create_message, public_list_messages, public_update_message

Platform API Tools (17 — MCP_ENABLE_PLATFORM_API=true)

Super-admin operations. Requires separate CHATWOOT_PLATFORM_API_TOKEN. See docs/PLATFORM_SECURITY.md.

Category

Tools

Accounts

platform_create_account, platform_get_account, platform_update_account, platform_delete_account

Agent Bots

platform_list_agent_bots, platform_create_agent_bot, platform_get_agent_bot, platform_update_agent_bot, platform_delete_agent_bot

Users

platform_create_user, platform_get_user, platform_update_user, platform_delete_user, platform_get_user_sso_link

Account Users

platform_list_account_users, platform_create_account_user, platform_delete_account_user

Enterprise Tools (8 — MCP_ENABLE_ENTERPRISE=true)

Admin and Enterprise-only endpoints. See docs/ENTERPRISE.md.

Category

Tools

Audit Logs

enterprise_list_audit_logs

Reporting Events

enterprise_get_account_reporting_events, enterprise_get_conversation_reporting_events

Account Agent Bots

enterprise_list_agent_bots, enterprise_get_agent_bot, enterprise_create_agent_bot, enterprise_update_agent_bot, enterprise_delete_agent_bot

Help Center Tools (15 — MCP_ENABLE_HELP_CENTER=true)

Knowledge base management for portals, articles, and categories.

Category

Tools

Portals

helpcenter_list_portals, helpcenter_create_portal, helpcenter_get_portal, helpcenter_update_portal, helpcenter_delete_portal

Articles

helpcenter_list_articles, helpcenter_create_article, helpcenter_get_article, helpcenter_update_article, helpcenter_delete_article

Categories

helpcenter_list_categories, helpcenter_create_category, helpcenter_get_category, helpcenter_update_category, helpcenter_delete_category

Related MCP server: @indica-facil/mcp-chatwoot

Quick Start

docker run -d \
  -e CHATWOOT_BASE_URL=https://your-chatwoot.com \
  -e CHATWOOT_API_TOKEN=your_token \
  -e MCP_MODE=http \
  -e AUTH_TOKEN=your_secret \
  -p 3000:3000 \
  ghcr.io/renatoascencio/mcp-chatwoot:latest

Option B: Local install

1. Clone and build

git clone https://github.com/RenatoAscencio/mcp-chatwoot.git
cd mcp-chatwoot
npm install
npm run build

2. Configure

cp .env.example .env
# Edit .env with your Chatwoot credentials:
#   CHATWOOT_BASE_URL=https://your-chatwoot.com
#   CHATWOOT_ACCOUNT_ID=1    (optional — omit to require account_id per tool call)
#   CHATWOOT_API_TOKEN=your_token

Where to find your API token: In Chatwoot, go to Profile Settings → Access Token.

3. Run

STDIO mode (for Claude Desktop / Claude Code):

npm start

HTTP mode (for remote access):

MCP_MODE=http AUTH_TOKEN=your_secret npm start

Claude Desktop Configuration

Add to ~/.claude/mcp.json:

{
  "mcpServers": {
    "chatwoot": {
      "command": "node",
      "args": ["/path/to/mcp-chatwoot/dist/index.js"],
      "env": {
        "CHATWOOT_BASE_URL": "https://your-chatwoot.com",
        "CHATWOOT_API_TOKEN": "your_api_token"
      }
    }
  }
}

Note: CHATWOOT_ACCOUNT_ID is optional. When omitted, each tool call requires account_id as a parameter, enabling multi-account usage from a single instance.

Enabling Optional Buckets

{
  "mcpServers": {
    "chatwoot": {
      "command": "node",
      "args": ["/path/to/mcp-chatwoot/dist/index.js"],
      "env": {
        "CHATWOOT_BASE_URL": "https://your-chatwoot.com",
        "CHATWOOT_API_TOKEN": "your_api_token",
        "MCP_ENABLE_PUBLIC_API": "true",
        "MCP_ENABLE_ENTERPRISE": "true",
        "MCP_ENABLE_HELP_CENTER": "true",
        "MCP_ENABLE_PLATFORM_API": "true",
        "CHATWOOT_PLATFORM_API_TOKEN": "your_platform_token",
        "MCP_PLATFORM_SAFE_MODE": "false"
      }
    }
  }
}

Environment Variables

Variable

Required

Default

Description

CHATWOOT_BASE_URL

Yes

—

Chatwoot instance URL

CHATWOOT_ACCOUNT_ID

No

—

Default account ID (if omitted, account_id required per tool call)

CHATWOOT_API_TOKEN

Yes

—

Application API access token

MCP_MODE

No

stdio

Transport mode: stdio or http

PORT

No

3000

HTTP server port

AUTH_TOKEN

No

—

Bearer token for HTTP mode

LOG_LEVEL

No

info

Log level: debug, info, warn, error

MCP_SAFE_MODE

No

false

Block destructive Application API operations

MCP_ENABLE_PUBLIC_API

No

false

Enable Public/Client API tools (12)

MCP_ENABLE_PLATFORM_API

No

false

Enable Platform API tools (17)

CHATWOOT_PLATFORM_API_TOKEN

No

—

Platform App API token (required if Platform enabled)

MCP_PLATFORM_SAFE_MODE

No

true

Block Platform API writes/deletes

MCP_ENABLE_ENTERPRISE

No

false

Enable Enterprise/Niche tools (8)

MCP_ENABLE_HELP_CENTER

No

false

Enable Help Center tools (15)

Safety

Application API Safe Mode

When MCP_SAFE_MODE=true, blocks 14 destructive core tools plus 6 Enterprise/Help Center destructive tools. See docs/SCOPE.md for the full list.

Platform API Safe Mode

When MCP_PLATFORM_SAFE_MODE=true (default), blocks all 11 write/delete Platform API tools. Only read operations are allowed. See docs/PLATFORM_SECURITY.md for details.

Architecture

src/
├── index.ts              # Entry point (STDIO/HTTP mode selection)
├── server.ts             # MCP Server (STDIO transport)
├── http-server.ts        # HTTP/SSE server with session management
├── api/
│   ├── client.ts         # Application API client (81 + Enterprise + Help Center)
│   ├── public-client.ts  # Public/Client API client
│   ├── platform-client.ts # Platform API client
│   └── types.ts          # TypeScript interfaces
├── tools/
│   ├── definitions.ts    # Core tool schemas (81 tools)
│   ├── handlers.ts       # Core tool execution handlers
│   ├── public/           # Public API bucket
│   ├── platform/         # Platform API bucket
│   ├── enterprise/       # Enterprise/Niche bucket
│   └── helpcenter/       # Help Center bucket
└── utils/
    ├── config.ts         # Environment configuration
    └── logger.ts         # Structured logging

Development

# Dev with hot reload
npm run dev

# Dev in HTTP mode
npm run dev:http

# Type check
npm run lint

# Run tests
npm test

# Build
npm run build

Multi-Account Support

All Application API tools accept an account_id parameter. When CHATWOOT_ACCOUNT_ID is set, it serves as the default and account_id becomes optional. When not set, account_id is required on every tool call — this enables a single MCP instance to serve multiple Chatwoot accounts.

Documentation

Docker

Pre-built multi-arch images (amd64 + arm64) are published to GitHub Container Registry on every release:

docker pull ghcr.io/renatoascencio/mcp-chatwoot:latest
docker run -d \
  -e CHATWOOT_BASE_URL=https://your-chatwoot.com \
  -e CHATWOOT_API_TOKEN=your_token \
  -e MCP_MODE=http \
  -e AUTH_TOKEN=your_secret \
  -p 3000:3000 \
  ghcr.io/renatoascencio/mcp-chatwoot:latest

Or use docker-compose.yml from the repo as a starting point.

Contributing

Contributions are welcome. Please:

  1. Fork the repository

  2. Create a feature branch (git checkout -b feature/my-feature)

  3. Run tests (npm test) and ensure they pass

  4. Commit with a descriptive message

  5. Open a Pull Request

For larger changes, please open an issue first to discuss.

License

MIT © Renato Ascencio

Available Tools

81 tools
add_inbox_agentsC

Add one or more agents to an inbox by their user IDs.

Inputs: inbox_id (required), user_ids (required), account_id.

add_labels_to_contactA

Set labels on a contact. Provide the full list of labels that should be applied (replaces existing labels).

Inputs: labels (required), contact_id (required), account_id.

add_labels_to_conversationA

Add one or more labels to a conversation. Existing labels are preserved.

Inputs: labels (required), conversation_id (required), account_id.

add_team_membersB

Add one or more agents to a team by their user IDs.

Inputs: team_id (required), user_ids (required), account_id.

assign_conversationA

Assign a conversation to a specific agent, team, or both. Omit both to unassign.

Inputs: conversation_id (required), team_id, account_id, assignee_id.

chatwoot_healthA

Test connection to the Chatwoot instance and return account information. Use this to verify the MCP server is properly configured.

Inputs: account_id.

create_automation_ruleC

Create a new automation rule with event trigger, conditions, and actions.

Inputs: name (required), actions (required), conditions (required), event_name (required), +2 more.

create_canned_responseC

Create a new canned response template for quick replies.

Inputs: content (required), short_code (required), account_id.

create_contactB

Create a new contact in Chatwoot. At least one of name, email, or phone_number is recommended.

Inputs: name, email, inbox_id, account_id, +3 more.

create_conversationB

Create a new conversation. Requires an inbox_id. Optionally link to a contact and send an initial message.

Inputs: inbox_id (required), status, message, team_id, +3 more.

create_custom_attributeC

Create a new custom attribute definition for contacts or conversations.

Inputs: attribute_key (required), attribute_model (required), attribute_display_name (required), attribute_display_type (required), +4 more.

create_custom_filterC

Create a new custom filter for conversations, contacts, or reports.

Inputs: name (required), query (required), filter_type (required), account_id.

create_labelC

Create a new label for categorizing conversations and contacts.

Inputs: title (required), color, account_id, description, +1 more.

create_teamC

Create a new team in the Chatwoot account.

Inputs: name (required), account_id, description, allow_auto_assign.

create_webhookC

Register a new webhook endpoint to receive event notifications from Chatwoot.

Inputs: url (required), subscriptions (required), account_id.

delete_automation_ruleC

Delete an automation rule.

Inputs: rule_id (required), account_id.

delete_canned_responseC

Delete a canned response template.

Inputs: canned_response_id (required), account_id.

delete_contactB

Permanently delete a contact and all associated data.

Inputs: contact_id (required), account_id.

delete_custom_attributeC

Delete a custom attribute definition.

Inputs: attribute_id (required), account_id.

delete_custom_filterC

Delete a custom filter.

Inputs: filter_id (required), account_id.

delete_labelC

Delete a label from the Chatwoot account.

Inputs: label_id (required), account_id.

delete_messageC

Delete a specific message from a conversation.

Inputs: message_id (required), conversation_id (required), account_id.

delete_teamC

Delete a team from the Chatwoot account.

Inputs: team_id (required), account_id.

delete_webhookC

Remove a webhook subscription.

Inputs: webhook_id (required), account_id.

filter_contactsC

Filter contacts using advanced query conditions. Each filter has field, operator, and value.

Inputs: filters (required), page, account_id.

filter_conversationsC

Filter conversations using advanced query conditions. Each filter has attribute_key, filter_operator, values, and optional query_operator (AND/OR).

Inputs: filters (required), page, account_id.

get_account_reportC

Get account-level reports and metrics (via API v2). Includes conversation counts, response times, and resolution metrics.

Inputs: type (required), metric (required), id, since, +2 more.

get_agentC

Get detailed information about a specific agent by their ID.

Inputs: agent_id (required), account_id.

get_automation_ruleC

Get detailed information about a specific automation rule.

Inputs: rule_id (required), account_id.

get_contactC

Get detailed information about a specific contact by their ID.

Inputs: contact_id (required), account_id.

get_contactable_inboxesB

Get the list of inboxes through which a contact can be reached. Useful for determining available channels for a contact.

Inputs: contact_id (required), account_id.

get_contact_conversationsB

Get all conversations associated with a specific contact.

Inputs: contact_id (required), account_id.

get_contact_labelsB

Get all labels currently applied to a specific contact.

Inputs: contact_id (required), account_id.

get_conversationA

Get detailed information about a specific conversation, including contact info, assignee, labels, and recent messages.

Inputs: conversation_id (required), account_id.

get_conversation_countsC

Get conversation count statistics grouped by status (open, pending, resolved, etc.).

Inputs: status, account_id.

get_conversation_labelsB

Get all labels currently applied to a conversation.

Inputs: conversation_id (required), account_id.

get_conversation_metricsA

Get conversation metrics for the account or a specific agent (via API v2). Returns open, unattended, and unassigned conversation counts.

Inputs: type (required), user_id, account_id.

get_conversation_statisticsB

Get conversation statistics grouped by entity (via API v2). Returns metrics like conversations_count, avg_first_response_time, avg_resolution_time per entity.

Inputs: entity_type (required), since, until, account_id, +1 more.

get_custom_attributeB

Get details of a specific custom attribute definition by its ID.

Inputs: attribute_id (required), account_id.

get_custom_filterC

Get a specific custom filter by its ID.

Inputs: filter_id (required), account_id.

get_first_response_time_reportC

Get first response time distribution grouped by channel (via API v2). Shows how quickly agents respond across different channels.

Inputs: since, until, account_id.

get_inboxC

Get detailed information about a specific inbox including channel configuration.

Inputs: inbox_id (required), account_id.

get_inbox_agent_botA

Get the agent bot associated with a specific inbox, if any.

Inputs: inbox_id (required), account_id.

get_inbox_label_matrix_reportB

Get a matrix report of conversations grouped by inbox and label (via API v2). Useful for understanding label distribution across inboxes.

Inputs: since, until, inbox_ids, label_ids, +1 more.

get_outgoing_messages_reportB

Get outgoing messages count grouped by entity (via API v2). Shows message volume per agent, team, inbox, or label.

Inputs: group_by (required), since, until, account_id.

get_profileC

Get the profile information of the authenticated user/agent.

Inputs: account_id.

get_report_summaryB

Get a summary report with aggregated metrics for a time period (via API v2). Includes conversations_count, incoming/outgoing messages, avg response/resolution times.

Inputs: id, type, since, until, +3 more.

get_teamC

Get detailed information about a specific team.

Inputs: team_id (required), account_id.

get_team_membersA

Get the list of agents in a specific team.

Inputs: team_id (required), account_id.

list_agentsB

List all agents in the Chatwoot account with their roles and availability status.

Inputs: account_id.

list_automation_rulesA

List all automation rules in the Chatwoot account.

Inputs: account_id.

list_canned_responsesB

List all canned (pre-written) responses. These are quick reply templates for agents.

Inputs: account_id.

list_contactsB

List contacts in the Chatwoot account with pagination. Returns contact name, email, phone, and metadata.

Inputs: page, sort, account_id.

list_conversationsB

List conversations with optional filters for status, assignee, inbox, team, and labels.

Inputs: page, labels, status, team_id, +3 more.

list_custom_attributesB

List all custom attribute definitions. Can filter by model type (contact or conversation).

Inputs: model, account_id.

list_custom_filtersB

List all saved custom filters. Can filter by type (conversation, contact, or report).

Inputs: account_id, filter_type.

list_inbox_agentsC

List all agents assigned to a specific inbox.

Inputs: inbox_id (required), account_id.

list_inboxesA

List all inboxes (channels) in the Chatwoot account. Shows channel type, name, and configuration.

Inputs: account_id.

list_integrationsB

List all available integrations (apps) in the Chatwoot account.

Inputs: account_id.

list_labelsB

List all labels available in the Chatwoot account.

Inputs: account_id.

list_messagesB

Get all messages in a conversation, ordered chronologically.

Inputs: conversation_id (required), account_id.

list_teamsB

List all teams in the Chatwoot account.

Inputs: account_id.

list_webhooksC

List all registered webhooks in the Chatwoot account.

Inputs: account_id.

merge_contactsA

Merge two contacts into one. The base contact remains and receives all data (conversations, labels, custom attributes) from the mergee contact. The mergee contact is permanently deleted.

Inputs: base_contact_id (required), mergee_contact_id (required), account_id.

remove_inbox_agentsC

Remove one or more agents from an inbox.

Inputs: inbox_id (required), user_ids (required), account_id.

remove_team_membersC

Remove one or more agents from a team.

Inputs: team_id (required), user_ids (required), account_id.

search_contactsC

Search contacts by name, email, phone number, or identifier. Returns matching contacts.

Inputs: query (required), page, account_id.

send_messageB

Send a message in a conversation. Can be a regular reply or a private note (visible only to agents).

Inputs: content (required), conversation_id (required), private, account_id, +1 more.

set_conversation_custom_attributesB

Set custom attributes on a conversation. Useful for tagging conversations with metadata like order IDs, categories, etc.

Inputs: conversation_id (required), custom_attributes (required), account_id.

set_conversation_priorityC

Set the priority level of a conversation.

Inputs: priority (required), conversation_id (required), account_id.

update_automation_ruleC

Update an existing automation rule.

Inputs: rule_id (required), name, actions, account_id, +3 more.

update_canned_responseC

Update an existing canned response template.

Inputs: canned_response_id (required), content, account_id, short_code.

update_contactB

Update an existing contact. Only provided fields will be updated.

Inputs: contact_id (required), name, email, account_id, +2 more.

update_conversation_statusC

Change the status of a conversation (open, resolved, pending, or snoozed).

Inputs: status (required), conversation_id (required), account_id.

update_custom_attributeC

Update an existing custom attribute definition.

Inputs: attribute_id (required), account_id, default_value, attribute_values, +2 more.

update_custom_filterC

Update an existing custom filter.

Inputs: filter_id (required), name, query, account_id.

update_inbox_agentsA

Replace the agent list for an inbox. All agents except those in user_ids will be removed.

Inputs: inbox_id (required), user_ids (required), account_id.

update_labelB

Update an existing label. Only provided fields will be updated.

Inputs: label_id (required), color, title, account_id, +2 more.

update_teamB

Update an existing team. Only provided fields will be updated.

Inputs: team_id (required), name, account_id, description, +1 more.

update_team_membersA

Replace the agent list for a team. Sets exactly the provided user IDs as team members.

Inputs: team_id (required), user_ids (required), account_id.

update_webhookC

Update an existing webhook URL or subscriptions.

Inputs: webhook_id (required), url, account_id, subscriptions.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 81 tools

    Disambiguation3/5

    Most tools target distinct resources and actions, but the reporting surface has several overlapping metrics tools (get_account_report, get_report_summary, get_conversation_statistics, get_conversation_metrics, get_conversation_counts, and multiple specialized reports) that could confuse an agent selecting the right report.

    Naming Consistency5/5

    Tool names consistently use snake_case verb_noun patterns (list_, get_, create_, update_, delete_, add_, remove_, set_, filter_). The only minor exception is chatwoot_health, but it remains clear and does not disrupt the overall convention.

    Tool Count1/5

    With 81 tools, the server is far above the typical well-scoped range of 3-15 and exceeds the rubric's 50+ threshold for extreme mismatch. Even for a broad Chatwoot API, this surface is too large for reliable agent selection.

    Completeness4/5

    The tool set covers a very broad range of Chatwoot resources: contacts, conversations, messages, labels, teams, inbox agents, webhooks, canned responses, custom attributes, automation rules, and reporting. Minor gaps exist, such as no delete_conversation, no create/update/delete inbox, and limited message updating, but core workflows are largely covered.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Exposes the full Chatwoot API as 129 tools for AI assistants, enabling account, contact, conversation, message, inbox, team, report, help center, automation, and custom attribute management, plus exclusive Kanban and scheduled message features.
      16 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables assistants to read and modify contacts, conversations, messages, pipelines, tasks, inboxes, and AI agents through the CRM REST API, using separate read-only or read-write tool sets. Runs over local stdio or stateless Streamable HTTP with token-based scope separation.
      17
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to list and retrieve conversations, read and send messages or internal notes, and toggle conversation status through the Chatwoot API.
      5
      MIT