mcp-chatwoot
Provides tools for managing a Chatwoot instance through its APIs, including conversations, contacts, messages, agents, teams, inboxes, labels, canned responses, reports, webhooks, custom attributes, automation rules, custom filters, and optional Public, Platform, Enterprise, and Help Center endpoints.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-chatwoot Show my open Chatwoot conversations and their latest messages"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-chatwoot
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_idto target any accountDual 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 |
|
|
Public | 12 |
|
| N/A |
Platform | 17 |
|
|
|
Enterprise | 8 |
|
|
|
Help Center | 15 |
|
|
|
Core Tools (81 — always enabled)
Category | Tools |
Health |
|
Contacts |
|
Contact Labels |
|
Conversations |
|
Messages |
|
Agents |
|
Teams |
|
Inboxes |
|
Inbox Members |
|
Labels |
|
Canned Responses |
|
Reports (v2) |
|
Webhooks |
|
Custom Attributes |
|
Automation Rules |
|
Custom Filters |
|
Integrations |
|
Profile |
|
Public API Tools (12 — MCP_ENABLE_PUBLIC_API=true)
Widget/client-facing API using inbox_identifier + contact_identifier for auth.
Category | Tools |
Contacts |
|
Conversations |
|
Messages |
|
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 |
|
Agent Bots |
|
Users |
|
Account Users |
|
Enterprise Tools (8 — MCP_ENABLE_ENTERPRISE=true)
Admin and Enterprise-only endpoints. See docs/ENTERPRISE.md.
Category | Tools |
Audit Logs |
|
Reporting Events |
|
Account Agent Bots |
|
Help Center Tools (15 — MCP_ENABLE_HELP_CENTER=true)
Knowledge base management for portals, articles, and categories.
Category | Tools |
Portals |
|
Articles |
|
Categories |
|
Related MCP server: @indica-facil/mcp-chatwoot
Quick Start
Option A: Docker (recommended for production)
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:latestOption B: Local install
1. Clone and build
git clone https://github.com/RenatoAscencio/mcp-chatwoot.git
cd mcp-chatwoot
npm install
npm run build2. 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_tokenWhere to find your API token: In Chatwoot, go to Profile Settings → Access Token.
3. Run
STDIO mode (for Claude Desktop / Claude Code):
npm startHTTP mode (for remote access):
MCP_MODE=http AUTH_TOKEN=your_secret npm startClaude 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_IDis optional. When omitted, each tool call requiresaccount_idas 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 |
| Yes | — | Chatwoot instance URL |
| No | — | Default account ID (if omitted, |
| Yes | — | Application API access token |
| No |
| Transport mode: |
| No |
| HTTP server port |
| No | — | Bearer token for HTTP mode |
| No |
| Log level: |
| No |
| Block destructive Application API operations |
| No |
| Enable Public/Client API tools (12) |
| No |
| Enable Platform API tools (17) |
| No | — | Platform App API token (required if Platform enabled) |
| No |
| Block Platform API writes/deletes |
| No |
| Enable Enterprise/Niche tools (8) |
| No |
| 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 loggingDevelopment
# 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 buildMulti-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
docs/API_COVERAGE.md — Application API coverage matrix
docs/SCOPE.md — Tool scope and safe-mode behavior
docs/PLATFORM_SECURITY.md — Platform API security guide
docs/ENTERPRISE.md — Enterprise endpoints documentation
CHANGELOG.md — Release history
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:latestOr use docker-compose.yml from the repo as a starting point.
Contributing
Contributions are welcome. Please:
Fork the repository
Create a feature branch (
git checkout -b feature/my-feature)Run tests (
npm test) and ensure they passCommit with a descriptive message
Open a Pull Request
For larger changes, please open an issue first to discuss.
License
Available Tools
81 toolsadd_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
Scored across 81 tools
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.
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.
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.
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
Related MCP Connectors
Read conversations and contacts; add replies or notes, set status and assign in Chatwoot.
Connect your AI agent to 300+ methods and 100+ live tools
Backend platform for AI agents: one agentstack.execute tool runs batched steps over +700 actions (hosting, storage, auth, payments, CRM, app builder).
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Docker containers, execute commands inside them, and inspect container information through a minimalist set of tools supporting both stdio and HTTP transports.31MIT
- AlicenseNot gradedqualityDmaintenanceExposes 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 npmMIT

Evo CRM MCPofficial
AlicenseBqualityBmaintenanceEnables 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.17MIT- AlicenseAqualityCmaintenanceEnables AI assistants to list and retrieve conversations, read and send messages or internal notes, and toggle conversation status through the Chatwoot API.5MIT