Skip to content

Configuration

VariableDescription
AUTOTASK_USERNAMEYour API user email address
AUTOTASK_SECRETYour API secret key
AUTOTASK_INTEGRATION_CODEYour integration code from Autotask
VariableDefaultDescription
AUTOTASK_API_URLAuto-detectedOverride the Autotask API zone URL
MCP_TRANSPORTstdioTransport type: stdio or http
MCP_HTTP_PORT8080Port for HTTP transport
MCP_HTTP_HOST0.0.0.0Host for HTTP transport
LOG_LEVELinfoLogging level: error, warn, info, debug

You can place credentials in a .env file in the project root:

Terminal window
AUTOTASK_USERNAME=api-user@example.com
AUTOTASK_SECRET=your-secret-key-here
AUTOTASK_INTEGRATION_CODE=your-integration-code
LOG_LEVEL=info

The default transport communicates over stdin/stdout. This is the standard mode for MCP clients like Claude Desktop.

For remote or multi-client deployments, use the HTTP transport:

Terminal window
MCP_TRANSPORT=http MCP_HTTP_PORT=8080 node dist/entry.js

This starts an HTTP server with:

  • POST /mcp — MCP protocol endpoint
  • GET /health — Health check endpoint
  1. Log into your Autotask instance as an administrator
  2. Navigate to Admin → Resources (Users)
  3. Create or select an API user
  4. Generate an API secret key
  5. Note the integration code from Admin → Extensions & Integrations

The API user needs appropriate security level permissions for the entities you want to access.