Token导航 LogoToken导航TokenDH.com
Tvplus MCP Chatwoot logo
运维云端stdio官方级别未说明来源级核验

Tvplus MCP Chatwoot

MCP Server

一个基于Model Context Protocol的Chatwoot服务器,用于通过AI工具管理对话、联系人、消息、代理、团队等。

工具数

133

提示词数

0

GitHub Stars

2

资源数

0
对话管理TypeScriptClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

RenatoAscencio

提供方

RenatoAscencio

最后核验

2026/5/17 20:23

运行时

Docker

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

docker run -d \

详细介绍

mcp-chatwoot

![Release](https://github.com/RenatoAscencio/mcp-chatwoot/releases) ![License](LICENSE) ](https://nodejs.org) ![TypeScript](https://www.typescriptlang.org/) ](https://github.com/RenatoAscencio/mcp-chatwoot/actions/workflows/docker-publish.yml) ![GHCR](https://github.com/RenatoAscencio/mcp-chatwoot/pkgs/container/mcp-chatwoot) ![MCP](https://modelcontextprotocol.io) ![Tools](#buckets-overview) ![Tests](#development)

MCP(模型上下文协议)服务器 查特沃特 --通过人工智能工具管理对话、联系人、消息、代理、团队等。

特性

  • 133工具 涵盖Chatwoot的应用程序、公共、平台、企业和帮助中心API
  • 模块化桶:每个API组都使用环境标志进行选择
  • 多账户:所有工具都接受可选 account_id 针对任何帐户
  • 双重运输:STDIO(克劳德桌面,克劳德代码)和HTTP/SSE(远程访问)
  • Docker就绪:带健康检查的多阶段构建
  • 会话管理:具有自动清理功能的多会话HTTP
  • 安全模式:在应用程序和平台API级别阻止破坏性操作
  • 已测试:Vitest+nock有240个测试

Buckets概述

Bucket工具启用标记身份验证安全模式
核心81永远在线CHATWOOT_API_TOKENMCP_SAFE_MODE (14封)
公共12MCP_ENABLE_PUBLIC_API=trueinbox_identifier
平台17MCP_ENABLE_PLATFORM_API=trueCHATWOOT_PLATFORM_API_TOKENMCP_PLATFORM_SAFE_MODE (11封)
企业8MCP_ENABLE_ENTERPRISE=trueCHATWOOT_API_TOKENMCP_SAFE_MODE (3封)
帮助中心15MCP_ENABLE_HELP_CENTER=trueCHATWOOT_API_TOKENMCP_SAFE_MODE (3封)

核心工具(81-始终启用)

类别工具
健康chatwoot_health
联系人list_contacts, get_contact, create_contact, update_contact, delete_contact, search_contacts, filter_contacts, get_contact_conversations, merge_contacts, get_contactable_inboxes
联系人标签get_contact_labels, add_labels_to_contact
对话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
消息send_message, list_messages, delete_message
代理list_agents, get_agent
团队list_teams, get_team, get_team_members, create_team, update_team, delete_team, add_team_members, update_team_members, remove_team_members
收件箱list_inboxes, get_inbox, get_inbox_agent_bot
收件箱成员list_inbox_agents, add_inbox_agents, update_inbox_agents, remove_inbox_agents
标签list_labels, create_label, update_label, delete_label
罐装回复list_canned_responses, create_canned_response, update_canned_response, delete_canned_response
报告 (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
网络钩子list_webhooks, create_webhook, update_webhook, delete_webhook
自定义属性list_custom_attributes, get_custom_attribute, create_custom_attribute, update_custom_attribute, delete_custom_attribute
自动化规则list_automation_rules, get_automation_rule, create_automation_rule, update_automation_rule, delete_automation_rule
自定义筛选器list_custom_filters, get_custom_filter, create_custom_filter, update_custom_filter, delete_custom_filter
集成list_integrations
简介get_profile

公共API工具(12- MCP_ENABLE_PUBLIC_API=true)

使用的小部件/面向客户端的API inbox_identifier + contact_identifier 用于身份验证。

类别工具
联系人public_create_contact, public_get_contact, public_update_contact
对话public_create_conversation, public_list_conversations, public_get_conversation, public_resolve_conversation, public_toggle_typing, public_update_last_seen
消息public_create_message, public_list_messages, public_update_message

平台API工具(17- MCP_ENABLE_PLATFORM_API=true)

超级管理操作。需要单独 CHATWOOT_PLATFORM_API_TOKEN。参见 docs/PLATFORM_SECURITY.md.

类别工具
账户platform_create_account, platform_get_account, platform_update_account, platform_delete_account
代理机器人platform_list_agent_bots, platform_create_agent_bot, platform_get_agent_bot, platform_update_agent_bot, platform_delete_agent_bot
用户platform_create_user, platform_get_user, platform_update_user, platform_delete_user, platform_get_user_sso_link
帐户用户platform_list_account_users, platform_create_account_user, platform_delete_account_user

企业工具(8-- MCP_ENABLE_ENTERPRISE=true)

仅限管理员和企业端点。看 docs/ENTERPRIS.md.

类别工具
审计日志enterprise_list_audit_logs
报告事件enterprise_get_account_reporting_events, enterprise_get_conversation_reporting_events
帐户代理机器人enterprise_list_agent_bots, enterprise_get_agent_bot, enterprise_create_agent_bot, enterprise_update_agent_bot, enterprise_delete_agent_bot

帮助中心工具(15-- MCP_ENABLE_HELP_CENTER=true)

门户、文章和类别的知识库管理。

类别工具
传送门helpcenter_list_portals, helpcenter_create_portal, helpcenter_get_portal, helpcenter_update_portal, helpcenter_delete_portal
条款helpcenter_list_articles, helpcenter_create_article, helpcenter_get_article, helpcenter_update_article, helpcenter_delete_article
分类helpcenter_list_categories, helpcenter_create_category, helpcenter_get_category, helpcenter_update_category, helpcenter_delete_category

快速开始

选项A:Docker(推荐用于生产环境)

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

选项B:本地安装

1.克隆和构建

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

2.配置

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

在哪里找到您的API代币:在Chatwoot,转到个人资料设置→ 访问令牌。

3.跑步

STDIO模式 (适用于克劳德桌面/Claude代码):

npm start

HTTP模式 (用于远程访问):

MCP_MODE=http AUTH_TOKEN=your_secret npm start

Claude桌面配置

增添 ~/.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"
      }
    }
  }
}
备注: CHATWOOT_ACCOUNT_ID 是可选的。如果省略,则每次工具调用都需要 account_id 作为参数,允许从单个实例使用多个帐户。

启用可选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"
      }
    }
  }
}

环境变量

变量必填默认描述
CHATWOOT_BASE_URL--Chatwoot实例URL
CHATWOOT_ACCOUNT_ID--默认帐户ID(如果省略, account_id 每次工具调用都需要)
CHATWOOT_API_TOKEN-应用程序API访问令牌
MCP_MODE没有stdio运输方式: stdiohttp
PORT没有3000HTTP服务器端口
AUTH_TOKEN没有--HTTP模式的承载令牌
LOG_LEVEL没有info日志级别: debug, info, warn, error
MCP_SAFE_MODE没有false块破坏性应用程序API操作
MCP_ENABLE_PUBLIC_API没有false启用公用/客户端API工具(12)
MCP_ENABLE_PLATFORM_API没有false启用平台API工具(17)
CHATWOOT_PLATFORM_API_TOKEN-平台应用程序API令牌(如果平台已启用,则为必需)
MCP_PLATFORM_SAFE_MODE没有true块平台API写入/删除
MCP_ENABLE_ENTERPRISE没有false启用企业/利基工具(8)
MCP_ENABLE_HELP_CENTER没有false启用帮助中心工具(15)

安全

应用程序API安全模式

MCP_SAFE_MODE=true,阻止14个破坏性核心工具和6个企业/帮助中心破坏性工具。看 docs/SCOPE.md 查看完整列表。

平台API安全模式

MCP_PLATFORM_SAFE_MODE=true (默认),阻止所有11个写入/删除平台API工具。只允许进行读取操作。看 docs/PLATFORM_SECURITY.md 了解详情。

建筑

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

发展

# 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

多账户支持

所有应用程序API工具都接受 account_id 参数。当 CHATWOOT_ACCOUNT_ID 设置为默认值 account_id 变为可选。当未设置时, account_id 每次工具调用都需要它——这使单个MCP实例能够为多个Chatwoot帐户提供服务。

文档

码头工人

预构建的多拱形映像(amd64+arm64)在每次发布时都会发布到GitHub容器注册表中:

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

或使用 docker-compose.yml 以回购为起点。

贡献

欢迎捐款。拜托:

  1. 分叉存储库
  2. 创建要素分支(git checkout -b feature/my-feature)
  3. 运行测试(npm test)并确保它们通过
  4. 用描述性消息提交
  5. 打开拉取请求

对于较大的更改,请先打开一个问题进行讨论。

许可证

目录标签

目录标签

对话管理TypeScriptClaudeAI工具集成本地部署多账户支持模块化API安全模式

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

运行时(runtime,运行环境)

Docker

工具数量(toolCount,工具数)

133

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP