mcp-server

v1.0.2
@hoppscotch/mcp-server Checked 4 days ago Published 1 month ago

Model Context Protocol server for Hoppscotch API testing platform

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

reauth

Force a fresh Hoppscotch sign-in: clears the cached token and starts a new browser device-login flow, instead of waiting for the current token to expire. Use when the session is wrong/expired or to switch accounts. Returns the new session on success, or — if the browser login is still pending — tells you to finish sign-in and then retry the original operation or invoke a regular Hoppscotch tool; do not call reauth again while that login is active. When a static access token is configured (HOPPSCOTCH_ACCESS_TOKEN, or an embedder-supplied accessToken), the cached browser session is still cle…

list_user_collections

List all user collections (personal collections). Returns root-level collections of the specified type (REST or GraphQL).

ParameterTypeDescription
cursorstringPagination cursor for loading more results
limitnumberNumber of results to return (default: 25, max: 100)
typestringType of collections to list (REST or GQL for GraphQL). Optional — defaults to REST when omitted.

get_user_collection

Get the envelope of a specific user collection — id, title, parent id, and the opaque data JSON string. Does NOT include nested requests or child collections in the response; use list_user_requests or list_user_collections (with a cursor) to read those explicitly. Self-hosted only: Cloud fails to serialize the data field.

ParameterTypeDescription
collectionId *stringID of the collection to retrieve

create_user_collection

Create a new user collection (folder or request). Can be created at root level or as a child of another collection.

ParameterTypeDescription
title *stringName of the collection
datastringJSON string of request data (for request collections, not folders)
parentCollectionIdstringID of parent collection (omit for root-level collection)
typestringType of collection (REST, or GQL for GraphQL). Optional — defaults to REST when omitted.

update_user_collection

Update a user collection (rename, modify request data, etc.)

ParameterTypeDescription
collectionId *stringID of the collection to update
datastringUpdated JSON request data
titlestringNew title for the collection
typestringAccepted for compatibility and ignored: the collection ID alone determines the target.

delete_user_collection

Delete a user collection and all its children. This action cannot be undone.

ParameterTypeDescription
collectionId *stringID of the collection to delete
typestringAccepted for compatibility and ignored: the collection ID alone determines the target.

export_user_collection

Export user collection(s) as JSON. Can export a specific collection or all collections of a type.

ParameterTypeDescription
collectionIdstringID of specific collection to export (omit to export all collections)
typestringType of collections to export. Optional — defaults to REST when omitted.

import_user_collection

Import collection(s) from JSON string. The JSON should be in Hoppscotch export format.

ParameterTypeDescription
jsonString *stringJSON string of the collection to import (Hoppscotch format)
parentCollectionIdstringID of parent collection (omit to import at root level)
typestringType of collection being imported. Optional — defaults to REST when omitted.

list_user_environments

List all user environments with their variables.

create_user_environment

Create a new user environment with variables.

ParameterTypeDescription
name *stringName of the environment (e.g., "Development", "Staging", "Production")
variables *arrayArray of environment variables

update_user_environment

Update an existing user environment (rename or modify variables). Providing variables REPLACES the entire list (not a per-variable merge) — include every variable you want to keep; an omitted field is left unchanged.

ParameterTypeDescription
environmentId *stringID of the environment to update
namestringNew name for the environment
variablesarrayUpdated array of environment variables

delete_user_environment

Delete a user environment. This action cannot be undone.

ParameterTypeDescription
environmentId *stringID of the environment to delete

list_team_collections

List root-level collections in a team workspace. Returns only top-level collections; use get_team_collection to browse into sub-collections. The backend GQL field accepts cursor-only pagination — there is no per-call limit knob.

ParameterTypeDescription
cursorstringPagination cursor
teamIdstringID of the team (optional if default team is configured)

get_team_collection

Get a team collection by ID, including its direct children (sub-collections). Works at any nesting depth. Use to browse the collection hierarchy one level at a time, or jump directly to any collection by ID. Note: the backend caps direct children at about 10 per response, so a collection with more sub-collections is truncated here.

ParameterTypeDescription
collectionId *stringID of the team collection

create_team_collection

Create a new team collection.

ParameterTypeDescription
title *stringName of the collection
datastringJSON request data
parentCollectionIdstringID of parent collection (omit for root)
teamIdstringID of the team (optional if default team is configured)

update_team_collection

Update a team collection (rename or modify data).

ParameterTypeDescription
collectionId *stringID of the team collection to update
datastringUpdated JSON request data
titlestringNew title for the collection

export_team_collection

Export a team collection as a complete JSON tree with all nested sub-collections and requests. Use for full data export; prefer get_team_collection for browsing. Omit collectionId to export the entire team workspace.

ParameterTypeDescription
collectionIdstringID of specific collection (omit to export all)
teamIdstringID of the team (optional if default team is configured)

delete_team_collection

Delete a team collection and all its children. This action cannot be undone.

ParameterTypeDescription
collectionId *stringID of the collection to delete

list_team_environments

List all environments in a team workspace.

ParameterTypeDescription
teamIdstringID of the team (optional if default team is configured)

create_team_environment

Create a new team environment.

ParameterTypeDescription
name *stringName of the environment
variables *arrayArray of environment variables
teamIdstringID of the team (optional if default team is configured)

update_team_environment

Update an existing team environment (rename or modify variables). Providing variables REPLACES the entire list (not a per-variable merge) — include every variable you want to keep; an omitted field is left unchanged.

ParameterTypeDescription
environmentId *stringID of the environment to update
namestringNew name for the environment
variablesarrayUpdated array of environment variables

delete_team_environment

Delete a team environment. This action cannot be undone.

ParameterTypeDescription
environmentId *stringID of the environment to delete

list_teams

List all teams the user has access to. Each team includes its members with their email address and role.

get_team_info

Get detailed information about a specific team, including its members with their email address and role.

ParameterTypeDescription
teamId *stringID of the team

execute_request

Execute an HTTP request with the specified method, URL, headers, and body. Supports authentication and environment variable substitution. Built-in auth types are bearer, basic, and api-key — for OAuth2 / AWS-Signature / Digest / HAWK, set the Authorization header directly.

ParameterTypeDescription
method *stringHTTP method
url *stringTarget URL for the request
authobjectAuthentication configuration
bodystringRequest body (for POST, PUT, PATCH)
environmentIdstringEnvironment ID for variable substitution
headersobjectRequest headers (key-value pairs)
timeoutnumberRequest timeout in milliseconds (1000-120000)

validate_response

Execute an HTTP request and validate the response against expected criteria (status code, headers, body content, response time, etc.). Body and header checks run against the returned view — after secret redaction, so placeholders like <redacted> are part of the searched text. On an incomplete (truncated) body, a substring already found in the returned content still passes; an absent substring or the JSON-shape check is reported as indeterminate rather than failed, while status/header/time checks stay definitive.

ParameterTypeDescription
criteria *objectValidation criteria
method *stringHTTP method
url *stringTarget URL for the request
authobjectAuthentication configuration
bodystringRequest body
environmentIdstringEnvironment ID for variable substitution
headersobjectRequest headers
timeoutnumberPer-request network timeout in milliseconds (1000–120000). Falls back to the server default when omitted.

generate_code

Generate a code snippet for an HTTP request in various programming languages (curl, JavaScript, Python, Go, Rust). Returns a runnable snippet with live credentials by default; set redactCredentials=true to mask them when sharing the snippet. Takes the request as given: collection-level auth and headers are NOT resolved, so pass them explicitly for a request whose auth type is "inherit".

ParameterTypeDescription
language *stringTarget programming language
method *stringHTTP method
url *stringTarget URL
authobjectAuthentication configuration
bodystringRequest body
headersobjectRequest headers
redactCredentialsbooleanMask bearer/basic/api-key values, sensitive headers, and secret URL query/body fields in the generated snippet (default false). Set true to produce a shareable snippet with credentials masked.

generate_documentation

Generate markdown documentation for an HTTP request, including examples in cURL, JavaScript and Python. Credential values in the examples are masked by default (set redactCredentials=false for runnable snippets with live secrets). Takes the request as given: collection-level auth and headers are NOT resolved, so pass them explicitly for a request whose auth type is "inherit".

ParameterTypeDescription
method *stringHTTP method
url *stringTarget URL
authobjectAuthentication configuration
bodystringRequest body
descriptionstringRequest description
headersobjectRequest headers
includeExamplesbooleanInclude code examples. Emits cURL, JavaScript and Python only.
redactCredentialsbooleanMask bearer/basic/api-key credential values in the generated examples (default true). Docs are share-oriented; set false only when you want copy-paste-runnable snippets with live credentials.
titlestringDocumentation title

list_team_requests

List requests in a team collection (id, title, full request JSON). Paginated — returns up to ~10 per call; pass the cursor to page through the rest.

ParameterTypeDescription
collectionId *stringID of the team collection
cursorstringPagination cursor for loading more results

get_team_request

Get a specific team request by ID, including its full request JSON.

ParameterTypeDescription
requestId *stringID of the request to retrieve

create_team_request

Create a new request in a team collection. The request field is a JSON string following the Hoppscotch request schema.

ParameterTypeDescription
collectionId *stringID of the team collection to add the request to
request *stringJSON string of the Hoppscotch request object. Use the Hoppscotch request schema: "endpoint" (the URL — NOT "url"), "method", "headers" (array of {key,value,active}), "body" ({contentType, body}), "a…
title *stringName of the request
teamIdstringID of the team (uses default team if omitted)

update_team_request

Update a team request's title and/or request data.

ParameterTypeDescription
requestId *stringID of the request to update
requeststringUpdated JSON string of the Hoppscotch request object (use "endpoint" for the URL, not "url").
titlestringNew title for the request

delete_team_request

Delete a team request. This action cannot be undone.

ParameterTypeDescription
requestId *stringID of the request to delete

move_team_request

Move a team request to a different collection.

ParameterTypeDescription
destCollectionId *stringID of the destination collection
requestId *stringID of the request to move

list_user_requests

List all requests in a personal (user) collection.

ParameterTypeDescription
collectionId *stringID of the user collection

create_user_request

Create a new request in a personal (user) collection.

ParameterTypeDescription
collectionId *stringID of the user collection
request *stringJSON string of the Hoppscotch request object (use "endpoint" for the URL, not "url").
title *stringName of the request
typestringRequest type (REST or GQL)

update_user_request

Update a personal (user) request's title and/or request data.

ParameterTypeDescription
requestId *stringID of the request to update
requeststringUpdated JSON string of the Hoppscotch request object (use "endpoint" for the URL, not "url").
titlestringNew title for the request
typestringRequest type (REST or GQL)

delete_user_request

Delete a personal (user) request. This action cannot be undone.

ParameterTypeDescription
requestId *stringID of the request to delete

move_user_request

Move a personal (user) request to a different collection.

ParameterTypeDescription
destCollectionId *stringID of the destination collection
requestId *stringID of the request to move
sourceCollectionId *stringID of the source collection