TOPdesk MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
TOPdesk MCP Server
Production-ready Model Context Protocol (MCP) server for TOPdesk API integration. Provides both auto-generated raw API tools and curated high-level tools for common operations.
Features
Two-tier tool strategy: High-level curated tools for common tasks + raw auto-generated tools for full API coverage
API Token Authentication: Secure authentication using TOPdesk API tokens
OpenAPI-based Discovery: Automatic tool generation from OpenAPI/Swagger specs
Production-ready: Rate limiting, retry logic, error handling, and concurrency control
Pagination Support: Consistent pagination across all list operations
Debug Mode: Safe logging without exposing secrets
Related MCP server: Freshservice MCP Server
Installation
npm installEnvironment Variables
Create a .env file or export the following variables:
# Required
TOPDESK_BASE_URL=https://your-tenant.topdesk.net
TOPDESK_API_TOKEN=your-api-token-here
# Optional
TOPDESK_OPENAPI_PATH=/path/to/openapi.json # Path to OpenAPI spec file
DEBUG=true # Enable debug logging (default: false)Getting Your API Token
Log in to TOPdesk as an operator with API access
Go to Settings > API
Create a new application password
Copy the token and set it as
TOPDESK_API_TOKEN
OpenAPI Specification
The server can auto-generate tools from an OpenAPI specification:
Export from TOPdesk: If your TOPdesk instance provides an OpenAPI spec, download it
Use provided spec: Some TOPdesk versions expose specs at
/tas/api/swagger.jsonManual registry: If no spec is available, the server uses a built-in registry of common endpoints
To use an OpenAPI spec:
export TOPDESK_OPENAPI_PATH=/path/to/topdesk-openapi.jsonSupported formats: .json, .yaml, .yml
Running the Server
Development Mode
npm run devBuild and Run
npm run build
npm startAvailable Tools
High-Level Curated Tools
These tools provide clean, user-friendly interfaces for common operations:
Tickets
topdesk.tickets.my_list
List tickets assigned to you or where you are operator/caller.
Input:
{
"scope": "assigned_to_me", // or "created_by_me", "operator_me", "caller_me"
"status": ["firstLine", "secondLine"], // optional
"since": "2024-01-01T00:00:00Z", // optional
"limit": 50, // default: 50
"cursor": "100" // optional, for pagination
}Output:
{
"items": [
{
"id": "abc-123",
"number": "I 2024 0001",
"briefDescription": "Login issue",
"status": "firstLine",
"priority": "normal",
"created": "2024-01-15T10:30:00Z",
"caller": { "name": "John Doe" },
"operator": { "name": "Jane Smith" }
}
],
"nextCursor": "150",
"hasMore": true
}topdesk.tickets.get
Get detailed information about a specific ticket.
Input:
{
"id": "abc-123"
}topdesk.tickets.search
Search tickets with flexible filters.
Input:
{
"query": "login issue", // optional
"status": ["firstLine"], // optional
"priority": "high", // optional
"since": "2024-01-01T00:00:00Z", // optional
"limit": 50,
"cursor": "0"
}Assets
topdesk.assets.create
Create a new asset.
Input:
{
"name": "Dell Laptop",
"type": "Laptop", // optional
"serialNumber": "SN12345", // optional
"assetTag": "AT-001", // optional
"location": "Office 1", // optional
"user": "john.doe@example.com", // optional
"fields": { // optional, for custom fields
"purchaseDate": "2024-01-01",
"warrantyEnd": "2027-01-01"
}
}topdesk.assets.update
Update an existing asset.
Input:
{
"id": "asset-123",
"name": "Dell Laptop (Updated)",
"location": "Office 2",
"fields": {
"lastMaintenance": "2024-03-01"
}
}topdesk.assets.get
Get detailed information about a specific asset.
Input:
{
"id": "asset-123"
}topdesk.assets.search
Search assets by various criteria.
Input:
{
"name": "Dell", // optional
"serialNumber": "SN12345", // optional
"assetTag": "AT-001", // optional
"type": "Laptop", // optional
"location": "Office 1", // optional
"user": "john.doe@example.com", // optional
"limit": 50,
"cursor": "0"
}Knowledge Items
topdesk.knowledge.search
Search knowledge base items.
Input:
{
"query": "password reset", // optional
"category": "IT", // optional
"lastModifiedSince": "2024-01-01T00:00:00Z", // optional
"limit": 50,
"cursor": "0"
}Output:
{
"items": [
{
"id": "kb-001",
"title": "How to reset your password",
"category": "IT",
"lastModified": "2024-01-15T10:30:00Z"
}
],
"nextCursor": "50",
"hasMore": true
}topdesk.knowledge.get
Get detailed information about a specific knowledge item.
Input:
{
"id": "kb-001"
}Raw Generated Tools
Raw tools are automatically generated from the OpenAPI spec or manual registry. They provide direct access to all TOPdesk API endpoints.
Naming convention: topdesk.raw.<tag>.<operationId>
Examples:
topdesk.raw.incidents.listIncidentstopdesk.raw.incidents.getIncidentByIdtopdesk.raw.assets.createAssettopdesk.raw.knowledge.listKnowledgeItems
Raw tool format:
All raw tools accept:
path_*parameters for path variables (e.g.,path_id)queryobject for query parametersbodyobject for request body
All raw tools return:
{
"status": 200,
"headers": { "content-type": "application/json" },
"data": { /* raw API response */ }
}Pagination
All list operations support pagination:
limit: Maximum number of items to return (default: 50)cursor: Opaque cursor for fetching the next pageResponse includes:
items,nextCursor, andhasMore
Example pagination flow:
// First page
const page1 = await callTool('topdesk.tickets.my_list', {
scope: 'assigned_to_me',
limit: 50
});
// Next page
if (page1.hasMore) {
const page2 = await callTool('topdesk.tickets.my_list', {
scope: 'assigned_to_me',
limit: 50,
cursor: page1.nextCursor
});
}Error Handling
The server handles various error conditions:
401/403: Authentication errors
404: Resource not found
429: Rate limiting (automatic retry with exponential backoff)
5xx: Server errors (automatic retry up to 3 times)
Network errors: Automatic retry with exponential backoff
All errors are returned in a consistent format with descriptive messages.
Rate Limiting & Retries
The server implements production-ready resilience:
Concurrency limit: Maximum 10 concurrent requests
Rate limiting: Automatic retry on 429 with
Retry-Afterheader supportExponential backoff: 2s, 4s, 8s delays with ±25% jitter
Maximum retries: 3 attempts for retryable errors
Timeout: 20 seconds per request
TOPdesk Permissions
Ensure your API token has the appropriate permissions:
For Tickets
Read incidents
Create/update incidents (if using create/update operations)
For Assets
Read asset management data
Create/update assets (if using create/update operations)
For Knowledge Items
Read knowledge base items
To check/configure permissions:
Go to TOPdesk Settings > Operators
Select your operator account
Check "Functional Settings" > "API" section
MCP Client Configuration
Add this server to your MCP client configuration:
{
"mcpServers": {
"topdesk": {
"command": "node",
"args": ["/path/to/topdesk-mcp-server/dist/index.js"],
"env": {
"TOPDESK_BASE_URL": "https://your-tenant.topdesk.net",
"TOPDESK_API_TOKEN": "your-api-token"
}
}
}
}Or for development:
{
"mcpServers": {
"topdesk": {
"command": "npm",
"args": ["run", "dev"],
"cwd": "/path/to/topdesk-mcp-server",
"env": {
"TOPDESK_BASE_URL": "https://your-tenant.topdesk.net",
"TOPDESK_API_TOKEN": "your-api-token"
}
}
}
}Development
Project Structure
src/
├── index.ts # MCP server entry point
├── topdesk/
│ └── client.ts # HTTP client with auth, retries, rate limiting
├── openapi/
│ ├── loader.ts # OpenAPI spec loader with dereferencing
│ ├── generator.ts # OpenAPI to MCP tool generator
│ └── manualRegistry.ts # Manual endpoint registry fallback
├── tools/
│ └── highlevel.ts # Curated high-level tools
└── utils/
├── errors.ts # Error handling utilities
└── pagination.ts # Pagination utilitiesAdding Manual Endpoints
If the OpenAPI spec is incomplete, add endpoints to src/openapi/manualRegistry.ts:
{
method: 'GET',
path: '/tas/api/your-endpoint',
operationId: 'yourOperation',
summary: 'Description',
tags: ['your-tag'],
parameters: [
{
name: 'paramName',
in: 'query',
required: false,
schema: { type: 'string' },
description: 'Parameter description',
},
],
responses: {
'200': {
description: 'Success',
content: {
'application/json': {
schema: { type: 'object' },
},
},
},
},
}Troubleshooting
Authentication Issues
Verify
TOPDESK_BASE_URLis correct (should includehttps://)Check API token is valid and not expired
Ensure operator has API access permissions
Connection Issues
Check network connectivity to TOPdesk instance
Verify firewall rules allow outbound HTTPS
Check for proxy requirements
Debug Mode
Enable debug logging:
export DEBUG=true
npm run devDebug mode logs:
Request details (without secrets)
Response status and headers
Retry attempts
Tool registration
Security
API tokens are never logged (even in debug mode)
All communication uses HTTPS
Secrets should be stored in environment variables, not committed to version control
Use
.envfiles with.gitignorefor local development
License
MIT
Support
For issues and questions:
TOPdesk API documentation: https://developers.topdesk.com/
TOPdesk support: Contact your TOPdesk administrator
Changelog
1.0.0
Initial release
High-level curated tools for tickets, assets, and knowledge items
OpenAPI-based raw tool generation
Production-ready error handling, retries, and rate limiting
Pagination support
Debug mode
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage tickets, run agents and workflows, query tables, and search workspace knowledge.
Read tickets, contacts, companies, agents and groups; create, update and reply to tickets.
Read tickets, users, orgs, macros and satisfaction ratings; create, update and comment on tickets.
List, search, create, update, and reply to support tickets across your Dispatch Tickets brands.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables interaction with TOPdesk service management platform through comprehensive API integration. Supports incident management, operator/person operations, document conversion, and FIQL querying for streamlined IT service desk workflows.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI models to interact with Freshservice IT service management platform, allowing automated ticket management, change requests, asset tracking, and solution article operations through natural language commands.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to connect with Freshservice ITSM for managing tickets, assets, agents, and organizational data through natural language. It provides a comprehensive set of tools for performing CRUD operations on service desk records and searching across the Freshservice platform.531MIT
- AlicenseAqualityCmaintenanceEnables AI models to perform IT service management operations on Freshservice, including managing tickets, changes, problems, releases, assets, projects, and more through a set of MCP tools.362MIT