Skip to content

Configuration

Variable Description
AUTOTASK_USERNAME Your API user email address
AUTOTASK_SECRET Your API secret key
AUTOTASK_INTEGRATION_CODE Your integration code from Autotask
Variable Default Description
AUTOTASK_API_URL Auto-detected Override the Autotask API zone URL
MCP_TRANSPORT stdio Transport type: stdio or http
MCP_HTTP_PORT 8080 Port for HTTP transport
MCP_HTTP_HOST 0.0.0.0 Host for HTTP transport
LOG_LEVEL info Logging 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.