libredesk-mcp

libredesk-mcp

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.

Category
Visit Server

README

libredesk-mcp

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

Exposes the entire Libredesk REST API (54 endpoints) as MCP tools, generated dynamically from the official OpenAPI spec.

Tools

All Libredesk REST endpoints become tools. Highlights:

  • Conversationsget_all_conversations, get_conversation, send_message, update_conversation_status, update_conversation_priority, update_conversationtags, update_user_assignee, update_team_assignee, search_conversations, ...
  • Contactsget_contacts, get_contact, update_contact, block_contact, search_contacts, get_contact_notes, create_contact_note
  • Agentsget_agents, get_current_agent, create_agent, update_agent, generate_a_p_i_key, revoke_a_p_i_key
  • Teamsget_teams, create_team, update_team, delete_team
  • Status & Priorityget_statuses, get_priorities, create_status, update_status
  • AIa_i_completion, get_a_i_prompts, update_a_i_provider
  • Searchsearch_conversations, search_contacts, search_messages
  • Mediamedia_upload
  • Healthhealth_check

Setup

1. Get a Libredesk API key

Log in to your Libredesk instance as an agent, open your profile, and generate an API key. You'll get an api_key and api_secret.

2. Add to Claude Code

claude mcp add-json libredesk --scope user '{
  "command": "node",
  "args": ["/absolute/path/to/libredesk-mcp/dist/index.js"],
  "env": {
    "LIBREDESK_URL": "http://localhost:9000",
    "LIBREDESK_API_KEY": "ak_...",
    "LIBREDESK_API_SECRET": "as_..."
  }
}'

Or once published to npm:

claude mcp add-json libredesk --scope user '{
  "command": "npx",
  "args": ["-y", "libredesk-mcp"],
  "env": {
    "LIBREDESK_URL": "http://localhost:9000",
    "LIBREDESK_API_KEY": "ak_...",
    "LIBREDESK_API_SECRET": "as_..."
  }
}'

Restart your Claude Code session; you should see libredesk as ✓ Connected in claude mcp list.

3. Other MCP clients

Add to your MCP host's config (Cursor, Claude Desktop, etc.):

{
  "mcpServers": {
    "libredesk": {
      "command": "node",
      "args": ["/absolute/path/to/libredesk-mcp/dist/index.js"],
      "env": {
        "LIBREDESK_URL": "http://localhost:9000",
        "LIBREDESK_API_KEY": "ak_...",
        "LIBREDESK_API_SECRET": "as_..."
      }
    }
  }
}

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

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

How it works

On startup the server reads a bundled copy of Libredesk's OpenAPI spec, walks every operation, and registers it as an MCP tool with:

  • tool name — derived from the operation's operationId (e.g. handleGetConversationget_conversation).
  • 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 install
npm run build       # tsc + copy openapi.json into dist/
npm run dev         # tsx src/index.ts (live TypeScript)
npm start           # node dist/index.js

Refresh the bundled OpenAPI spec:

curl -sL https://docs.libredesk.io/api-reference/openapi.json > src/openapi.json
npm run build

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured