threatlocker-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Logging verbosity: DEBUG / INFO / WARNING / ERROR | INFO |
| MCP_HTTP_HOST | No | Bind host for the HTTP transport | 127.0.0.1 |
| MCP_HTTP_PORT | No | Bind port for the HTTP transport | 8765 |
| THREATLOCKER_ORG_ID | Yes | Default organization GUID. Find it in the portal URL after switching into the target org. | |
| THREATLOCKER_API_KEY | Yes | API key from ThreatLocker Portal → Modules → API | |
| THREATLOCKER_TIMEOUT | No | Per-request timeout in seconds | 30 |
| THREATLOCKER_BASE_URL | Yes | Portal API base URL. Use the same subdomain letter shown in your portal (e.g., https://portalapi.h.threatlocker.com) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
MCP server for the ThreatLocker Portal API. Call list_organizations (optionally with search_text) first to discover the org GUIDs this API key can target, then pass organization_id to other tools to target a specific child/parent org. Without organization_id, the server's default org (THREATLOCKER_ORG_ID) is used.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| action_log_get_by_parameters_v2A | Get Action Logs By Parameters. NOTE: this endpoint runs in two modes depending on the |
| action_log_get_by_id_v2D | Action Log: Get By Id V2 |
| action_log_get_all_for_file_history_v2A | Get All File History by hostname and fullpath NOTE: spec marks every parameter optional, but the API returns 417 'Missing Parameters. Unable to load details.' unless |
| action_log_get_file_download_details_by_idD | Action Log: Get File Download Details By Id |
| action_log_searchA | Search the Unified Audit (POST ActionLog/ActionLogGetByParametersV2 with usenewsearch=true) with explicit paging and output shaping — use this instead of |
| application_get_by_idC | Get Application by Id. |
| application_get_matching_listD | Get Matching Applications |
| application_get_for_application_optionsA | Load Application List custom + built-in applications available to permit a file into. Use this when the |
| application_get_for_maintenance_modeA | Get Application Options for Maintenance Scheduling List applications eligible for use with a Maintenance Mode when processing an approval request. Filter by |
| application_get_research_details_by_idA | Get Application Research Details by Id. Optional. Get ThreatLocker's research data (description, risks, mitigations) for an application before permitting it. Useful for decision support when the chosen |
| application_listA | List custom (and optionally built-in) applications in an organization, paged. Use this to find an application's GUID by name before calling the other application_* or policy_* tools. Wraps POST Application/ApplicationGetByParameters. |
| application_files_listA | List an application's file rules, paged. |
| application_insertA | Create a custom application (POST Application/ApplicationInsert). Required: |
| application_updateA | Update a custom application: rename / change description (PUT Application/ApplicationUpdateById), add file rules (POST ApplicationFile/ApplicationFileInsert, one request per rule) and/or remove rules by |
| application_add_sha256_bulkA | Add many SHA256 hash-only rules to an existing custom application. Validates and de-duplicates the input (64-hex), skips hashes the app already has ( |
| application_deleteA | Delete a custom application. Reads the app first, then POSTs Application/ApplicationUpdateForDelete (apps with no policies). If the app still has policies attached, pass |
| approval_request_get_by_parametersA | Approval Request: Get By Parameters NOTE: |
| approval_request_get_by_idB | Get Approval Request By ID NOTE: |
| approval_request_get_countD | Get Approval Request Pending Count |
| approval_request_get_permit_application_by_idC | Get Permit Application Details By Approval Request Id |
| approval_request_permit_applicationA | Approve Permit Application Request WORKFLOW: take_ownership -> get_permit_application_by_id -> application_get_matching_list -> permit_application. Start from the DTO returned by get_permit_application_by_id and modify the choices below. REQUIRED FIELDS (KB-documented, all must be present): |
| approval_request_update_for_rejectC | Reject Approval Request |
| approval_request_update_for_ignoreD | Ignore Approval Request |
| approval_request_update_for_take_ownershipD | Take Ownership of Approval Request |
| approval_request_get_storage_approval_by_idC | Get Storage Approval Request By Id |
| approval_request_permit_storage_approvalA | Approve Storage Request NOT YET LIVE-TESTED -- expect shape sensitivity similar to |
| approval_request_get_file_download_details_by_idC | Get File Download Details By Approval Request Id |
| computer_get_by_all_parametersC | Load Computers By All Parameters |
| computer_get_for_edit_by_idC | Get Computer Information By Id. |
| computer_update_for_editD | Update Computer |
| computer_enable_protectionD | Computer Enable Protection |
| computer_disable_protectionD | Disable Computer Protection |
| computer_update_maintenance_modeC | Updates a device's maintenance mode settings. |
| computer_move_to_other_organizationD | Move Computer |
| computer_update_baseline_rescanD | Update Baseline Rescan Computer |
| computer_update_to_finish_maintenance_modeA | End Maintenance Mode Ends ACTIVE maintenance mode on a specific computer immediately. Distinct from |
| computer_group_get_group_and_computerB | Get Groups and Computer NOTE: this endpoint can return very large payloads (>100KB for a single populated group) when called without scoping. Pass a specific |
| computer_group_get_dropdown_by_organization_idC | Get Computer Groups by OrganizationId |
| maintenance_mode_get_by_computer_idC | Get Maintenance Schedule By Computer Id |
| maintenance_mode_insertC | Add to Maintenance Schedule |
| maintenance_mode_end_by_idD | End Maintenance Schedule |
| maintenance_mode_update_end_date_time_for_specific_dateA | Updated Maintenance Mode End Date Time. Reschedules the end time of an existing maintenance window for a specific computer without terminating it. Pass the new |
| online_devices_get_by_parametersD | View Online Devices |
| list_organizationsA | Get Organizations For Move Computers Returns the organizations the current API key can target. Use this FIRST to discover org GUIDs to pass as |
| policy_get_by_idC | Get Policy by Id. |
| policy_listA | List Allowlisting policies with filters (POST Policy/PolicyGetByParameters, or Policy/PolicyGetForViewPoliciesByApplicationId when |
| policy_insertA | Create an Allowlisting policy (POST Policy/PolicyInsert). Required: |
| policy_updateA | Update an Allowlisting policy: rename, description, enable/disable, applies-to, application list, action, log action or order. Does a read-modify-write: GET Policy/PolicyGetById, carry every existing setting over, apply the changes, then PUT Policy/PolicyUpdateById (the API resets any field that is omitted, so the full body is always sent). The dry run shows the merged body and which fields were carried over — review it before executing. |
| policy_set_orderA | Set the order number (orderBy) for one or more policies. Lower numbers are evaluated first regardless of applies-to level; negatives are not allowed. Implemented as a read-modify-write per policy (GET Policy/PolicyGetById → PUT Policy/PolicyUpdateById with the new orderBy and every other field preserved). Run policies_deploy afterwards. |
| policy_deleteA | Delete one or more Allowlisting policies in a single organization (PUT Policy/PolicyUpdateForDeleteByIds). Each policy is read first to fill the required name / organizationId / osType. Requires |
| policies_deployA | The portal's 'Deploy Policies' action: POST DeployPolicyQueue/DeployPolicies pushes pending policy changes to every computer in the target organization. Pass both |
| report_get_by_organization_idC | Get report(s) by organization id. |
| system_audit_get_by_parametersC | Retrieves System Audit records based on specified parameters. |
| system_audit_get_for_health_centerC | Retrieves System Audit data for the Health Center, specifically focused on login attempts. |
| tag_get_by_idD | Get Tag by Id. |
| tag_get_dropdown_options_by_organization_idD | Get Tag Dropdown Options. |
| tag_updateA | Update Tag. Updates an existing tag. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 57 tools
Several clusters genuinely overlap: application_list / application_get_by_id / application_get_matching_list / application_get_for_application_options / application_get_for_maintenance_mode / application_get_research_details_by_id are six 'get application' variants, and approval_request_get_by_parameters / get_by_id / get_permit_application_by_id / get_storage_approval_by_id / get_file_download_details_by_id are five near-siblings. The descriptions are unusually thorough and explicitly flag the tricky pairs (action_log_search vs action_log_get_by_parameters_v2, computer_update_to_finish_maintenance_mode vs maintenance_mode_end_by_id), which rescues much of the ambiguity, but an agent still has to read long prose to pick correctly.
The dominant pattern is noun_verb snake_case (application_insert, policy_delete, tag_update), but it is broken by list_organizations (verb_noun), policies_deploy (plural prefix vs singular policy_*), and suffixed/qualified names like action_log_get_by_parameters_v2 and approval_request_update_for_take_ownership. Readable overall, but the convention drifts enough that you cannot infer a tool name from an action.
57 tools is well past the threshold where a set becomes hard to hold in working context, and many entries are thin one-endpoint wrappers (action_log_get_by_id_v2, action_log_get_file_download_details_by_id, approval_request_get_count). The domain is genuinely large, but several variants could be consolidated into parameterized tools.
Core allowlisting workflows are covered end to end: application CRUD plus bulk hash rules, policy CRUD/order/deploy, the full approval-request lifecycle (take ownership, permit, reject, ignore), computer management, maintenance modes, audit/action logs and org discovery. Gaps remain around tag lifecycle (get/update only, no create/delete), network policies and storage policy management, and report creation.