thunderclient-mcp
v2.0.3Thunder Client MCP Server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
debugInfo
Returns Thunder Client setup info: CLI version, data path, collection names, and environment names. Run this first before any other tool. Environment variable values are never returned. If no environment exists, ask the user to create one in Thunder Client UI — never create or write environment files directly.
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
listCollections
Returns a flat list of all collections, folders, and requests with their _id, name, type, method, and parent info. Use this to discover existing items and obtain IDs before calling other tools. Also returns 'summary', one row per collection as {colId, name, folders, requests}. When the user asks to see or list collections, show 'summary' as a table with the columns #, Collection, Collection ID, Folders, Requests. Set includeActivity to true only when the user explicitly asks to see Activity tab requests.
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
includeActivity | boolean | When true, includes Activity tab requests in the result with type 'activity'. These are recently run requests with colId 'history' that have not been saved to a named collection. To save one, use the… |
getDetails
Returns full details of a single collection, folder, or request by its _id. For a request: returns url, method, headers, params, body, auth, tests, and scripts. Sensitive auth values are masked. For a collection, also returns 'outline': a nested markdown list of its folders and requests. When showing a collection to the user, print only the collection name, its _id and 'outline' exactly as given. Do not show collection settings, folder settings or request URLs, headers, bodies or tests unless the user asks for them. Use listCollections first to obtain the _id. Do not use this to read environme…
| Parameter | Type | Description |
|---|---|---|
id * | string | The _id of the collection, folder, or request to retrieve. Obtain from listCollections. Example: 'e63218fb-9f0b-4619-ab3a-bd68d21b4d57' |
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
listEnvironments
Returns all Thunder Client environments in the project, including which one is currently active. Environment variable values are never returned — only names and IDs are listed. Use this to verify an active environment exists before running requests that use {{varName}} placeholders. If no environment exists, ask the user to create one in Thunder Client UI — never create or write environment files directly.
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
createCollection
Creates a new collection in Thunder Client, and optionally a folder inside it. If the collection already exists, returns success without error. After creation, use updateCollectionSettings to configure baseUrl, shared auth, or default headers.
| Parameter | Type | Description |
|---|---|---|
collection * | string | Name of the collection to create. Example: 'Payments API' |
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
folder | string | Name of a top-level folder to create inside the collection. Omit to create the collection only. Example: 'Auth' |
createFolder
Creates a folder inside an existing Thunder Client collection. Supports one level of nesting — provide parentFolderName to create a subfolder inside an existing top-level folder. Use listCollections to confirm collection and parent folder names before calling.
| Parameter | Type | Description |
|---|---|---|
collectionName * | string | Name of the collection to create the folder in. Must match an existing collection name (case-insensitive). |
folderName * | string | Name of the new folder. Example: 'Users' |
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
parentFolderName | string | Name of an existing top-level folder to nest the new folder inside. Omit to create a top-level folder. Example: 'Users' to create 'Users > Admin'. |
createRequest
Creates a new API request in Thunder Client from a curl command string. Use this for new requests only — to modify an existing request, use updateRequest instead. The curl string is parsed to extract URL, method, headers, and body. Optionally saves into a collection and folder. If no collection is provided, the request is saved to Activity only.
| Parameter | Type | Description |
|---|---|---|
curlInput * | string | A valid curl command string. Must start with 'curl '. Include query parameters directly in the URL — e.g. 'curl https://api.example.com/posts?postId=1&limit=5'. Example: "curl https://api.example.co… |
name * | string | Display name for the request. Example: 'Create User' |
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
auth | object | Authentication configuration. Omit if the Authorization header is already present in the curl command. Examples — bearer: {type:'bearer',bearer:'{{accessToken}}'} | basic: {type:'basic',basic:{usern… |
collection | string | Name of the collection to save the request into. If omitted, the request is saved to Activity only. |
docs | array | Documentation for this item. Array of markdown strings. Use the field name 'docs' — not 'notes' or 'description'. Example: ['## Create User', 'Creates a new user account.', '**Returns:** the created… |
folder | string | Name of the folder within the collection to save the request into. Requires collection to be set. |
postReq | object | Post-request script. Runs after the response is received. Use tc.setVar() here to extract values to environment variables. |
preReq | object | Pre-request script. Runs before the request is sent. |
tests | array | Test assertions to run after the response. Examples — status: {type:'res-code',action:'equal',value:'200'} | JSON field: {type:'json-query',custom:'json.id',action:'istype',value:'number'} | array i… |
updateRequest
Updates an existing Thunder Client request by its ID. Only the fields provided are modified — omitted fields retain their current values. To rename only, provide reqId and name. Moving a request to a different collection or folder is not supported — use Thunder Client UI for that.
updateCollectionSettings
Sets or updates settings on a Thunder Client collection or folder. Settings are inherited by all requests inside — use this to configure shared auth, default headers, base URL, and run options. Only the fields provided are updated; existing settings are preserved. Pass createIfNotExists to auto-create the collection if it does not exist. Pass newName to rename the collection or folder — can be combined with settings changes or used alone.
runRequest
Executes a single Thunder Client request by name or ID and returns the response. Automatically uses the active environment — omit env unless a specific override is needed. Returns the raw CLI output including status code, response body, and test results.
| Parameter | Type | Description |
|---|---|---|
nameOrId * | string | Name or _id of the request to execute. Obtain from listCollections. |
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
env | string | Environment name to use for this run. Omit to use the active environment automatically. Example: 'staging' |
runCollection
Runs all requests in a Thunder Client collection (or a specific folder) and returns the full test report. Automatically uses the active environment. Returns per-request pass/fail results, test assertion details, response times, and a summary with total / passed / failed / skipped counts for iterations and requests, plus test assertion counts. When showing the result, always end with a section headed '**Summary Report**' containing a markdown table with columns 'Name', 'Total', 'Passed', 'Failed', 'Skipped' and exactly two rows: 'Total Iterations' from summary.iterations and 'Total Requests' fr…
| Parameter | Type | Description |
|---|---|---|
collectionName * | string | Name of the collection to run. Obtain the exact name from listCollections. |
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
concurrent | integer | Number of requests to run concurrently. Default: 1 (sequential). |
delay | integer | Delay in milliseconds between requests. Default: 0. |
env | string | Environment name to use for this run. Omit to use the active environment automatically. |
folderName | string | Name of a folder within the collection to run. Omit to run all requests in the collection. |
iterations | integer | Number of times to repeat the full collection run. Default: 1. |
report | array | Report file formats to save in the project's thunder-reports folder. Omit to save no report files — the run result is returned either way. Example: ['html'] |
stopOnFail | boolean | When true, stops the run after the first failed request. Default: false. |
deleteRequest
Permanently deletes a Thunder Client request by its ID. This action cannot be undone. Returns the deleted request's name, method, and URL on success. Use listCollections to obtain the request ID before calling.
| Parameter | Type | Description |
|---|---|---|
projectDir * | string | Absolute path to the project root directory. Example: '/Users/john/my-project'. |
reqId * | string | The _id of the request to delete. Obtain from listCollections. Example: 'e63218fb-9f0b-4619-ab3a-bd68d21b4d57' |