Skip to main content
Glama
zendesk-admin-mcp

zendesk-admin-mcp

by Grjhoan

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

whoami

Verifies credentials and shows which account and role the server operates as. On an auth failure, reports what it tried to connect with.

Tool

What it does

find_tickets

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

audit_business_rules

Triggers, automations and macros: finds inactive rules, rules unused in 30 days, rules not modified in months, and duplicate titles.

list_ticket_fields

Inventory of ticket fields, flagging inactive and custom ones.

Backlog and SLAs

Tool

What it does

list_sla_policies

SLA policies with their targets by priority and metric.

backlog_health

Counts by status and priority, unassigned tickets, and the most stalled ones.

agent_workload

Distribution of open tickets per agent, heaviest load first.

Security

Tool

What it does

security_overview

Who holds the admin role, unused OAuth tokens, installed apps.

recent_admin_changes

Configuration changes from the audit log. Requires the Enterprise plan.

Users and offboarding

Tool

What it does

find_user

Finds users by name, email or Zendesk search syntax.

offboarding_report

Everything left hanging on a departing agent: open tickets, groups, role, last login. Read-only.

reassign_tickets

Write. Reassigns an agent's open tickets to another agent. Dry run by default.

set_user_status

Write. Suspends, reactivates or changes a user's role. Dry run by default.

Security model

Three layers, in order of importance:

  1. 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.

  2. Writes are off by default. reassign_tickets and set_user_status fail with a clear message while ZENDESK_ALLOW_WRITES is not true.

  3. 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 (.mcpb)

Your OS keychain

Claude Desktop / Claude Code JSON config

That config file, in plain text

Local .env

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 plan

  • For 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

ZENDESK_SUBDOMAIN

Yes

If you sign in at https://acme.zendesk.com, it is acme.

ZENDESK_OAUTH_TOKEN

One of the two

OAuth token. The recommended option.

ZENDESK_EMAIL + ZENDESK_API_TOKEN

One of the two

Email of the token owner, and the token.

ZENDESK_ALLOW_WRITES

No

true enables the two write tools. Off by default.

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

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.sh

Then open Settings → Extensions → Advanced settings and either:

  • Install extension… → pick the generated zendesk-admin.mcpb, or

  • Install unpacked extension… → pick the dist/ folder (not the project root — only dist/ 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 *.mcpb are 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.py

Then confirm it is connected:

claude mcp list

Any 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 listing

All four run without credentials or network access. After that, with credentials in place:

python check_connection.py       # probes every endpoint the tools rely on

This 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_changes needs Enterprise; list_sla_policies needs 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 truncated flag 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_tickets is exact (no wildcards), and newly created tickets can take a few minutes to appear, so zero results is not proof of absence. Searching by ticket_id bypasses the index and always answers.

  • usage_30d is 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

401 from whoami

Wrong subdomain, email or token — or Token access is disabled in Admin Center. The email must be the token owner's. Check the configured block in the response.

403 on a specific tool

The token's role lacks permission for that endpoint. security_overview needs admin.

404 on SLA or audit-log tools

Your plan does not include that feature.

Write tool refuses to run

ZENDESK_ALLOW_WRITES is not true. Once it is, you still need dry_run=false to actually apply.

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 .mcpb was built on a different machine or with a different interpreter. Rebuild with ./build_mcpb.sh.

Repeated 429

Rate limited. The client retries up to 4 times honouring Retry-After, then reports it; wait a minute and lower max_items on the heavy tools.

find_tickets finds no user for a phone

The number is not on any user's profile. The tool already retries with a leading +, which Zendesk requires.

Implementation notes

Verified against the official Zendesk documentation:

  • Authentication: basic auth with the {email}/token:{api_token} form in base64, or Bearer for 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-After header is honoured, with up to 4 retries and a 60-second ceiling per wait.

  • Search: /search/export rather 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, so find_tickets fetches /tickets/{id} directly, which also avoids index lag on new tickets. Phone is a user property, not a ticket one: it resolves through type:user phone:+... first, then searches tickets by requester:<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_many accepts 100 ids per call and processes asynchronously via job_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


Not affiliated with or endorsed by Zendesk. "Zendesk" is a trademark of Zendesk, Inc.

Available Tools

13 tools
agent_workloadB
Read-only

Distribution of open tickets by assigned agent, heaviest load first. Shows where work is piling up.

Inputs: max_tickets. Returns: object

audit_business_rulesA
Read-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_healthA
Read-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_ticketsA
Read-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_userA
Read-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_policiesA
Read-only

List the SLA policies with their targets by priority and metric.

Inputs: no named parameters. Returns: object

list_ticket_fieldsB
Read-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_reportA
Read-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_ticketsA
Destructive

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_changesA
Read-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_overviewB
Read-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_statusA
Destructive

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

whoamiA
Read-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

    A3.6/5.0

    Scored across 13 tools

    Disambiguation4/5

    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.

    Naming Consistency3/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to search tickets, manage tags, create tickets, inspect automations, and more in Zendesk.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to audit and analyze Zendesk instances through a read-only MCP interface, providing tools for triggers, automations, analytics, and cross-reference queries.
      74
      MIT