Skip to main content
Glama
minholi

chatwoot-mcp

by minholi

chatwoot-mcp

An MCP (Model Context Protocol) server that exposes Chatwoot analytics data to AI assistants. All tools are read-only.

Features

  • 32 MCP tools covering conversations, agents, inboxes, teams, labels, CSAT, Captain AI, real-time metrics, and contacts

  • Two transport modes: stdio for Claude Desktop, HTTP for claude.ai remote connector

  • Multi-tenant HTTP mode: each user provides their own Chatwoot credentials per request

  • Dual output format: markdown (human-readable) or json for all tools

  • Period shortcuts: built-in ranges like hoje, 7d, 30d, 90d for all time-series queries

Related MCP server: Clamp Analytics MCP Server

Requirements

  • Python 3.11+

  • uv package manager

  • A Chatwoot account with API access

Installation

git clone https://github.com/minholi/chatwoot-mcp.git
cd chatwoot-mcp
uv sync

Configuration

Copy .env.example to .env and fill in your credentials:

cp .env.example .env
CHATWOOT_URL=https://your-instance.chatwoot.com
CHATWOOT_ACCOUNT_ID=1
CHATWOOT_API_TOKEN=your_api_token_here

Your API token can be found in Chatwoot under Profile Settings → Access Token.

Usage

Stdio mode (Claude Desktop)

Run the server directly — credentials come from the .env file:

uv run python main.py

To integrate with Claude Desktop, add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "chatwoot": {
      "command": "uv",
      "args": ["run", "python", "main.py"],
      "cwd": "/path/to/chatwoot-mcp",
      "env": {
        "CHATWOOT_URL": "https://your-instance.chatwoot.com",
        "CHATWOOT_ACCOUNT_ID": "1",
        "CHATWOOT_API_TOKEN": "your_api_token_here"
      }
    }
  }
}

HTTP mode (claude.ai remote connector)

Start the server in HTTP mode:

uv run python main.py --transport http --port 8000

Each request must include a composite key in the Authorization or X-API-Key header:

Authorization: Bearer https://your-instance.chatwoot.com|account_id|api_token

This allows multiple users to connect with their own credentials without server-side configuration.

Available endpoints:

Endpoint

Description

GET /

Service info

GET /health

Health check

POST /mcp

MCP protocol (stateless)

Docker

docker compose up -d

The compose file reads from .env and runs in HTTP mode on http://127.0.0.1:8000 by default. Set MCP_HOST_PORT in .env to change the exposed port.

Available tools

Overview

Tool

Description

chatwoot_get_summary

Account summary: conversation counts, response times, resolution rate, CSAT

chatwoot_get_bot_summary

Bot performance: handoffs, autonomous resolution rate, average response time

chatwoot_get_conversation_traffic

Heat map of conversation volume by hour and day of week

Agents

Tool

Description

chatwoot_list_agents

List all agents with ID, email, and availability status

chatwoot_get_agent_performance

Per-agent metrics: open/resolved conversations, response time, CSAT

Conversations

Tool

Description

chatwoot_list_conversations

List conversations with filters (status, assignee, inbox, team, label)

chatwoot_search_conversations

Full-text search across conversations and messages

chatwoot_get_conversation

Full details of a specific conversation

chatwoot_get_conversation_messages

Complete message history of a conversation

Labels

Tool

Description

chatwoot_list_labels

List all labels with ID, color, and description

chatwoot_get_label_performance

Performance metrics for a specific label

Inboxes

Tool

Description

chatwoot_list_inboxes

List all inboxes (WhatsApp, email, widget, etc.)

chatwoot_get_inbox_performance

Performance metrics for a specific inbox

Teams

Tool

Description

chatwoot_list_teams

List all teams

chatwoot_get_team_performance

Performance metrics for a specific team

Captain AI

Tool

Description

chatwoot_list_captain_assistants

List AI assistants configured in the account

chatwoot_get_captain_metrics

AI assistant performance metrics

chatwoot_get_captain_faq_stats

FAQ usage and effectiveness statistics

chatwoot_get_captain_overview

Period-to-period comparison overview

chatwoot_get_captain_resolution_flow

Funnel of resolution steps

chatwoot_get_captain_resolution_trend

Resolution rate trend over time

CSAT

Tool

Description

chatwoot_get_csat_responses

Survey responses with filters (period, rating, inbox, team)

chatwoot_get_csat_metrics

Aggregated CSAT summary with breakdown by rating

Real-time

Tool

Description

chatwoot_get_live_metrics

Real-time counts: open, unattended, unassigned, pending

chatwoot_get_live_grouped_metrics

Real-time conversations grouped by team or agent

Contacts

Tool

Description

chatwoot_search_contacts

Search contacts by name, email, phone, or identifier

chatwoot_get_contact

Full contact details

chatwoot_get_contact_conversations

Conversation history of a contact

Advanced reports

Tool

Description

chatwoot_get_inbox_label_matrix

Cross-distribution of conversations between inboxes and labels

chatwoot_get_first_response_distribution

Histogram of first-response-time distribution

Development

# Lint and format
uv run ruff check src/ main.py
uv run ruff format src/ main.py

# Run tests
uv run pytest

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides AI assistants with access to Lumenore's analytics capabilities, enabling natural language queries for data insights, advanced analytics (trends, predictions, correlations, outliers), and real-time data processing with zero persistent storage.
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Provides AI assistants with read access to Clamp analytics data including pageviews, visitors, referrers, and custom events. Enables traffic analysis, conversion funnel evaluation, and metric alerts through natural language queries.
    33
    32
    2
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    Provides AI assistants with read-only access to Secureframe's compliance data, enabling querying of security controls, tests, users, vendors, and more across frameworks like SOC 2 and ISO 27001.
    8
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to query internal business data for insights into customers, revenue, subscriptions, sales, and churn through controlled, read-only MCP tools.
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/minholi/chatwoot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server