Zendesk MCP Server
Provides tools for working with a fixed Zendesk Support subdomain on the user's behalf: each MCP bearer maps to one colleague's encrypted Zendesk OAuth grant, and every request builds a request-scoped Zendesk client to read and act on Zendesk Support data as that authenticated agent or admin identity.
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 MCP Server show me my open Zendesk tickets"
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 MCP Server (TypeScript)
A Model Context Protocol server for Zendesk with stdio and stateless Streamable HTTP transports.
Authentication modes
Streamable HTTP uses one random MCP bearer per internal colleague. The bearer selects that colleague's encrypted Zendesk OAuth grant; each POST constructs a request-scoped Zendesk client.
Stdio retains the existing email/API-token configuration for compatibility. It does not use the HTTP user store.
Zendesk has announced that Support API tokens begin inactivity-based deactivation on July 28, 2026 and are permanently deactivated on April 30, 2027. New HTTP deployments should use the OAuth flow documented here. See Zendesk's retirement announcement and OAuth migration guide.
Related MCP server: Zendesk MCP Server
Requirements
Node.js 20+
one fixed Zendesk subdomain
a confidential Zendesk OAuth client
HTTPS for the public callback URL (loopback HTTP is accepted for development)
a persistent path for the SQLite OAuth store
Streamable HTTP setup
Create the Zendesk OAuth client for the fixed deployment subdomain and set its callback URL exactly to:
https://your-internal-mcp.example/oauth/callbackCopy the HTTP environment example and generate a 32-byte canonical base64url encryption key:
cp .env.example .env
openssl rand -base64 32 | tr '+/' '-_' | tr -d '=\\n'
chmod 0600 .envSet the generated value as OAUTH_ENCRYPTION_KEY, then configure:
PUBLIC_BASE_URL: canonical public origin, with no path or queryZENDESK_SUBDOMAIN: one fixed Zendesk subdomainZENDESK_OAUTH_CLIENT_IDandZENDESK_OAUTH_CLIENT_SECRETOAUTH_DB_PATH: absolute SQLite path (/data/oauth.sqlitein Compose)MCP_ALLOWED_HOSTS,HOST, andPORTas neededSELF_SERVICE_ENROLLMENT_ENABLED: exacttrueorfalse; defaults tofalse
The server never derives its callback from Host or forwarded headers.
GET /healthz is public and never contacts Zendesk. POST /mcp is protected;
authenticated GET /mcp and DELETE /mcp return 405 because each POST uses
a fresh stateless transport.
Build and start locally:
npm install
npm run build
npm run start:httpOptional self-service enrollment
Enable self-service only when the canonical HTTPS origin is restricted to the intended colleagues through Tailscale access policy. Tailscale is the network boundary; the application does not infer or verify Tailscale identity from forwarded headers.
SELF_SERVICE_ENROLLMENT_ENABLED=trueAfter restarting the service, an internal colleague opens:
https://your-internal-mcp.example/create-accountThe page redirects through the same fixed Zendesk OAuth client. Only an
authoritative Zendesk agent or admin identity can complete enrollment; an
end user receives no MCP account or bearer. After OAuth succeeds, the browser
shows the personal bearer and a Codex configuration fragment once. The bearer
is not recoverable from the database or a second page load, so it must be
copied immediately to the colleague's protected Codex configuration.
One Zendesk identity can have only one internal account. A duplicate,
previously revoked, lost-bearer, or reauthorization case must be handled with
the administrator commands below. Disable new self-service enrollment at any
time by setting the flag to false and restarting; existing linked bearers
continue to work.
Create and link a user
npm run admin -- create --label "Martin"The command prints a user ID, one MCP bearer, and one short-lived link. The bearer is shown once and cannot be retrieved later. Transfer the link and bearer separately through approved secure channels:
The colleague opens the link and authorizes the fixed Zendesk OAuth client.
The callback exchanges the code and establishes identity through
users/me.After linking succeeds, give that colleague their unique MCP bearer.
List non-secret metadata:
npm run admin -- listWhen a refresh grant becomes terminal, the mapping changes to
reauthorization_required and MCP access fails closed. Generate a fresh
one-time link without changing or reprinting the bearer:
npm run admin -- reauthorize --user <uuid>Revoke local access immediately:
npm run admin -- revoke --user <uuid>Optionally attempt one bounded upstream Zendesk revocation after the local commit:
npm run admin -- revoke --user <uuid> --upstreamThe command reports succeeded, failed, or unavailable; there is no
background retry or outbox.
Reset one mapping when that person must repeat the complete self-service flow:
npm run admin -- reset --user <uuid> --upstream
npm run admin -- reset --user-email "colleague@example.com" --upstreamThe command atomically removes only the selected internal user, bearer, OAuth
grant, and invitation records, releasing that Zendesk identity for a new
/create-account enrollment. Other users are unchanged. The mandatory
--upstream flag makes one bounded attempt to revoke the captured Zendesk
grant after the local reset and reports succeeded, failed, or unavailable.
Email matching is case-insensitive and proceeds only when exactly one stored
mapping matches; missing or ambiguous emails fail without resetting anyone.
Codex MCP configuration
[mcp_servers.zendesk]
url = "https://your-internal-mcp.example/mcp"
bearer_token_env_var = "ZENDESK_MCP_BEARER_TOKEN"Set only that user's bearer on the client:
export ZENDESK_MCP_BEARER_TOKEN='the-user-specific-bearer'For a Codex desktop configuration that must survive a computer restart without depending on a launch environment variable, use the one-time fragment shown by the enrollment page:
[mcp_servers.zendesk]
url = "https://your-internal-mcp.example/mcp"
[mcp_servers.zendesk.http_headers]
Authorization = "Bearer zmcp_the-user-specific-bearer"This stores the bearer as plaintext in the user's protected Codex config, so the file must not be shared or committed.
Do not copy the Zendesk OAuth client secret, encryption key, database, access token, or refresh token to MCP clients.
Verify MCP initialization without calling Zendesk:
MCP_URL=https://your-internal-mcp.example/mcp \
MCP_BEARER_TOKEN="$ZENDESK_MCP_BEARER_TOKEN" \
npm run smoke:httpnpm run smoke:http calls Zendesk only when the explicit --zendesk option is
added. The self-contained npm run smoke:http:local uses fake encrypted
credentials and asserts that zero Zendesk requests occur.
Docker Compose
Compose publishes plain HTTP on host loopback by default. Terminate HTTPS in the existing trusted reverse proxy and do not expose the plain HTTP port directly. Before enabling self-service, verify that the HTTPS origin is not reachable outside the approved Tailscale users.
docker compose config
docker compose up -d --build --wait
docker compose ps
docker compose logs --tail=50 zendesk-mcpThe runtime runs as the unprivileged node user with a read-only root
filesystem, no-new-privileges, writable tmpfs at /tmp, and one named volume
mounted at /data. Restarting the service preserves /data/oauth.sqlite.
Run administration commands inside the running service so they use the same
environment and /data volume as the server:
docker compose exec -T zendesk-mcp npm run admin -- create --label "Martin"
docker compose exec -T zendesk-mcp npm run admin -- list
docker compose exec -T zendesk-mcp npm run admin -- reauthorize --user <uuid>
docker compose exec -T zendesk-mcp npm run admin -- revoke --user <uuid>
docker compose exec -T zendesk-mcp npm run admin -- reset --user <uuid> --upstream
docker compose exec -T zendesk-mcp npm run admin -- reset --user-email "colleague@example.com" --upstreamBackup
Keep the encryption key separately; a database backup without its matching key cannot be opened. Use the SQLite online backup command rather than copying a live database and its WAL files:
backup_name="oauth-backup-$(date -u +%Y%m%d-%H%M%S).sqlite"
docker compose exec -T zendesk-mcp npm run admin -- \
backup --output "/data/backups/$backup_name"
docker compose cp "zendesk-mcp:/data/backups/$backup_name" "./$backup_name"
chmod 0600 "./$backup_name"The backup is created mode 0600. Protect, rotate, and test-restores of both
the copied database backup and encryption key using normal infrastructure
controls. The command leaves the original backup under /data/backups; remove
that exact in-volume copy after verifying the protected host copy.
Migration from the shared HTTP identity
Back up the current deployment configuration.
Configure the Zendesk OAuth client, fixed callback, encryption key, and persistent store.
Deploy the new image without retiring the old credentials.
Create and complete one link per colleague.
Update each MCP client to its unique bearer and verify initialization.
Verify a non-destructive Zendesk read under each expected identity.
Revoke the old shared MCP bearer and retire legacy Zendesk credentials only after the separate live cutover is approved.
No migration automatically imports the shared API-token identity.
Rollback
Preserve the OAuth database and encryption key, stop the new container, and restore the previously pinned image and configuration. Restore the previous shared HTTP bearer/API-token settings only while Zendesk still permits them and only under the organization's normal approval process. A rollback does not delete the new OAuth store or revoke upstream grants; perform either action separately if required.
Stdio compatibility
Copy .env.stdio.example, set ZENDESK_SUBDOMAIN, ZENDESK_EMAIL, and
ZENDESK_API_KEY, then run:
npm run build
npm startThe equivalent MCP client command remains node /absolute/path/dist/index.js.
Stdio API-token compatibility is temporary because of Zendesk's published
retirement schedule.
MCP surface
Ticket reads and writes expose the support-relevant assignment, requester,
organization, form, custom-status, custom-field, collaborator, follower,
email-CC, problem/incident, due-date, tags, satisfaction, and channel fields.
update_ticket and create_ticket_comment require the ticket's current
updated_at value as expected_updated_at. Zendesk rejects a stale write as a
safe conflict instead of silently overwriting a colleague's newer change.
create_ticket_comment optionally accepts up to three inline attachments as
filename, content_type, and canonical content_base64. The combined decoded
payload is limited to 5 MiB. Upload tokens are internal implementation details,
are never returned by the MCP tool, and are cleaned up on a failed comment on a
best-effort basis.
Cursor-paginated tools accept page_size and optional after. When more data
exists, pass the returned next_cursor as the next call's after; cursors are
opaque and should not be modified.
Prompts:
analyze-ticketdraft-ticket-response
Tools:
get_ticketget_ticketssearch_ticketsget_ticket_auditsget_ticket_commentscreate_ticket_commentcreate_ticketupdate_ticketsearchget_current_userget_userget_organizationlist_user_ticketslist_organization_ticketssearch_userssearch_organizationslist_ticket_fieldsget_ticket_metricslist_ticket_formslist_custom_statuseslist_viewslist_view_ticketslist_assignable_groupslist_group_members
Resources:
zendesk://knowledge-base
get_ticket_comments includes normalized attachment metadata. File bytes are
not embedded in MCP responses.
Support
Use GitHub Issues for bugs and feature requests.
Available Tools
24 toolscreate_ticketC
Create a new Zendesk ticket
Inputs: subject (required), description (required), tags, type, +16 more.
create_ticket_commentC
Create a new comment on an existing Zendesk ticket
Inputs: comment (required), ticket_id (required), expected_updated_at (required), public, +1 more.
get_current_userA
Retrieve the Zendesk user authenticated for this MCP connection
Inputs: no named parameters.
get_organizationB
Retrieve an exact Zendesk organization by ID
Inputs: organization_id (required).
get_ticketB
Retrieve a Zendesk ticket by its ID
Inputs: ticket_id (required).
get_ticket_auditsC
Retrieve ticket audits/history for a Zendesk ticket
Inputs: ticket_id (required), page, per_page.
get_ticket_commentsB
Retrieve all comments for a Zendesk ticket by its ID
Inputs: ticket_id (required).
get_ticket_metricsC
Retrieve reply, wait, and resolution metrics for a ticket
Inputs: ticket_id (required).
get_ticketsC
Fetch the latest tickets with pagination support
Inputs: page, sort_by, per_page, sort_order.
get_userB
Retrieve an exact Zendesk user by ID
Inputs: user_id (required).
list_assignable_groupsC
List groups available for ticket assignment
Inputs: after, page_size.
list_custom_statusesB
List active Zendesk custom ticket statuses
Inputs: no named parameters.
list_group_membersC
List memberships and users for a Zendesk group
Inputs: group_id (required), after, page_size.
list_organization_ticketsC
List tickets belonging to a Zendesk organization
Inputs: organization_id (required), after, page_size.
list_ticket_fieldsB
List Zendesk ticket fields (including custom fields)
Inputs: no named parameters.
list_ticket_formsC
List active Zendesk ticket forms
Inputs: after, page_size.
list_user_ticketsC
List tickets related to a Zendesk user
Inputs: user_id (required), after, page_size, relationship.
list_viewsC
List active Zendesk views visible to the authenticated agent
Inputs: after, page_size.
list_view_ticketsC
List Zendesk tickets contained in a visible view
Inputs: view_id (required), after, page_size.
searchC
Search Zendesk across tickets, users, and organizations
Inputs: query (required), page, type, sort_by, +2 more.
search_organizationsC
Search Zendesk organizations by query
Inputs: query (required), page, sort_by, per_page, +1 more.
search_ticketsC
Search Zendesk tickets by query using Zendesk Search API
Inputs: query (required), page, sort_by, per_page, +1 more.
search_usersC
Search Zendesk users by query
Inputs: query (required), page, sort_by, per_page, +1 more.
update_ticketC
Update fields on an existing Zendesk ticket
Inputs: ticket_id (required), expected_updated_at (required), tags, type, +17 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Most tools target a distinct resource+action pair, and the ticket list variants (list_user_tickets, list_organization_tickets, list_view_tickets) are clearly scoped by resource. The main ambiguity is between the generic `search` and the narrower `search_tickets`/`search_users`/`search_organizations`, plus `get_tickets` vs `search_tickets` which could overlap in agent selection.
The set follows a consistent snake_case verb_noun convention (get_ticket, create_ticket, update_ticket, list_views, search_users) throughout. The only deviations are the bare `search` tool and the plural/singular pair get_tickets/get_ticket, which are minor but readable.
24 tools sits at the heavy edge for a single domain surface, with several narrow read-only helpers (list_ticket_fields, list_ticket_forms, list_custom_statuses, list_ticket_metrics) that could arguably be consolidated. It is defensible for Zendesk's breadth but is on the bloated side.
Ticket lifecycle is well covered (create/get/update/search/comments/audits/metrics) but delete operations are absent and user/organization support is read-only (search and get with no create/update). These are notable gaps for a full Zendesk surface, though core support workflows remain workable.
Maintenance
Related MCP Connectors
Read tickets, users, orgs, macros and satisfaction ratings; create, update and comment on tickets.
Zendesk MCP Pack — tickets, users, organizations via OAuth.
Read tickets, contacts, companies, agents and groups; create, update and reply to tickets.
Connect Claude, ChatGPT or any AI assistant to Zendesk tickets, CSAT, macros and Help Center.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI-powered ticket analysis and comprehensive Zendesk API integration via the Model Context Protocol, supporting both API token (CLI) and OAuth 2.1 (web) authentication modes.55190 npm5MIT
- FlicenseNot gradedqualityAmaintenanceEnables LLM clients to retrieve, create, and update Zendesk tickets and comments, and to search Help Center articles as a knowledge base, with per-operator OAuth so each caller acts under their own Zendesk permissions. It also ships prompts for analyzing tickets and drafting responses.-
- FlicenseNot gradedqualityAmaintenanceEnables retrieval and management of Zendesk tickets and comments, ticket analysis and response-drafting prompts, and search of Help Center articles as a knowledge base, authenticated per-operator via OAuth so each user acts with their own Zendesk permissions.-
- FlicenseNot gradedqualityAmaintenanceEnables retrieving and managing support tickets and comments, analyzing tickets and drafting responses, and searching Help Center articles as a knowledge base. Authenticates each operator through OAuth so API calls carry their own Zendesk identity and permissions.-