helpdesk-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@helpdesk-mcp Triage the urgent open tickets and add internal notes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
helpdesk-mcp
A customer support helpdesk exposed over the Model Context Protocol (MCP), plus an AI agent that triages tickets through it.
Plug the server into Claude Desktop (or any MCP client) and the model can search tickets, read customer history, look up knowledge base articles and leave notes. Or run the included agent, which connects to the server over MCP, discovers its tools at runtime, and asks a person before it changes anything.
It runs with no API key: an offline demo model drives the agent, so you can clone it and see it work in a minute.
$ helpdesk-agent --yes "Triage the urgent open tickets"
model: demo-offline server: helpdesk-mcp over stdio
model I'll find the urgent open tickets first.
call search_tickets({"status": ["open"], "priority": ["urgent"], "limit": 3})
result {"result": [{"id": 2, "subject": "Charged twice for October", "priority": "urgent", ...
model Reading 3 ticket(s).
call get_ticket({"ticket_id": 2})
call get_ticket({"ticket_id": 1})
call get_ticket({"ticket_id": 3})
model Checking the knowledge base for each one.
call search_kb({"query": "Teachers locked out after SSO change"})
result {"result": [{"slug": "sso-setup", "title": "Setting up single sign-on (SSO)", ...
call add_comment({"ticket_id": 3, "body": "Triage: urgent account ticket from an enterprise customer. Relevant article: sso-setup ...
model Triage summary:
- #2 Charged twice for October (urgent, billing): article `refund-policy`.
- #1 Invoices export is empty since the update (urgent, bug): article `export-data`.
- #3 Teachers locked out after SSO change (urgent, account): article `sso-setup`.
I left an internal note on each ticket. Nothing was sent to customers.
5 model turns, 5,048 tokens, 0.1sWhat the server exposes
Kind | Name | What it does |
Tool (read) |
| Text search plus filters for status, priority, category and unassigned. Most urgent first. |
Tool (read) |
| Full ticket with customer and comments. |
Tool (read) |
| Company and plan. Email addresses are masked. |
Tool (read) |
| BM25 search over knowledge base articles. |
Tool (read) |
| Counts by status and priority, unassigned work, oldest open ticket. |
Tool (write) |
| Internal note by default, or a customer-facing reply. |
Tool (write) |
| Status, priority and assignee, following the ticket workflow. |
Tool (write) |
| Open a ticket for a customer. |
Resource |
| A ticket as JSON. |
Resource |
| Knowledge base index and articles as Markdown. |
Resource |
| The latest writes, with who made them. |
Prompt |
| Reusable instructions for common jobs. |
Related MCP server: support-tools
Safety by design
An MCP server hands real capabilities to a model, so the limits live in code, not in the prompt:
Typed, bounded inputs. Every tool argument has a type and limits (ids at least 1, text length caps, enums for status and priority). The SDK rejects bad input before any of my code runs.
Business rules the model can't skip. Status changes follow a fixed workflow, and closed tickets are final. A refused change comes back as a clear error the model can act on.
Read-only mode.
--read-onlydoesn't register the write tools at all, which is a good default for a first connection.Tool annotations. Each tool declares
readOnlyHint,destructiveHintandidempotentHint, so clients can decide what needs confirmation.Human approval in the agent. The agent asks before running any tool the server marks as not read-only. A declined action is reported back to the model, which is told not to retry it.
Least personal data. Customer emails are masked before they reach the model.
Audit log. Every write is recorded with the actor, the action and what changed.
Errors that help, crashes that don't leak. Expected failures raise
ToolErrorwith a useful message; anything unexpected reaches the model only as a generic error, and the details stay in the server log.
Architecture
flowchart LR
subgraph Clients
CD[Claude Desktop]
AG[helpdesk-agent<br/>agent loop + approval]
end
subgraph Server["helpdesk-mcp (MCP server)"]
T[Tools<br/>typed + annotated]
R[Resources]
P[Prompts]
S[(SQLite store<br/>+ audit log)]
end
M{{Model<br/>Claude or offline demo}}
CD -- stdio --> T
AG -- "stdio or HTTP" --> T
AG <--> M
T --> S
R --> SThe agent never imports the server's code. It sees only what any MCP client sees, so it works the same against this server or any other.
Getting started
Requires Python 3.11+ and uv.
git clone https://github.com/s-talha/helpdesk-mcp.git
cd helpdesk-mcp
uv sync --group dev
uv run helpdesk-agent "Triage the urgent open tickets" # asks before each write
uv run helpdesk-agent --yes "Triage ticket 4" # approve writes automatically
uv run helpdesk-agent --read-only "Triage ticket 4" # server has no write toolsThe demo database (10 customers, 16 tickets, 10 articles) is created at ~/.helpdesk-mcp/helpdesk.db on first run. Pass --db to use another file.
To run the agent on Claude instead of the demo model:
uv sync --extra anthropic
export ANTHROPIC_API_KEY=...
uv run helpdesk-agent "Which unassigned tickets are at risk, and why?"Use it from Claude Desktop
Add this to claude_desktop_config.json, then restart Claude Desktop:
{
"mcpServers": {
"helpdesk": {
"command": "uv",
"args": ["--directory", "/path/to/helpdesk-mcp", "run", "helpdesk-mcp", "--read-only"]
}
}
}Remove --read-only once you're happy for Claude to add notes and update tickets.
Run over HTTP
uv run helpdesk-mcp --http --port 8000 # Streamable HTTP at http://127.0.0.1:8000/mcp
docker build -t helpdesk-mcp . && docker run -p 8000:8000 helpdesk-mcpTests
uv run pytest40 tests cover the store (search ranking, workflow rules, masking, audit), the server through a real MCP client (schemas, annotations, read-only mode, invalid input, resources, prompts), and the agent (an end-to-end triage, declined approvals, read-only runs, step limits, and errors fed back to the model). Two tests start the server as a subprocess and talk to it over stdio, exactly as Claude Desktop does.
All tests use the offline demo model, so CI needs no secrets.
Project layout
src/helpdesk_mcp/
models.py domain models and the status workflow
store.py SQLite store: queries, search, audit log
seed.py deterministic demo data
server.py the MCP server: tools, resources, prompts
__main__.py helpdesk-mcp command (stdio or HTTP)
agent/
loop.py agent loop over an MCP client, with approval and step limits
providers.py Claude provider and the offline demo model
cli.py helpdesk-agent command
tests/License
MIT
Available Tools
8 toolsadd_commentA
Add a comment. Internal notes (the default) are only visible to support staff.
Inputs: body (required), ticket_id (required), internal. Returns: id, body, author, internal, +1 more
create_ticketC
Open a new ticket for a customer.
Inputs: body (required), subject (required), customer_id (required), category, +1 more. Returns: id, body, status, subject, +8 more
get_customerBRead-only
Get a customer's company and plan. The email address is masked.
Inputs: customer_id (required). Returns: id, name, plan, email, +1 more
get_ticketARead-only
Get one ticket with its full text, the customer and all comments.
Inputs: ticket_id (required). Returns: id, body, status, subject, +8 more
search_kbBRead-only
Search knowledge base articles. Read the full article with the helpdesk://kb/{slug} resource.
Inputs: query (required), category. Returns: result
search_ticketsBRead-only
Find tickets by text and filters. Results are sorted most urgent first, then oldest first.
Inputs: limit, query, status, category, +2 more. Returns: result
ticket_statsBRead-only
Counts by status and priority, unassigned work, and the age of the oldest open ticket.
Inputs: no named parameters. Returns: by_status, unassigned_open, by_priority_open, oldest_open_hours
update_ticketAIdempotent
Change status, priority or assignee. Status changes follow the workflow: open <-> pending, open/pending -> resolved, resolved -> open or closed. Closed is final.
Inputs: ticket_id (required), status, assignee, priority, +1 more. Returns: id, body, status, subject, +8 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource and action: search_tickets vs get_ticket (query vs single-fetch), ticket_stats (aggregates) vs search_tickets (filtered lists), get_customer vs get_ticket, and search_kb vs all ticket tools. add_comment and update_ticket also have clearly separate mutation scopes. No tool pair is likely to be confused.
Seven tools follow a clean verb_noun pattern (search_tickets, get_ticket, get_customer, search_kb, add_comment, update_ticket, create_ticket). The lone outlier is ticket_stats, which is a noun-only name, a minor deviation from an otherwise predictable convention.
Eight tools is well within the ideal range and each earns its place by covering a distinct capability (search, fetch, create, update, comment, stats, KB, customer). No redundant or filler tools are present.
Core helpdesk lifecycle is covered: create/read/search/update tickets, comment, stats, KB search, and customer lookup. Minor gaps exist (no customer listing/search, no comment editing or deletion), but the closed-is-final status workflow makes ticket deletion reasonably unnecessary.
Maintenance
Related MCP Connectors
Search and manage your team's knowledge from MCP clients.
Manage tickets, run agents and workflows, query tables, and search workspace knowledge.
Hosted support inbox over MCP: answer web chat, WhatsApp, email and SMS, manage knowledge.
Remote MCP server for managing Muninx tickets, messages, ticket search, and support analytics.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI clients to access and manage an internal support ticket queue through MCP tools, resources, and prompts, including searching and viewing tickets, adding comments, closing tickets with confirmation, reading knowledge base articles, and viewing queue summaries over OAuth-secured Streamable HTTP.-
- AlicenseAqualityDmaintenanceProvides customer lookup, transaction history, knowledge-base search, and ticket management tools to any MCP client.5MIT
- FlicenseNot gradedqualityAmaintenanceEnables retrieval and management of tickets and comments, ticket analysis and response drafting, and access to Help Center articles as a knowledge base via MCP.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to list, create, and update support tickets, classify them by category, priority, and sentiment, detect duplicates, and answer queue questions using retrieval-augmented LLM tools.MIT