Skip to main content
Glama
LibreDesk MCP

LibreDesk MCP

by Passe12345

libredesk-mcp

A Model Context Protocol server for Libredesk — the open-source omnichannel customer support desk.

Fork of metanmai/libredesk-mcp (MIT). The upstream history and the MIT LICENSE are kept. This fork refreshes the bundled spec to the current Libredesk API (v2.9.x) and keeps a drift check against Libredesk's routes.

Exposes the Libredesk REST API as MCP tools, one per operation of the bundled OpenAPI spec (the count is printed at startup). Writes are enabled by default; set LIBREDESK_MCP_READ_ONLY=true to register only GET operations (see Hardening).

Currently 97 operations: 81 from the published docs spec plus 16 from a hand-written overlay for v2.9.2 routes the docs lack (54 GET tools in read-only mode). Libredesk reference version: v2.9.2.

Tools

One tool per operation, grouped by API tag. Tools marked * are writes: they do not exist when LIBREDESK_MCP_READ_ONLY=true. The names come from the operationIds, so they can change when the spec is refreshed; update_ai_provider of v0.1.0 no longer exists upstream.

  • Agents — get_agents_compact (agent IDs for assignment, no admin permission needed), get_agents, create_agent *, get_current_agent, update_agent_availability *, delete_agent *, get_agent, update_agent *, revoke_api_key *, generate_api_key *

  • AI completions — ai_completion *, get_ai_prompts

  • Automations — get_automation_rules, get_automation_rule, create_automation_rule *, update_automation_rule *, toggle_automation_rule *, delete_automation_rule * (all need the "Manage automations" permission; reordering rules and the execution mode stay in the web UI)

  • Contact notes — get_contact_notes, create_contact_note *, delete_contact_note *

  • Contacts — get_contacts, create_contact *, get_contact, update_contact *, delete_contact *, block_contact *, export_contact, update_contact_custom_attributes *

  • Conversations — create_conversation *, get_all_conversations, get_assigned_conversations, get_unassigned_conversations, send_message *, get_message, delete_message *, retry_message *, get_conversation, update_team_assignee *, remove_team_assignee *, update_user_assignee *, remove_user_assignee *, update_conversation_assignee_last_seen *, get_messages, get_conversation_participants, update_conversation_priority *, update_conversation_status *, update_conversationtags *, get_view_conversations, get_team_unassigned_conversations, update_conversation_custom_attributes *, download_conversation_transcript, mark_conversation_as_unread *, get_mentioned_conversations, get_contact_page_visits, get_sidebar_counts, get_all_drafts, upsert_conversation_draft *, delete_conversation_draft *, apply_macro *

  • Custom attributes — get_custom_attributes

  • Health — health_check

  • Help center — get_public_help_center_article, public_help_center_search, get_public_help_center_tree

  • Inboxes — get_inboxes, get_inbox

  • Macros — get_macros, get_macros_compact, search_macros, get_macro (the macro to pass to apply_macro, listed under Conversations)

  • Media — media_upload *, serve_media

  • Reports — overview_charts, overview_counts, overview_csat, overview_message_volume, overview_sla, overview_tag_distribution

  • Search — search_contacts, search_conversations, search_messages, paginated_search_conversations, paginated_search_messages

  • Views — get_all_shared_views, get_shared_view, create_shared_view *, update_shared_view *, delete_shared_view * (all need the "Manage shared views" permission; a view cannot filter on the subject or content, only on status, priority, assignee, team, inbox, dates, SLA and tags)

  • Status and priority — get_priorities, get_statuses, create_status *, delete_status *, update_status *

  • Tags — get_tags, create_tag *, update_tag *, delete_tag *

  • Teams — get_teams_compact (team IDs for assignment, no admin permission needed), get_teams, create_team *, delete_team *, get_team, update_team *

Related MCP server: @indica-facil/mcp-chatwoot

Setup

1. Create an agent and an API key in Libredesk

Create a dedicated agent for the MCP (do not reuse a person's key or another integration's key), give it a role limited to what you need, then generate its API key: you get an api_key and an api_secret.

Suggested role for reading and triaging tickets (Admin > Teammates > Roles). Tick nothing in the Admin section:

Section

Permissions

Conversation

View conversation, View all conversations, View all unassigned conversations, View conversation messages

Conversation (to act on tickets)

Send private notes, Change conversation status, Change conversation priority, Add or remove conversation tags, Assign conversations to users / teams

Contact

View all contacts, View contact details, View contact notes

For read-only use keep only the "View" permissions and start the server with LIBREDESK_MCP_READ_ONLY=true. Do not grant "Send messages in conversations" unless the model should be able to reply to customers. Tools that need an Admin permission (agents, teams, inbox details, macro management, reports, tags and statuses management) answer 403 with such a role (to find who to assign a ticket to, use get_agents_compact and get_teams_compact, which need no Admin permission; update_user_assignee and update_team_assignee need the two "Assign conversations to ..." permissions); the role, not this server, is what limits the key.

2. Install a pinned local copy

Run a pinned local copy rather than npx -y: npx -y executes whatever the registry serves at that moment, and this fork is "private": true and never published. Clone it, install without lifecycle scripts, build once, and point your MCP host at the built file:

git clone <this repository> libredesk-mcp && cd libredesk-mcp
npm ci --ignore-scripts
npm run build

Note the absolute path of dist/index.js (pwd inside the clone, then append /dist/index.js). Rebuild with npm run build after every change: the host runs dist/index.js, not the sources.

3. Claude Code (CLI)

Register the built file at user scope, so the key lives in ~/.claude.json and never in a repository (--scope project would write it into a versioned .mcp.json):

claude mcp add-json libredesk --scope user '{
  "command": "node",
  "args": ["/absolute/path/to/libredesk-mcp/dist/index.js"],
  "env": {
    "LIBREDESK_URL": "https://libredesk.example.com",
    "LIBREDESK_API_KEY": "<api key of the MCP agent>",
    "LIBREDESK_API_SECRET": "<api secret of the MCP agent>"
  }
}'

Add "LIBREDESK_MCP_READ_ONLY": "true" to env for the read-only tool set. Restart your Claude Code session, then check:

claude mcp list              # libredesk should show as ✓ Connected
claude mcp get libredesk     # shows the stored configuration
claude mcp remove libredesk --scope user

To rotate the key, regenerate it on the agent in Libredesk, remove the server and add it again.

4. Claude Desktop

Edit the Claude Desktop configuration file (in the app: Settings > Developer > Edit Config), or open it directly:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the server under mcpServers (keep any servers already there):

{
  "mcpServers": {
    "libredesk": {
      "command": "/absolute/path/to/node",
      "args": ["/absolute/path/to/libredesk-mcp/dist/index.js"],
      "env": {
        "LIBREDESK_URL": "https://libredesk.example.com",
        "LIBREDESK_API_KEY": "<api key of the MCP agent>",
        "LIBREDESK_API_SECRET": "<api secret of the MCP agent>"
      }
    }
  }
}
  • Use the absolute path of node (which node on macOS, where node on Windows). A desktop app does not inherit your shell's PATH, so a bare node often fails, notably with nvm.

  • On Windows, double the backslashes in JSON paths (C:\\Users\\me\\libredesk-mcp\\dist\\index.js).

  • Quit Claude Desktop completely (Cmd+Q on macOS, not just closing the window) and reopen it. The Libredesk tools then appear in the tools menu of a conversation.

  • If the server does not start, read the log of the MCP server (macOS: ~/Library/Logs/Claude/mcp-server-libredesk.log). The server prints a readiness line on startup, e.g. ready — 91 tools loaded (writes enabled; uploads disabled).

  • The config file holds the key in clear text: keep it out of backups and screenshots you share.

5. Other MCP clients

Any host that starts a stdio MCP server accepts the same command / args / env block as in the Claude Desktop example (Cursor, Windsurf, etc.).

Network access

The server calls LIBREDESK_URL directly from the machine that runs it. If your instance sits behind an IP allow-list, a firewall or a CDN rule, that machine must be allowed in, otherwise every tool answers with an HTTP error such as 403.

Environment variables

Variable

Required

Description

LIBREDESK_URL

yes

Base URL of your Libredesk instance, no trailing slash. e.g. http://localhost:9000

LIBREDESK_API_KEY

yes

Agent API key from the Libredesk admin UI

LIBREDESK_API_SECRET

yes

Agent API secret paired with the key

LIBREDESK_MCP_READ_ONLY

no

Only the exact value true drops the write operations (POST/PUT/PATCH/DELETE), leaving the GET tools. Unset, writes are registered.

LIBREDESK_MCP_UPLOAD_DIR

no

Directory file uploads may read from. Unset, any tool argument that carries a file path is refused.

Authentication uses Libredesk's token scheme: Authorization: token <api_key>:<api_secret>.

Hardening

  • Opt-in read-only mode. With LIBREDESK_MCP_READ_ONLY=true the server lists and accepts only GET tools; write tools do not exist for the model. Writes are on by default, so give the key an agent role as narrow as you need: the flag limits what the model can call, the role limits what the key can do. Ticket content is untrusted input (prompt injection), which is the main reason to prefer read-only when you only need to read.

  • No arbitrary file reads. Multipart fields typed as binary (avatar and media uploads) used to read any local path the model supplied. They are now refused unless LIBREDESK_MCP_UPLOAD_DIR is set, and then only a regular file whose real path (after symlinks) lies inside that directory is read; relative paths are resolved against it.

  • No credentials in tool output. Libredesk returns an agent's API key in clear (GET /agents/me, agent lists), and tool output ends up in the model's context and in transcripts. Every api_key and api_secret value of a response is replaced by [redacted by libredesk-mcp], at any depth. The one exception is generate_api_key, whose purpose is to return the new credentials. Request parameters and the Authorization header are unaffected.

  • Updates replace, deletes are final. update_automation_rule and update_shared_view overwrite every field with the body (nothing is merged): read the record first and resend all of it. update_automation_rule also stores enabled, and an omitted enabled disables the rule. delete_automation_rule and delete_shared_view cannot be undone; prefer toggle_automation_rule to stop a rule.

  • Automation rules are persistent. create_automation_rule stores a rule that is enabled immediately and keeps acting on every matching conversation, long after the chat that created it. Libredesk does not validate the rule content, so a malformed rule is stored and never matches: read it back with get_automation_rule. Rule actions include send_reply (emails the customer) and trigger_webhook (calls an external URL): do not let the model use them on its own. Grant "Manage automations" to the MCP agent's role only while you need it, and prefer LIBREDESK_MCP_READ_ONLY=true otherwise, which keeps just the two read tools.

  • Not publishable by accident. package.json has "private": true.

How it works

On startup the server reads a bundled copy of Libredesk's OpenAPI spec (src/openapi.json, provenance in docs/SPEC_SOURCE.md) merged with src/openapi.overlay.json (see docs/SPEC_NOTES.md), keeps the operations allowed by the mode, walks each of them and registers it as an MCP tool with:

  • tool name — derived from the operation's operationId by stripping the handle prefix, splitting camelCase into snake_case, and lowercasing. Consecutive capitals are treated as acronyms (e.g. handleGetAIPrompts → get_ai_prompts, handleGenerateAPIKey → generate_api_key).

  • description — built from the operation summary, description, HTTP method/path, and tags.

  • inputSchema — flattened from path parameters, query parameters, and the request body's JSON schema (with $refs resolved against components.schemas).

When a tool is called, the server substitutes path params, builds the query string, sets the auth header, sends the request, and returns the response body verbatim (pretty-printed JSON when applicable) along with the HTTP status line. Errors from Libredesk are returned as-is so you can see why a request was rejected.

Develop

npm ci --ignore-scripts
npm run build       # tsc + copy openapi.json and openapi.overlay.json into dist/
npm test            # vitest, offline
npm start           # node dist/index.js

Refresh the bundled OpenAPI spec and check it against Libredesk's routes:

npm run fetch-spec            # downloads the docs spec, records date and SHA-256 in docs/SPEC_SOURCE.md
npm run build && npm test
npm run check-drift           # compares spec + overlay with cmd/handlers.go of the latest release (needs `gh`)
npm run check-drift -- v2.9.2 # or with a given tag

check-drift exits 1 when a spec or overlay operation has no matching route, or when an overlay operation has since appeared in the docs spec (remove it from the overlay then). It also lists, for information, in-scope routes that no tool covers; the out-of-scope prefixes are kept at the top of scripts/check-drift.mjs.

License

MIT

Available Tools

104 tools
ai_completionC

A I Completion POST /api/v1/ai/completion Tags: AI completions

Inputs: content (required), prompt_key (required).

apply_macroA

Apply Macro To Conversation Applies a list of macro actions to a conversation and increments the macro's usage count. The body is a JSON array of actions (not an object), at most one action per type. Allowed action types: assign_team, assign_user, set_status, set_priority, add_tags, set_tags, remove_tags; send_reply and send_private_note are refused (403). The caller needs the permission matching each action type. Answers 200 when every action succeeded, 207 when only some did, and 500 when none did. The success body is {"message": ...}, not the usual status/data envelope. POST /api/v1/conversations/{uuid}/macros/{id}/apply Tags: Conversations

Inputs: id (required), body (required), uuid (required).

block_contactB

Block or Unblock Contact Requires the contacts:block permission. PUT /api/v1/contacts/{id}/block Tags: Contacts

Inputs: id (required), enabled (required).

create_agentB

Create Agent Requires the users:manage permission. POST /api/v1/agents Tags: Agents

Inputs: email (required), roles (required), first_name (required), teams, +5 more.

create_automation_ruleA

Create Automation Rule Creates an automation rule. Requires the automations:manage permission. The rule is ENABLED as soon as it is created (the table default) and starts applying to the next matching conversation; use toggle_automation_rule to disable it. The server does not validate the content of rules: a malformed rule is stored and then silently never matches, so read it back with get_automation_rule. Example, assign every new conversation whose subject contains a text to agent 5: type new_conversation, events [], rules [{"group_operator":"AND","groups":[{"logical_op":"AND","rules":[{"field":"subject","field_type":"conversation","operator":"contains","value":"Company switched from","case_sensitive_match":false}]}],"actions":[{"type":"assign_user","value":["5"]}]}]. POST /api/v1/automations/rules Tags: Automations

Inputs: name (required), type (required), rules (required), events, +2 more.

create_contactB

Create Contact Creates a contact. Either email or phone_number is required. Requires the contacts:write permission. POST /api/v1/contacts Tags: Contacts

Inputs: first_name (required), email, country, last_name, +2 more.

create_contact_noteB

Create Contact Note Requires the contact_notes:write permission. POST /api/v1/contacts/{id}/notes Tags: Contact notes

Inputs: id (required), note (required).

create_conversationC

Create Conversation Requires the conversations:write permission. POST /api/v1/conversations Tags: Conversations

Inputs: content (required), inbox_id (required), initiator (required), first_name (required), +13 more.

create_shared_viewA

Create Shared View Creates a shared view: a saved filter on the conversation list that appears in the sidebar of every agent (visibility all) or of the members of one team (visibility team with team_id). Requires the shared_views:manage permission. The filters are validated: an unknown field is refused. Editing and deleting a view stay in the web UI. Example, the open conversations carrying tag 3: {"name":"Compromise alerts","visibility":"all","filters":{"logic":"AND","rules":[{"model":"conversations","field":"tags","operator":"contains","value":"[3]"},{"model":"conversations","field":"status_id","operator":"not equals","value":"4"}]}}. POST /api/v1/shared-views Tags: Views

Inputs: name (required), filters (required), visibility (required), team_id.

create_statusB

Create Conversation Status Requires the status:manage permission. POST /api/v1/statuses Tags: Status and priority

Inputs: name (required), category (required).

create_tagC

Create Tag Requires the tags:manage permission. POST /api/v1/tags Tags: Tags

Inputs: name (required).

create_teamC

Create Team Requires the teams:manage permission. POST /api/v1/teams Tags: Teams

Inputs: name (required), conversation_assignment_type (required), emoji, timezone, +3 more.

delete_agentA

Delete Agent Signs the agent out of all sessions and unassigns their open conversations. Requires the users:manage permission. DELETE /api/v1/agents/{id} Tags: Agents

Inputs: id (required).

delete_automation_ruleA

Delete Automation Rule Permanently deletes a rule. It cannot be undone, and conversations it already acted on keep their changes. To stop a rule without losing it, use toggle_automation_rule. Requires the automations:manage permission. DELETE /api/v1/automations/rules/{id} Tags: Automations

Inputs: id (required).

delete_contactA

Delete Contact Permanently deletes the contact along with their conversations, messages and notes. Requires the contacts:delete permission. DELETE /api/v1/contacts/{id} Tags: Contacts

Inputs: id (required).

delete_contact_noteA

Delete Contact Note Deletes a contact note. Agents without the Admin role can delete only their own notes. Requires the contact_notes:delete permission. DELETE /api/v1/contacts/{id}/notes/{note_id} Tags: Contact notes

Inputs: id (required), note_id (required).

delete_conversation_draftA

Delete Conversation Draft Deletes the caller's draft for a conversation. Without type, drafts of every type are deleted. The handler does not check conversation access: it only touches the caller's own drafts. DELETE /api/v1/conversations/{uuid}/draft Tags: Conversations

Inputs: uuid (required), type.

delete_messageA

Delete Message Deletes a private note. Its content is replaced with a placeholder and its attachments are unlinked. Agents can delete only their own notes. Agents with the Admin role can delete any note. Requires the messages:write_private permission. DELETE /api/v1/conversations/{cuuid}/messages/{uuid} Tags: Conversations

Inputs: uuid (required), cuuid (required).

delete_shared_viewA

Delete Shared View Permanently deletes a shared view; the conversations are untouched. It cannot be undone. A personal view answers 404. Requires the shared_views:manage permission. DELETE /api/v1/shared-views/{id} Tags: Views

Inputs: id (required).

delete_statusA

Delete Conversation Status Default statuses (Open, Snoozed, Resolved, Closed) and statuses in use cannot be deleted. Requires the status:manage permission. DELETE /api/v1/statuses/{id} Tags: Status and priority

Inputs: id (required).

delete_tagC

Delete Tag Requires the tags:manage permission. DELETE /api/v1/tags/{id} Tags: Tags

Inputs: id (required).

delete_teamB

Delete Team Requires the teams:manage permission. DELETE /api/v1/teams/{id} Tags: Teams

Inputs: id (required).

download_conversation_transcriptB

Download Conversation Transcript Requires the messages:read permission. GET /api/v1/conversations/{uuid}/transcript Tags: Conversations

Inputs: uuid (required).

export_contactC

Export Contact Data Requires the contacts:export permission. GET /api/v1/contacts/{id}/export Tags: Contacts

Inputs: id (required).

generate_api_keyC

Generate A P I Key Requires the users:manage permission. POST /api/v1/agents/{id}/api-key Tags: Agents

Inputs: id (required).

get_agentC

Get Agent Requires the users:manage permission. GET /api/v1/agents/{id} Tags: Agents

Inputs: id (required).

get_agentsC

Get Agents Requires the users:manage permission. GET /api/v1/agents Tags: Agents

Inputs: no named parameters.

get_agents_compactA

Get Agents Compact Agents and AI assistants in a short form (ID, name, email, enabled, availability), the list the web UI offers when assigning a conversation. Any authenticated agent, unlike get_agents which needs users:manage. Use the returned id as assignee_id of update_user_assignee. GET /api/v1/agents/compact Tags: Agents

Inputs: q, ids, page, type, +2 more.

get_ai_promptsC

Get A I Prompts GET /api/v1/ai/prompts Tags: AI completions

Inputs: no named parameters.

get_all_conversationsC

Get all Conversations Requires the conversations:read_all permission. GET /api/v1/conversations/all Tags: Conversations

Inputs: page, order, filters, order_by, +1 more.

get_all_draftsA

Get All Drafts All unsent reply and private-note drafts saved by the caller, across conversations. Any authenticated agent. GET /api/v1/drafts Tags: Conversations

Inputs: no named parameters.

get_all_shared_viewsA

Get Shared Views Every shared view (visible to all agents or to one team), most recently updated first. Personal views are not listed. Requires the shared_views:manage permission. GET /api/v1/shared-views Tags: Views

Inputs: no named parameters.

get_assigned_conversationsB

Get Assigned Conversations Get all assigned conversations to current user. Requires the conversations:read_assigned permission. GET /api/v1/conversations/assigned Tags: Conversations

Inputs: page, order, filters, order_by, +1 more.

get_automation_ruleA

Get Automation Rule A single automation rule with its conditions and actions, and whether it is enabled. Requires the automations:manage permission. GET /api/v1/automations/rules/{id} Tags: Automations

Inputs: id (required).

get_automation_rulesA

Get Automation Rules Automation rules of one type, ordered by weight. Requires the automations:manage permission. Pass type: a rule list is always read per type (an empty or unknown type returns an empty list, not every rule). GET /api/v1/automations/rules Tags: Automations

Inputs: type (required).

get_contactC

Get Contact Requires the contacts:read permission. GET /api/v1/contacts/{id} Tags: Contacts

Inputs: id (required).

get_contact_notesB

Get Contact Notes Requires the contact_notes:read permission. GET /api/v1/contacts/{id}/notes Tags: Contact notes

Inputs: id (required).

get_contact_page_visitsA

Get Contact Page Visits Returns the last 20 website pages the conversation's contact visited while the livechat widget was loaded, newest first. Requires the conversations:read permission. GET /api/v1/conversations/{uuid}/page-visits Tags: Conversations

Inputs: uuid (required).

get_contactsC

Get Contacts Requires the contacts:read_all permission. GET /api/v1/contacts Tags: Contacts

Inputs: page, order, filters, order_by, +1 more.

get_conversationC

Get Conversation Requires the conversations:read permission. GET /api/v1/conversations/{uuid} Tags: Conversations

Inputs: uuid (required).

get_conversation_participantsB

Get Conversation Participants Requires the conversations:read permission. GET /api/v1/conversations/{uuid}/participants Tags: Conversations

Inputs: uuid (required).

get_current_agentC

Get Current Agent GET /api/v1/agents/me Tags: Agents

Inputs: no named parameters.

get_custom_attributesC

List Custom Attributes GET /api/v1/custom-attributes Tags: Custom attributes

Inputs: applies_to.

get_inboxA

Get Inbox A single inbox by ID. Passwords, OAuth tokens and client secrets in config are masked. Unlike the inbox list, this route requires the inboxes:manage permission. GET /api/v1/inboxes/{id} Tags: Inboxes

Inputs: id (required).

get_inboxesB

List Inboxes GET /api/v1/inboxes Tags: Inboxes

Inputs: no named parameters.

get_macroA

Get Macro A single macro with its message content and its actions. Any authenticated agent; the macro's visibility is not checked on this route. GET /api/v1/macros/{id} Tags: Macros

Inputs: id (required).

get_macrosA

Get Macros Every macro with its message content and its actions (each action carries display_value, the name of the team, agent, status or priority it targets). Any authenticated agent. Use search_macros to list only the macros the caller may apply, or get_macros_compact for a list without the message content. GET /api/v1/macros Tags: Macros

Inputs: no named parameters.

get_macros_compactA

Get Macros Compact Macros without their message content (has_message_content tells whether there is one), filtered by name, newest update first. Without page_size (or with 0) every match is returned. Requires the macros:manage permission. GET /api/v1/macros/compact Tags: Macros

Inputs: q, page, page_size.

get_mentioned_conversationsA

Get Mentioned Conversations Get conversations where the current user, or a team they belong to, was mentioned in a private note. mentioned_message_uuid on each item points to the mention. Requires the conversations:read permission. GET /api/v1/conversations/mentioned Tags: Conversations

Inputs: page, order, filters, order_by, +1 more.

get_messageC

Get Message Requires the messages:read permission. GET /api/v1/conversations/{cuuid}/messages/{uuid} Tags: Conversations

Inputs: uuid (required), cuuid (required).

get_messagesC

Get Messages Requires the messages:read permission. GET /api/v1/conversations/{uuid}/messages Tags: Conversations

Inputs: uuid (required), page, type, private, +1 more.

get_prioritiesC

Get Conversation Priorities GET /api/v1/priorities Tags: Status and priority

Inputs: no named parameters.

get_public_help_center_articleC

Get Public Help Center Article GET /api/v1/public/help-centers/{slug}/articles/{article_slug} Tags: Help center

Inputs: slug (required), article_slug (required), locale.

get_public_help_center_treeC

Get Public Help Center Tree GET /api/v1/public/help-centers/{slug}/tree Tags: Help center

Inputs: slug (required), locale.

get_shared_viewA

Get Shared View A single shared view with its filters. A personal view answers 404. Requires the shared_views:manage permission. GET /api/v1/shared-views/{id} Tags: Views

Inputs: id (required).

get_sidebar_countsA

Get Sidebar Counts Open-conversation counts for the inbox sidebar badges of the caller: assigned, mentioned, unassigned and all, plus one count per view the caller can access (personal views and shared views of the caller's teams). Per-view counts are scan-capped at 100 in the code (the UI shows 99+). Requires the conversations:read permission. GET /api/v1/conversations/sidebar-counts Tags: Conversations

Inputs: no named parameters.

get_statusesC

Get Conversation Statuses GET /api/v1/statuses Tags: Status and priority

Inputs: no named parameters.

get_tagsC

List Tags Returns tags sorted by name. GET /api/v1/tags Tags: Tags

Inputs: q, ids, page, page_size.

get_teamB

Get Team Requires the teams:manage permission. GET /api/v1/teams/{id} Tags: Teams

Inputs: id (required).

get_teamsC

Get Teams Requires the teams:manage permission. GET /api/v1/teams Tags: Teams

Inputs: no named parameters.

get_teams_compactA

Get Teams Compact Teams in a short form (ID, name, emoji), the list the web UI offers when assigning a conversation. Any authenticated agent, unlike get_teams which needs teams:manage. Use the returned id as assignee_id of update_team_assignee. GET /api/v1/teams/compact Tags: Teams

Inputs: q, ids, page, page_size.

get_team_unassigned_conversationsB

Get Team Unassigned Conversations Get conversation assigned to team but not assigned to any agent. Requires the conversations:read_team_inbox permission. GET /api/v1/teams/{id}/conversations/unassigned Tags: Conversations

Inputs: id (required), page, order, filters, +2 more.

get_unassigned_conversationsA

Get Unassigned Conversations Get all conversations not assigned to any user and team. Requires the conversations:read_unassigned permission. GET /api/v1/conversations/unassigned Tags: Conversations

Inputs: page, order, filters, order_by, +1 more.

get_view_conversationsA

Get View Conversations Get conversations for a specific view. The view's saved filters are applied. Requires the conversations:read permission. GET /api/v1/views/{id}/conversations Tags: Conversations

Inputs: id (required), page, order, order_by, +1 more.

health_checkA

Health Check GET /health Tags: Health

Inputs: no named parameters.

mark_conversation_as_unreadA

Mark Conversation As Unread Marks the conversation as unread for the caller by moving their read position to just before the latest message. Returns 400 when the conversation has no messages. Requires the conversations:read permission. PUT /api/v1/conversations/{uuid}/mark-unread Tags: Conversations

Inputs: uuid (required).

media_uploadD

Media Upload POST /api/v1/media Tags: Media

Inputs: files (required), inline, linked_model.

overview_chartsC

Get Overview Charts Requires the reports:manage permission. GET /api/v1/reports/overview/charts Tags: Reports

Inputs: days.

overview_countsC

Get Overview Counts Requires the reports:manage permission. GET /api/v1/reports/overview/counts Tags: Reports

Inputs: no named parameters.

overview_csatC

Get Overview CSAT Requires the reports:manage permission. GET /api/v1/reports/overview/csat Tags: Reports

Inputs: days.

overview_message_volumeC

Get Overview Message Volume Requires the reports:manage permission. GET /api/v1/reports/overview/messages Tags: Reports

Inputs: days.

overview_slaC

Get Overview SLA Requires the reports:manage permission. GET /api/v1/reports/overview/sla Tags: Reports

Inputs: days.

overview_tag_distributionC

Get Overview Tag Distribution Requires the reports:manage permission. GET /api/v1/reports/overview/tags Tags: Reports

Inputs: days.

paginated_search_conversationsB

Paginated Search Conversations Matches conversations whose reference number equals the query or whose contact email contains it, with filters and cursor pagination. An exact reference number match is listed first. Returns only conversations the caller can access. Requires the conversations:read permission. GET /api/v1/search/conversations Tags: Search

Inputs: query (required), sort, cursor, filters, +1 more.

paginated_search_messagesA

Paginated Search Messages Matches messages whose text contains the query, with filters and cursor pagination. Activity messages are excluded. Returns only messages in conversations the caller can access. Requires the messages:read permission. GET /api/v1/search/messages Tags: Search

Inputs: query (required), sort, cursor, filters, +1 more.

remove_team_assigneeB

Remove Team Assignee Requires the conversations:update_team_assignee permission. PUT /api/v1/conversations/{uuid}/assignee/team/remove Tags: Conversations

Inputs: uuid (required).

remove_user_assigneeC

Remove User Assignee Requires the conversations:update_user_assignee permission. PUT /api/v1/conversations/{uuid}/assignee/user/remove Tags: Conversations

Inputs: uuid (required).

retry_messageA

Retry Message Retries sending a failed message in the specified conversation. Only failed outgoing messages sent by the current agent can be retried. Requires the messages:write permission. PUT /api/v1/conversations/{cuuid}/messages/{uuid}/retry Tags: Conversations

Inputs: uuid (required), cuuid (required).

revoke_api_keyB

Revoke A P I Key Requires the users:manage permission. DELETE /api/v1/agents/{id}/api-key Tags: Agents

Inputs: id (required).

search_contactsB

Search Contacts Matches contacts whose email or phone number contains the query. Requires the contacts:read permission. GET /api/v1/contacts/search Tags: Search

Inputs: query (required), limit.

search_conversationsA

Search Conversations Matches conversations whose reference number equals the query or whose contact email contains it. Returns only conversations the caller can access. Use GET /api/v1/search/conversations for filters and pagination. Requires the conversations:read permission. GET /api/v1/conversations/search Tags: Search

Inputs: query (required), limit.

search_macrosA

Search Macros The 30 most used macros the caller may apply (visibility all, own, or one of the caller's teams), without their message content, optionally filtered by name and by where they are offered. Any authenticated agent. GET /api/v1/macros/search Tags: Macros

Inputs: q, view.

search_messagesA

Search Messages Matches messages whose text contains the query. Activity messages are excluded. Returns only messages in conversations the caller can access. Use GET /api/v1/search/messages for filters and pagination. Requires the messages:read permission. GET /api/v1/messages/search Tags: Search

Inputs: query (required), limit.

send_messageB

Send Message Replies require the messages:write permission. Private notes (private: true) require messages:write_private. Messages with sender_type: contact also require messages:write_as_contact. POST /api/v1/conversations/{cuuid}/messages Tags: Conversations

Inputs: cuuid (required), sender_type (required), cc, to, +8 more.

serve_mediaA

Serve Media Public media is served without authentication. Private media requires authentication with access to the linked record, or a valid signed URL. Private media not yet attached to a record is served only to the user who uploaded it. GET /uploads/{uuid} Tags: Media

Inputs: uuid (required), exp, sig, download.

toggle_automation_ruleA

Toggle Automation Rule Flips the enabled flag of a rule (enabled becomes disabled and the reverse) and returns the updated rule. There is no body and no way to set the state explicitly, so read the rule first if the current state matters. Requires the automations:manage permission. PUT /api/v1/automations/rules/{id}/toggle Tags: Automations

Inputs: id (required).

update_agentB

Update Agent Changing the password or disabling the agent signs them out of all sessions. Requires the users:manage permission. PUT /api/v1/agents/{id} Tags: Agents

Inputs: id (required), email (required), roles (required), first_name (required), +6 more.

update_agent_availabilityC

Update Current Agent Availability PUT /api/v1/agents/me/availability Tags: Agents

Inputs: status (required), source.

update_automation_ruleA

Update Automation Rule Replaces a rule: name, description, type, events, enabled and rules are all overwritten with the body, nothing is merged. Send enabled explicitly: leaving it out stores false and disables the rule. Read the rule first (get_automation_rule) and resend every field. The server does not validate the content of rules. Requires the automations:manage permission. PUT /api/v1/automations/rules/{id} Tags: Automations

Inputs: id (required), name (required), type (required), rules (required), +3 more.

update_contactC

Update Contact Requires the contacts:write permission. PUT /api/v1/contacts/{id} Tags: Contacts

Inputs: id (required), first_name (required), email, files, +5 more.

update_contact_custom_attributesC

Update Contact Custom Attributes Updates custom attributes of the contact on the conversation. Returns 500 when the request body is not valid JSON. PUT /api/v1/conversations/{uuid}/contacts/custom-attributes Tags: Contacts

Inputs: body (required), uuid (required).

update_conversation_assignee_last_seenA

Update Conversation Assignee Last Seen Marks the conversation as read by the caller, up to the latest message or up to message_uuid. The read position never moves backwards. Requires the conversations:read permission. PUT /api/v1/conversations/{uuid}/last-seen Tags: Conversations

Inputs: uuid (required), message_uuid.

update_conversation_custom_attributesC

Update Conversation Custom Attributes Returns 500 when the request body is not valid JSON. PUT /api/v1/conversations/{uuid}/custom-attributes Tags: Conversations

Inputs: body (required), uuid (required).

update_conversation_priorityC

Update Conversation Priority Requires the conversations:update_priority permission. PUT /api/v1/conversations/{uuid}/priority Tags: Conversations

Inputs: uuid (required), priority (required).

update_conversation_statusC

Update Conversation Status Requires the conversations:update_status permission. PUT /api/v1/conversations/{uuid}/status Tags: Conversations

Inputs: uuid (required), status (required), snoozed_until.

update_conversationtagsB

Update conversation tags Requires the conversations:update_tags permission. POST /api/v1/conversations/{uuid}/tags Tags: Conversations

Inputs: uuid (required), tags, action.

update_shared_viewA

Update Shared View Replaces a shared view: name, filters, visibility and team_id are all overwritten with the body, nothing is merged, so read the view first (get_shared_view) and resend every field. A personal view answers 404. Requires the shared_views:manage permission. PUT /api/v1/shared-views/{id} Tags: Views

Inputs: id (required), name (required), filters (required), visibility (required), +1 more.

update_statusA

Update Conversation Status Default statuses (Open, Snoozed, Resolved, Closed) cannot be updated. Requires the status:manage permission. PUT /api/v1/statuses/{id} Tags: Status and priority

Inputs: id (required), name (required), category (required).

update_tagC

Update Tag Requires the tags:manage permission. PUT /api/v1/tags/{id} Tags: Tags

Inputs: id (required), name (required).

update_teamC

Update Team Requires the teams:manage permission. PUT /api/v1/teams/{id} Tags: Teams

Inputs: id (required), name (required), conversation_assignment_type (required), emoji, +4 more.

update_team_assigneeC

Update Team Assignee Requires the conversations:update_team_assignee permission. PUT /api/v1/conversations/{uuid}/assignee/team Tags: Conversations

Inputs: uuid (required), assignee_id (required).

update_user_assigneeC

Update User Assignee Requires the conversations:update_user_assignee permission. PUT /api/v1/conversations/{uuid}/assignee/user Tags: Conversations

Inputs: uuid (required), assignee_id (required).

upsert_conversation_draftA

Save Conversation Draft Saves or updates the caller's draft for a conversation. type defaults to reply. The request is rejected with 400 when content is blank and meta is empty or {}, and when meta is larger than 32 KB. The caller must have access to the conversation. POST /api/v1/conversations/{uuid}/draft Tags: Conversations

Inputs: uuid (required), meta, type, content.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.6/5.0

    Scored across 104 tools

    Disambiguation2/5

    Many near-duplicate tools exist: search_conversations vs paginated_search_conversations, search_messages vs paginated_search_messages, get_agents vs get_agents_compact, get_macros/get_macros_compact/search_macros, and multiple conversation-list endpoints. Descriptions add useful caveats, but an agent can easily misselect, especially with update_status vs update_conversation_status.

    Naming Consistency3/5

    Most tools follow a verb_noun snake_case pattern, but there are notable exceptions such as update_conversationtags, media_upload, overview_charts, public_help_center_search, health_check, and ai_completion. The mix of noun-first and verb-first conventions reduces predictability.

    Tool Count1/5

    With 104 tools, the surface is far beyond a well-scoped MCP tool set and mirrors a large REST API endpoint-by-endpoint. Many tools are granular or overlapping variants, creating an extreme selection burden for an agent.

    Completeness4/5

    Core helpdesk coverage is broad: contacts, conversations, messages, teams, agents, tags, statuses, macros, automations, views, and reports are largely covered. Gaps remain, such as inboxes only being list/get with no create/update/delete, contact notes lacking update, and help-center tools being public read-only.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      C
      maintenance
      MCP server that exposes the complete Libredesk REST API (54 endpoints) as tools, enabling natural language management of conversations, contacts, agents, teams, and more for the open-source customer support desk.
      54
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Exposes 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 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Exposes FirstReply customer support operations as MCP tools, enabling AI assistants to browse conversations, draft replies, manage API keys, and access support statistics.
      99
      32 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to query and operate a help desk and service desk through MCP over HTTP, including tickets, requester communications, internal notes, attachments, stage and SLA history, time entries, clients, requesters, desks, knowledge base, contracts, and billing/satisfaction reports.
      MIT