1. Conduid
  2. Developer Tools
  3. Chatwoot MCP
MCP server · Developer Tools

Chatwoot MCP

Local-first Chatwoot MCP server with a setup panel and tools for reading and replying across inboxes

Unclaimed last commit 7 months ago devtools
35Low

Scored 17 days ago · breakdown

About Chatwoot MCP

Chatwoot MCP is an MCP server published by hugoblanc in the Developer Tools category: local-first Chatwoot MCP server with a setup panel and tools for reading and replying across inboxes.

The repository has 10 stars and 8 forks, with the last commit 7 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/hugoblanc/chatwoot-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Chatwoot MCP

Powered by Claude · Grounded in docs

I know everything about Chatwoot MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Chatwoot MCP Server

Model Context Protocol (MCP) server for Chatwoot API integration. Enables AI assistants to manage customer conversations, messages, and contacts in Chatwoot.

Features

  • Conversations Management: List, filter, and retrieve conversation details
  • Message Operations: Read message history and send new messages
  • Type-Safe: Built with TypeScript using OpenAPI-generated types
  • Flexible Auth: Supports both API token (recommended) and JWT authentication

Tools Provided

Conversations

  • chatwoot_list_conversations - List conversations with filtering (status, assignee, inbox)
  • chatwoot_get_conversation - Get detailed info for a specific conversation

Messages

  • chatwoot_list_messages - List all messages in a conversation
  • chatwoot_create_message - Send a message or create an internal note

Installation

Via npm (recommended)

npx chatwoot-mcp-server

Or install globally:

npm install -g chatwoot-mcp-server
chatwoot-mcp-server

From source

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

Configuration

Recommended: API Access Token

The simplest method using your Chatwoot API token (no expiration).

Get your API token:

  1. Log in to your Chatwoot account
  2. Click your avatar → Profile Settings
  3. Scroll to bottom → Copy your "Access Token"

Configure .env:

CHATWOOT_BASE_URL="https://your-chatwoot-instance.com"
CHATWOOT_API_TOKEN="your_api_token_here"

Alternative: JWT Authentication

Use email/password if API tokens don't work on your instance (requires password for token refresh).

CHATWOOT_BASE_URL="https://your-chatwoot-instance.com"
CHATWOOT_EMAIL="your@email.com"
CHATWOOT_PASSWORD="your_password"

Note: JWT tokens expire and require the password for auto-refresh.

Important for Self-Hosted Instances

If using nginx as reverse proxy (e.g., CapRover), add this to nginx config to support API tokens:

server {
    ...
    underscores_in_headers on;  # Required for api_access_token header
    ...
}

Usage

Using with Claude Code

claude mcp add chatwoot \
  -e CHATWOOT_BASE_URL="https://your-instance.com" \
  -e CHATWOOT_API_TOKEN="your_token" \
  -- npx chatwoot-mcp-server

Using with Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "chatwoot": {
      "command": "npx",
      "args": ["chatwoot-mcp-server"],
      "env": {
        "CHATWOOT_BASE_URL": "https://your-chatwoot-instance.com",
        "CHATWOOT_API_TOKEN": "your_api_token"
      }
    }
  }
}

Development Mode (from source)

npm run dev

Example Queries

Once connected, you can ask Claude things like:

  • "Show me all open conversations in account 3"
  • "What are the details of conversation #123?"
  • "List all messages in conversation #456"
  • "Send a reply to conversation #789 saying 'Thank you for contacting us!'"
  • "Add an internal note to conversation #101 about the customer's issue"

Testing

Run integration tests:

npm test

Watch mode:

npm run test:watch

Project Structure

chatwoot-mcp-server/
├── src/
│   ├── index.ts                  # Main server entry point
│   ├── constants.ts              # Shared constants
│   ├── chatwoot-types.ts         # Generated OpenAPI types
│   ├── services/
│   │   ├── chatwoot-client.ts    # API client with auth
│   │   ├── chatwoot-auth.ts      # JWT authentication
│   │   ├── token-cache.ts        # JWT token caching
│   │   └── error-handler.ts      # Error handling utilities
│   ├── schemas/
│   │   └── common.ts             # Shared Zod schemas
│   └── tools/
│       ├── conversations.ts      # Conversation tools
│       └── messages.ts           # Message tools
├── test/                         # Integration tests
├── swagger.json                  # Chatwoot OpenAPI spec
└── package.json

Development

Regenerating Types

If the Chatwoot API changes, regenerate types:

npm run generate-types

Adding New Tools

  1. Create a new file in src/tools/
  2. Define Zod schemas for input validation
  3. Implement the tool function
  4. Register the tool in src/index.ts

Building

npm run build

Builds TypeScript to JavaScript in the dist/ directory.

Troubleshooting

API Token Returns 401

If using a self-hosted instance with nginx, ensure underscores_in_headers on; is set in your nginx config. This is required because api_access_token contains underscores.

JWT Tokens Expire

If using JWT authentication, tokens expire (typically after 2 weeks). Keep CHATWOOT_PASSWORD in .env for automatic refresh, or switch to API token authentication.

Tech Stack

  • TypeScript - Type-safe development
  • openapi-fetch - Type-safe API client
  • openapi-typescript - Generate types from OpenAPI spec
  • Zod - Runtime input validation
  • @modelcontextprotocol/sdk - MCP server framework
  • Vitest - Testing framework

License

MIT

Contributing

Contributions are welcome! Additional tools that could be added:

  • Contact management (create, update, search)
  • Team and agent operations
  • Inbox configuration
  • Labels and custom attributes
  • Reports and analytics
  • Bulk operations

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Chatwoot MCP

How do I install Chatwoot MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Chatwoot MCP safe to use with an AI agent?

Its trust score is 35 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Chatwoot MCP still maintained?

The last commit was 7 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.