zendesk-admin-mcp
Provides Zendesk administration tools for auditing business rules, monitoring backlog and SLAs, reviewing security posture, and managing user offboarding with optional ticket reassignment and user status changes.
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., "@zendesk-admin-mcp Which triggers haven't fired in the last 30 days?"
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.
zendesk-admin-mcp
A local MCP server for Zendesk administration work. Zendesk adopted MCP on the client side — its agentic AI consumes external servers — but never shipped a server of its own that a host application could use. This fills that gap, with a deliberately narrow scope.
It does not wrap the whole API. It exposes 13 tools covering five concrete admin jobs, because a server with 200 tools floods the context window and makes the model choose worse.
You: "Which triggers haven't fired in the last 30 days?"
"Who has the heaviest open backlog right now?"
"Maria is leaving on Friday — what's still assigned to her?"
"Find the tickets from the customer calling from +57 300 123 4567."Purpose
Zendesk admin work involves a lot of questions that are tedious to answer through the UI: which business rules are dead weight, where the backlog is piling up, who still holds admin privileges, and what is left hanging when an agent leaves. Each of those means clicking through several admin screens and cross-referencing by hand.
This server turns those questions into tool calls an AI assistant can make directly, and returns aggregated summaries rather than raw record dumps, so the model can reason about the answer instead of drowning in it.
Related MCP server: Zendesk MCP Server
Features
Connection
Tool | What it does |
| Verifies credentials and shows which account and role the server operates as. On an auth failure, reports what it tried to connect with. |
Ticket search
Tool | What it does |
| Finds tickets by ticket id, requester email, subject or phone number. Email, subject and phone can be combined; ticket id is exclusive. Each result links straight to the agent interface. |
Business-rule auditing
Tool | What it does |
| Triggers, automations and macros: finds inactive rules, rules unused in 30 days, rules not modified in months, and duplicate titles. |
| Inventory of ticket fields, flagging inactive and custom ones. |
Backlog and SLAs
Tool | What it does |
| SLA policies with their targets by priority and metric. |
| Counts by status and priority, unassigned tickets, and the most stalled ones. |
| Distribution of open tickets per agent, heaviest load first. |
Security
Tool | What it does |
| Who holds the admin role, unused OAuth tokens, installed apps. |
| Configuration changes from the audit log. Requires the Enterprise plan. |
Users and offboarding
Tool | What it does |
| Finds users by name, email or Zendesk search syntax. |
| Everything left hanging on a departing agent: open tickets, groups, role, last login. Read-only. |
| Write. Reassigns an agent's open tickets to another agent. Dry run by default. |
| Write. Suspends, reactivates or changes a user's role. Dry run by default. |
Security model
Three layers, in order of importance:
The token's Zendesk role is the real boundary. The server can never do more than that user could already do in the UI. If you want a read-only server, give it a token belonging to a user with read-only permissions.
Writes are off by default.
reassign_ticketsandset_user_statusfail with a clear message whileZENDESK_ALLOW_WRITESis nottrue.Dry run by default. Even with writes enabled, both tools report what they would change without touching anything, until you call them with
dry_run=false.
Each tool is also advertised to the MCP client with readOnlyHint or
destructiveHint, so the host can prompt you for confirmation before the ones
that modify data.
Credential handling
No credential is ever written into the source tree. The server reads everything from environment variables, and authentication travels in an HTTP header rather than a URL, so it cannot leak into a logged request line.
Depending on how you install it, your token lives in one of three places:
Install method | Where the token is stored |
Claude Desktop extension ( | Your OS keychain |
Claude Desktop / Claude Code JSON config | That config file, in plain text |
Local | That file, in plain text — git-ignored by this repo |
If you fork or clone this repo, keep .env out of version control. The shipped
.gitignore already excludes .env, dist/, and *.mcpb.
A note on API tokens
Zendesk has marked API tokens as deprecated and recommends OAuth. Their own documentation warns that an API token allows impersonating any member of the account, admins included. For a local prototype they are fine; if this reaches production or more than one person, move to OAuth. The server accepts both.
Requirements
Python 3.10 or newer
A Zendesk account and a token (API token or OAuth)
For
recent_admin_changes: the Zendesk Enterprise planFor
list_sla_policies: a plan that includes SLAs
Installation
git clone https://github.com/Grjhoan/Zendesk_MCP_Server.git
cd Zendesk_MCP_Server
python3 -m venv .venv
source .venv/bin/activate
pip install -e .Configuration
Copy .env.example to .env and fill it in, or define the variables directly
in your MCP client's configuration.
To generate an API token: Admin Center → Apps and integrations → APIs → Zendesk API → Settings, enable Token access and create one. Save it right then; Zendesk will not show it again.
Variable | Required | Description |
| Yes | If you sign in at |
| One of the two | OAuth token. The recommended option. |
| One of the two | Email of the token owner, and the token. |
| No |
|
If both are set, ZENDESK_OAUTH_TOKEN wins. A value left as an unsubstituted
placeholder such as ${user_config.oauth_token} (which an .mcpb bundle can
leave behind for a blank optional field) is treated as unset.
Connecting it
Claude Desktop — as an extension (recommended)
This bundles the dependencies, so the extension does not depend on your virtualenv, and stores the token in your OS keychain instead of a plain-text file.
./build_mcpb.shThen open Settings → Extensions → Advanced settings and either:
Install extension… → pick the generated
zendesk-admin.mcpb, orInstall unpacked extension… → pick the
dist/folder (not the project root — onlydist/has the rewritten manifest).
Claude will prompt you for the subdomain, credentials and the write toggle.
Build the bundle on the machine you will install it on. It vendors platform-compiled wheels and pins the absolute path of the interpreter that built it, so a bundle built on Linux will not start on macOS. This is also why
dist/and*.mcpbare git-ignored — they are never portable.
Claude Desktop — manual configuration
In ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"zendesk-admin": {
"command": "/absolute/path/to/zendesk-admin-mcp/.venv/bin/python",
"args": ["/absolute/path/to/zendesk-admin-mcp/server.py"],
"env": {
"ZENDESK_SUBDOMAIN": "acme",
"ZENDESK_EMAIL": "you@company.com",
"ZENDESK_API_TOKEN": "...",
"ZENDESK_ALLOW_WRITES": "false"
}
}
}
}Use absolute paths: the client does not launch the server from this folder. Restart Claude Desktop after editing.
Claude Code
claude mcp add zendesk-admin \
--env ZENDESK_SUBDOMAIN=acme \
--env ZENDESK_EMAIL=you@company.com \
--env ZENDESK_API_TOKEN=... \
--env ZENDESK_ALLOW_WRITES=false \
-- /absolute/path/.venv/bin/python /absolute/path/server.pyThen confirm it is connected:
claude mcp listAny other MCP client
The server speaks MCP over stdio. Point your client at
.venv/bin/python server.py with the environment variables above.
Verification
python tests/test_client.py # HTTP layer against a mock transport
python tests/test_search_query.py # find_tickets query building
python tests/test_errors.py # failures come back readable; whoami never leaks the token
python tests/test_handshake.py # real MCP handshake and tool listingAll four run without credentials or network access. After that, with credentials in place:
python check_connection.py # probes every endpoint the tools rely onThis reports which endpoints answer for your account and plan, which is the
fastest way to find out what will work before connecting the server to a client.
Finally, ask the model to call whoami — the quickest confirmation that the
connection and role are what you expect.
Limitations
Read-heavy by design. Only two tools write. This is not a general-purpose Zendesk automation server.
Plan-gated features.
recent_admin_changesneeds Enterprise;list_sla_policiesneeds a plan with SLAs. Both degrade to an explanatory message rather than an error.Results are bounded. Every tool caps how much it fetches and returns a
truncatedflag when it hits the cap. On very large accounts, treat the numbers as a well-sampled picture rather than a full census.Single account per server instance. Credentials are read once from the environment at startup.
Local only. stdio transport, one operator, one set of credentials. There is no multi-user HTTP transport yet.
No caching. Repeated audits spend fresh rate-limit quota each run.
Ticket search follows the search index. Email matching in
find_ticketsis exact (no wildcards), and newly created tickets can take a few minutes to appear, so zero results is not proof of absence. Searching byticket_idbypasses the index and always answers.usage_30dis not universal. Zendesk reports it for triggers and macros but not automations, where it comes back null.
Troubleshooting
No tool raises on a failed call. HTTP errors (401, 403, 404, 422, 429 and any
other status), network errors, missing configuration and blocked writes all come
back as a result with an error message and a hint, so the MCP client shows
what went wrong instead of a bare "Error executing tool".
When whoami hits an auth failure it also returns a configured block — the
subdomain, the auth mode (api_token or oauth), whether an email is set, and
the token length. The token itself is never included. That is usually enough to
tell a wrong subdomain from an empty field from a bad credential.
Symptom | Likely cause |
| Wrong subdomain, email or token — or Token access is disabled in Admin Center. The email must be the token owner's. Check the |
| The token's role lacks permission for that endpoint. |
| Your plan does not include that feature. |
Write tool refuses to run |
|
Server does not appear in the client | Non-absolute paths in the config, or the client was not restarted. |
Extension installs but will not start | The |
Repeated | Rate limited. The client retries up to 4 times honouring |
| The number is not on any user's profile. The tool already retries with a leading |
Implementation notes
Verified against the official Zendesk documentation:
Authentication: basic auth with the
{email}/token:{api_token}form in base64, orBearerfor OAuth.Pagination: cursor-based (
page[size],links.next,meta.has_more). Offset pagination is capped at 100 pages and 10,000 records, so it is unused.Rate limits: on a 429 the
Retry-Afterheader is honoured, with up to 4 retries and a 60-second ceiling per wait.Search:
/search/exportrather than/search, because the latter caps at 1,000 total results. The export cursor expires after one hour.Ticket search:
requester:accepts an email address or a user id, and multi-word subjects are quoted (subject:"cannot log in"). Ticket id has no search keyword, sofind_ticketsfetches/tickets/{id}directly, which also avoids index lag on new tickets. Phone is a user property, not a ticket one: it resolves throughtype:user phone:+...first, then searches tickets byrequester:<user_id>, ORing several matching users together. Zendesk requires the leading+, so the value is tried as given and then with+prepended.Bulk writes:
update_manyaccepts 100 ids per call and processes asynchronously viajob_status.
The Python MCP SDK is on 2.x, where FastMCP was renamed MCPServer.
pyproject.toml pins mcp>=2.0,<3.
Contributing
Issues and pull requests are welcome. Please run all the test suites before
submitting, and never commit a .env, a built dist/, or a .mcpb bundle.
Ideas that would push this further:
Streamable HTTP transport with OAuth 2.1, so several admins can connect from claude.ai or another host with their own credentials.
A read cache, to avoid spending rate-limit quota on audits that run often.
Tools for views, forms and groups, if the business-rule audit proves useful.
License
MIT — see LICENSE. You are free to use, modify and distribute this in your own environment, commercial or otherwise.
Author
Jhoan Zabala
Web: jhoanzabala.com
Email: jzabalacx@gmail.com
Not affiliated with or endorsed by Zendesk. "Zendesk" is a trademark of Zendesk, Inc.
Available Tools
13 toolsagent_workloadBRead-only
Distribution of open tickets by assigned agent, heaviest load first. Shows where work is piling up.
Inputs: max_tickets. Returns: object
audit_business_rulesARead-only
Audit triggers, automations and macros looking for dead rules.
Detects four problems: inactive rules, rules unused over the last 30 days,
rules not modified in stale_days, and duplicate titles. kind accepts
"all", "triggers", "automations" or "macros".
Inputs: kind, stale_days, max_per_kind. Returns: object
backlog_healthARead-only
X-ray of the open backlog: counts by status and priority, plus the most
stalled tickets. stale_days defines how many days without an update make
a ticket stale.
Inputs: stale_days, sample_size. Returns: object
find_ticketsARead-only
Find tickets by ticket id, requester email, subject or phone number.
Provide at least one of the four. ticket_id fetches that ticket directly
and excludes the others. email, subject and phone can be combined and
are all applied together. The phone is the one on the user's profile, not a
ticket field, so the user is located first and then their tickets.
Inputs: email, phone, subject, ticket_id, +1 more. Returns: object
find_userARead-only
Find users by name, email or any term of the Zendesk search syntax. Returns id, role and status.
Inputs: query (required). Returns: object
list_sla_policiesARead-only
List the SLA policies with their targets by priority and metric.
Inputs: no named parameters. Returns: object
list_ticket_fieldsBRead-only
Inventory of ticket fields, flagging which are inactive and which are system fields. Useful before cleaning up forms.
Inputs: include_inactive. Returns: object
offboarding_reportARead-only
Everything left hanging on an agent before deactivating them: assigned open tickets, the groups they belong to, role and last login. Read-only; it changes nothing.
Inputs: user_id (required). Returns: object
reassign_ticketsADestructive
Reassign an agent's open tickets to another agent.
With dry_run true (the default) it only reports which tickets would be touched, without modifying anything. Set dry_run to false to execute.
Inputs: to_user_id (required), from_user_id (required), dry_run, max_tickets. Returns: object
recent_admin_changesARead-only
Recent configuration changes according to the audit log.
action accepts create, destroy, exported, login or update. source_type
accepts user, rule, ticket, apitoken, among others. Requires the Enterprise
plan.
Inputs: days, action, max_items, source_type. Returns: object
security_overviewBRead-only
Security overview of the account: who holds the admin role, which OAuth tokens exist and which have gone unused, and which apps are installed.
Inputs: unused_token_days. Returns: object
set_user_statusADestructive
Suspend or reactivate a user, and/or change their role.
role accepts end-user, agent or admin. With dry_run true (the default) it
only reports the proposed change against the current state.
Inputs: user_id (required), role, dry_run, suspended. Returns: object
whoamiARead-only
Verify the Zendesk connection and show which account and role the server operates as. Use this first to confirm the credentials work.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes: auditing (audit_business_rules, recent_admin_changes), lookup (find_user, find_tickets), and reporting (backlog_health, agent_workload, security_overview). Minor overlap exists between whoami and security_overview (both inspect account/role state) and between find_user and offboarding_report (both surface role/status), but descriptions differentiate them adequately.
Action-oriented tools follow verb_noun (find_user, find_tickets, reassign_tickets, set_user_status, audit_business_rules), but a large group of reporting tools use bare noun phrases (backlog_health, agent_workload, security_overview, recent_admin_changes, offboarding_report), plus the outlier whoami. The split is somewhat defensible but not a single predictable pattern, so conventions are mixed though still readable.
At 13 tools the set is well-scoped for a Zendesk admin server, sitting comfortably within the ideal range. Each tool earns its place by covering a distinct audit, lookup, or remediation concern without obvious redundancy.
The surface covers auditing, security, workload, offboarding, lookup, and some write operations (reassign_tickets, set_user_status) with dry-run safety. However, several audit tools identify problems (dead rules, inactive fields) with no corresponding cleanup/mutation tool, and broader ticket maintenance operations are absent, leaving minor gaps.
Maintenance
Related MCP Connectors
Zendesk configuration management for AI agents: propose, review, apply and roll back changes.
Connect Claude, ChatGPT or any AI assistant to Zendesk tickets, CSAT, macros and Help Center.
Ask questions about your support tickets, chats, agents and AI answer quality, with cited tickets.
Ask about your Kodem Security data and act on findings in plain language, with your permissions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search tickets, manage tags, create tickets, inspect automations, and more in Zendesk.MIT
- AlicenseAqualityDmaintenanceEnables fetching and analyzing Zendesk support tickets and Help Center articles for trend analysis, knowledge base management, and drafting new articles.4ISC
- AlicenseAqualityDmaintenanceEnables AI agents to audit and analyze Zendesk instances through a read-only MCP interface, providing tools for triggers, automations, analytics, and cross-reference queries.74MIT
- FlicenseNot gradedqualityAmaintenanceEnables integration with Zendesk to retrieve and manage tickets and comments, analyze tickets, draft responses, and access Help Center articles as a knowledge base.-