Skip to main content
Glama
chatwoot-mcp
by md-riaz

Chatwoot MCP

Local Node/TypeScript MCP split for read-only Chatwoot analytics.

This service is intended to replace the MCP surface of the current Python combined server after shadow testing. It does not process Chatwoot webhooks and does not generate embeddings.

Current Scope

This repo has Node/TypeScript registrations for all 66 Python MCP tools from the previous combined server, plus Node-first read-only tools for clearer agent workflows.

For recent conversation audit requests like "last 7 days all conversations summary per inbox", agents should use get_recent_resolved_conversation_summaries_by_inbox. It returns cached resolved conversations grouped by account/inbox with each Chatwoot conversation ID and a compact transcript summary. If the user names an account, brand, inbox, product, or channel, call list_available_chatwoot_scope first and pass selected account_id and/or inbox_ids.

Semantic/vector tools remain embedding-free in this repo. They call the split Python embedding service through:

EMBEDDING_SERVICE_URL=http://127.0.0.1:8000
EMBEDDING_API_KEY=YOUR_EMBEDDING_SERVICE_X_API_KEY

Tool parity notes are tracked in docs/PORTING_CHECKLIST.md.

Related MCP server: openpanel-mcp

Transports

Default mode is stdio:

npm run build
npm start

HTTP mode:

npm run build
npm run start:http

Legacy SSE compatibility mode uses the same HTTP server:

npm run start:sse

Routes are mounted under BASE_PATH:

  • GET ${BASE_PATH}/health

  • POST/GET ${BASE_PATH}/mcp for Streamable HTTP

  • GET ${BASE_PATH}/sse for legacy SSE

  • POST ${BASE_PATH}/messages for legacy SSE client messages

If MCP_API_KEY is set, Authorization: Bearer <key> is required.

Local Setup

npm install
cp .env.example .env
npm run build
npm run start:http

Windows PowerShell:

npm install
Copy-Item .env.example .env
npm run build
npm run start:http

Shadow Testing

Run locally with a non-production port/path:

PORT=3010
BASE_PATH=/node-mcp

Then compare selected tools against the live Python MCP before exposing this behind Nginx.

Nginx Notes

Use path-preserving proxying. Do not depend on rewrite-only behavior because SSE advertises the POST message URL back to clients.

location /node-mcp/ {
    proxy_pass http://127.0.0.1:3010/node-mcp/;
    proxy_http_version 1.1;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Authorization $http_authorization;
    proxy_buffering off;
    proxy_read_timeout 3600s;
}

Production Safety

Keep the live Python MCP endpoint unchanged until:

  1. Every required tool has Node parity.

  2. Date/timezone output matches expected semantics.

  3. ChatGPT/Codex/Claude clients can connect to the shadow path.

  4. A rollback path is documented.

Available Tools

67 tools
cluster_feature_requestscluster_feature_requestsC

Product planning: cluster cached resolved feature-request conversations into ranked demand themes.

Inputs: days, limit, account_id.

compare_chatwoot_accountscompare_chatwoot_accountsC

Side-by-side comparison of cached resolved Chatwoot accounts.

Inputs: days, account_ids.

compare_resolved_issue_periodscompare_resolved_issue_periodsB

Compare cached resolved conversation volume between two explicit date ranges using resolved_at.

Inputs: period1_end (required), period2_end (required), period1_start (required), period2_start (required), +1 more.

find_chatwoot_accountsfind_chatwoot_accountsA

Fuzzy-searches accessible account/workspace names and returns exact account_id values.

Inputs: query (required), limit.

find_chatwoot_inboxesfind_chatwoot_inboxesC

Searches live Chatwoot inbox names/IDs across accessible accounts. A brand can match Messenger, WhatsApp, and Livechat.

Inputs: query (required), limit, account_id.

find_customers_by_exact_issue_keywordfind_customers_by_exact_issue_keywordC

Find customers whose cached resolved transcripts mention a specific exact issue keyword.

Inputs: issue_keyword (required), account_id.

find_similar_resolved_conversationsfind_similar_resolved_conversationsC

Find other cached conversations with similar meaning or issue pattern after a conversation ID is known.

Inputs: conversation_id (required), limit, account_id.

find_similar_transcript_chunksfind_similar_transcript_chunksC

Find semantically similar chunks after a cached transcript chunk ID is known.

Inputs: chunk_id (required), limit, account_id.

generate_current_month_resolved_support_reportgenerate_current_month_resolved_support_reportC

Generate current calendar-month resolved support report.

Inputs: account_id.

generate_current_quarter_resolved_support_reportgenerate_current_quarter_resolved_support_reportC

Generate current calendar-quarter resolved support report.

Inputs: account_id.

generate_resolved_support_report_for_date_rangegenerate_resolved_support_report_for_date_rangeC

Management report over an explicit inclusive date range. Includes inbox-wise breakdown.

Inputs: to_date (required), from_date (required), limit, account_id.

generate_weekly_resolved_team_leader_summarygenerate_weekly_resolved_team_leader_summaryC

Team-leader weekly resolved-support summary. timeframe must be this_week or last_week.

Inputs: timeframe, account_id.

get_agent_label_mixget_agent_label_mixC

Show which Chatwoot labels/categories each agent handled.

Inputs: days, account_id.

get_agent_performance_reportget_agent_performance_reportB

One-agent report with fuzzy name matching for misspellings, workload, SLA, issue mix, channel mix, slow conversations, and risk samples.

Inputs: days, limit, account_id, agent_name.

get_agent_resolution_channel_mixget_agent_resolution_channel_mixC

Show which channels each agent resolves most often.

Inputs: days, account_id.

get_agent_resolution_workloadget_agent_resolution_workloadC

Compare resolved-conversation workload counts by support agent from cached Chatwoot data.

Inputs: days, account_id.

get_agent_sla_metricsget_agent_sla_metricsC

Compare per-agent first-response and resolution timing from cached timestamps.

Inputs: days, limit, account_id, agent_name.

get_agent_wrong_label_assignmentsget_agent_wrong_label_assignmentsB

QA heuristic: agents and resolved conversations where labels may be wrong based on transcript keywords.

Inputs: days, limit, account_id.

get_cached_conversation_volume_by_statusget_cached_conversation_volume_by_statusC

Group cached database conversations by stored Chatwoot status.

Inputs: account_id.

get_cache_sync_statusGet Cache Sync StatusB

Use to check MCP cache freshness, latest synced Chatwoot activity, vector coverage, contact identity coverage, and SLA timestamp coverage.

Inputs: account_id.

get_chatwoot_native_inbox_breakdownget_chatwoot_native_inbox_breakdownC

Native read-only inbox-wise breakdown. Native resolutions_count counts resolution events, not unique conversations.

Inputs: since (required), until (required), limit, metric, +3 more.

get_chatwoot_native_reportChatwoot Native ReportB

Use only when user explicitly needs live/current/open/all-statuses Chatwoot UI report numbers or benchmarking against native reports. Native resolutions_count counts resolution events, not unique conversations.

Inputs: since (required), until (required), id, metric, +4 more.

get_churn_risk_signal_conversationsget_churn_risk_signal_conversationsD

Churn Risk Signals

Inputs: days, limit, account_id.

get_customer_resolved_historyget_customer_resolved_historyC

Find cached resolved support history by contact name.

Inputs: contact_name (required), account_id.

get_customer_resolved_history_by_identityget_customer_resolved_history_by_identityC

Find cached resolved customer history by contact_id, contact_email, or contact_name.

Inputs: limit, account_id, contact_id, contact_name, +1 more.

get_customer_unresolved_issue_signalsget_customer_unresolved_issue_signalsC

Customer-specific resolved conversations where transcript suggests issue remained open when marked resolved.

Inputs: contact_name (required), days, limit, account_id.

get_daily_resolved_conversation_volumeDaily Resolved Conversation VolumeB

Use to show cached resolved Chatwoot conversation volume by report timezone day based on latest cached resolution timestamp.

Inputs: account_id.

get_emerging_resolved_issue_labelsget_emerging_resolved_issue_labelsB

Identify labels/categories spiking in last 7 days compared with previous 23 days.

Inputs: limit, account_id.

get_escalation_signal_conversationsget_escalation_signal_conversationsD

Escalation Signals

Inputs: days, limit, account_id.

get_first_response_time_reportget_first_response_time_reportC

Account-level first-response timing from cached Chatwoot timestamps.

Inputs: account_id.

get_frustration_signal_conversationsget_frustration_signal_conversationsD

Frustration / Waiting Signals

Inputs: days, limit, account_id.

get_label_conversation_examplesget_label_conversation_examplesC

Cached resolved conversation examples for one specific label/category.

Inputs: issue_label (required), account_id.

get_negative_friction_conversationsget_negative_friction_conversationsD

Negative/Friction Conversations

Inputs: days, limit, account_id.

get_pain_point_resolution_statusget_pain_point_resolution_statusC

Compare recent vs previous cached resolved pain-point volume.

Inputs: days, account_id.

get_raw_bug_report_snippetsget_raw_bug_report_snippetsC

Pull raw cached resolved bug/error/not-working transcript snippets.

Inputs: days, limit, account_id.

get_raw_feature_request_snippetsget_raw_feature_request_snippetsC

Pull raw cached resolved transcript snippets that look like feature requests.

Inputs: days, limit, account_id.

get_raw_product_pain_point_snippetsget_raw_product_pain_point_snippetsC

Pull raw cached resolved transcript snippets mentioning product pain points.

Inputs: days, limit, account_id.

get_recent_resolved_conversation_summaries_by_inboxGet recent resolved conversation summaries by inboxA

Return cached resolved conversations from the last N days grouped by account and inbox, including each Chatwoot conversation ID and a compact transcript-based summary. Use this for prompts like 'last 7 days all conversations summary per inbox', 'summarize conversations with IDs by inbox', or recent resolved chat audit. This uses cached resolved conversations; do not use for currently open/live backlog unless user explicitly asks for live/open data. If user mentions account, brand, inbox, product, or channel, call list_available_chatwoot_scope first, then pass selected account_id and/or inbox_ids.

Inputs: days (required), inbox_ids, account_id, include_transcript_excerpt, +1 more.

get_repeat_customer_contactsget_repeat_customer_contactsC

Find customers/contact names with multiple cached resolved conversations.

Inputs: days, limit, account_id.

get_resolution_time_reportget_resolution_time_reportC

Account-level resolution timing from cached resolved Chatwoot timestamps.

Inputs: account_id.

get_resolved_conversation_contextget_resolved_conversation_contextC

Full cached metadata plus transcript chunks for an exact resolved conversation ID.

Inputs: conversation_id (required), account_id.

get_resolved_conversation_outcomeget_resolved_conversation_outcomeB

For one resolved conversation ID: how it ended, solved, and who resolved it.

Inputs: conversation_id (required), account_id.

get_resolved_conversation_summaryget_resolved_conversation_summaryC

Quick brief of one exact Chatwoot conversation ID from resolved cache.

Inputs: conversation_id (required), account_id.

get_resolved_conversations_with_unresolved_signalsget_resolved_conversations_with_unresolved_signalsC

Resolved conversations where transcript suggests customer issue remained unresolved.

Inputs: days, label, limit, channel, +2 more.

get_resolved_conversation_volume_by_channelget_resolved_conversation_volume_by_channelC

Group cached resolved conversation counts by channel type.

Inputs: account_id.

get_resolved_conversation_volume_by_inboxResolved Conversation Volume By InboxB

Use by default for account-level or one inbox/channel chat-count questions over cached resolved conversations. Date filters use latest cached resolved_at and count unique conversations, not repeated resolution events.

Inputs: days, limit, to_date, inbox_id, +3 more.

get_resolved_conversation_volume_by_inbox_brandget_resolved_conversation_volume_by_inbox_brandC

Brand/product/service chat count across matching inboxes/channels. All means all matching resolved inboxes/conversations.

Inputs: query (required), days, limit, to_date, +2 more.

get_resolved_sentiment_signal_reportget_resolved_sentiment_signal_reportC

High-level cached resolved-conversation sentiment signal report based on transcript keywords.

Inputs: days, account_id.

get_slow_conversationsget_slow_conversationsB

Find resolved conversations that were slow or show late first response, repeated follow-up, looping, waiting, or escalation signals.

Inputs: days, limit, account_id, min_resolution_hours.

get_top_resolved_issue_labelsget_top_resolved_issue_labelsC

Rank labels/categories by count across cached resolved conversations.

Inputs: days, limit, account_id.

get_transcript_chunk_contextget_transcript_chunk_contextC

Get surrounding chunk context from same conversation for a cached transcript chunk ID.

Inputs: chunk_id (required), account_id.

get_vip_priority_conversationsget_vip_priority_conversationsB

List cached resolved conversations tagged VIP/priority or with VIP-like contact names.

Inputs: limit, account_id.

keyword_search_resolved_conversationskeyword_search_resolved_conversationsC

Exact keyword or phrase search across cached resolved Chatwoot transcripts.

Inputs: query (required), days, limit, account_id.

list_available_chatwoot_accountsList Chatwoot AccountsA

Use to list Chatwoot accounts/workspaces accessible with CHATWOOT_API_TOKEN plus cached conversation coverage. Use before account-scoped reports when account_id is uncertain.

Inputs: no named parameters.

list_available_chatwoot_scopeList Chatwoot Scope MapB

Use first before deciding account_id/inbox_id when user mentions any account, brand, product, service, inbox, channel, Facebook, Messenger, WhatsApp, live chat, or ambiguous brand-like term. Lists account/workspace and all live inbox names/IDs/channels.

Inputs: account_id, limit_per_account.

list_chatwoot_agentslist_chatwoot_agentsC

Lists support agents found in cached resolved conversations, with optional fuzzy name search.

Inputs: days, limit, query, account_id.

list_chatwoot_inboxeslist_chatwoot_inboxesB

Use to identify live Chatwoot inbox IDs/names before resolved-cache inbox analysis or explicitly live inbox questions.

Inputs: limit, account_id.

list_chatwoot_labelslist_chatwoot_labelsC

Use to list live Chatwoot labels from the Chatwoot API.

Inputs: limit, account_id.

list_chatwoot_teamslist_chatwoot_teamsB

Use to list live Chatwoot teams from the Chatwoot API. Read-only.

Inputs: limit, account_id.

list_live_chatwoot_agentslist_live_chatwoot_agentsB

Use to list live Chatwoot account agents/users from the Chatwoot API. Read-only.

Inputs: limit, account_id.

rank_bug_reports_by_frequencyrank_bug_reports_by_frequencyC

Engineering triage: group cached resolved bug/error/not-working conversations into ranked failure themes with severity.

Inputs: days, limit, account_id.

search_chatwoot_contacts_livesearch_chatwoot_contacts_liveC

Use for live Chatwoot contact lookup by customer name, email, phone, or identifier.

Inputs: query (required), page, limit, account_id.

search_chatwoot_livesearch_chatwoot_liveB

Use only when the user needs live/current/open/unresolved Chatwoot data, exact terms not found in resolved cache, or items not yet synced. This is not semantic search.

Inputs: query (required), page, account_id, search_type.

search_resolved_transcript_snippetssearch_resolved_transcript_snippetsB

Precise cached transcript snippets for an exact keyword. Returns chunk-level matches.

Inputs: query (required), limit, account_id.

semantic_search_resolved_conversationssemantic_search_resolved_conversationsC

Semantic search across cached resolved Chatwoot conversations. Requires EMBEDDING_SERVICE_URL.

Inputs: query (required), days, top_k, to_date, +2 more.

summarize_resolved_conversation_batchsummarize_resolved_conversation_batchC

Compact status, label, and agent overview for multiple conversation IDs.

Inputs: conversation_ids (required), account_id.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.3/5.0

    Scored across 67 tools

    Disambiguation2/5

    Many tools overlap heavily across volume/reporting, signal detection, agent analytics, and search, forcing agents to choose among near-duplicates such as by-inbox vs by-channel vs by-brand volume tools and multiple resolved-signal tools. Descriptions add some guidance, but with 67 tools there are numerous unclear boundaries and likely misselections.

    Naming Consistency4/5

    Most names follow a predictable verb_noun style such as list_chatwoot_labels, get_resolved_conversation_volume_by_inbox, and search_resolved_transcript_snippets. There are minor deviations in verb choice (find/search/list/get) and some very long compound names, but the convention remains mostly readable and consistent.

    Tool Count1/5

    67 tools is far beyond an appropriate surface for this server and creates a sprawling catalogue of reporting, search, signal, and live-lookup variants. The count is extreme even for a broad analytics server and makes tool selection unnecessarily difficult.

    Completeness3/5

    The server appears focused on read-only analytics and search over cached resolved conversations, and it covers many reporting angles such as volume, agents, labels, signals, and transcript search. However, it lacks write/management operations for conversations, labels, agents, contacts, and teams, and has gaps around live conversation retrieval/context, so lifecycle coverage is incomplete.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Minimal MCP server for OpenPanel analytics, enabling queries for landing pages, page events, and tracked event names.
      -
    • F
      license
      B
      quality
      D
      maintenance
      A read-only stdio-based MCP server that provides tools to query Plausible Analytics data, including listing sites, fetching statistics with metrics/dimensions/filters, and getting realtime visitor counts.
      3
      -
    • A
      license
      A
      quality
      D
      maintenance
      Read-only MCP server for Twilio call data, providing tools to search calls, fetch recordings and transcripts, list agents, and generate summaries while explicitly handling timezone and duration measurement discrepancies.
      6
      MIT